Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLSRd exits on Redhat. #128

Open
sanjayjaiman opened this issue Aug 2, 2023 · 8 comments
Open

OLSRd exits on Redhat. #128

sanjayjaiman opened this issue Aug 2, 2023 · 8 comments

Comments

@sanjayjaiman
Copy link

sanjayjaiman commented Aug 2, 2023

I have the same issue as #89.

The suggestion in the above was to build all the plugins as that may be caused by missing plugins. For that use "make build_all". When I did that the make ended in an error "gps.h not found".
A simple "yum install libgps-dev" did not work.
I tried the following -

wget https://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/g/gpsd-devel-3.25-7.fc39.aarch64.rpm
sudo yum install gpsd-devel
That fixed "gps.h" not found
When I do "make build_all" but now I get

[CC] src/configuration.c
In file included from src/configuration.h:50,
from src/configuration.c:46:
src/gpsdclient.h:67:24: error: field ‘source’ has incomplete type
67 | struct fixsource_t source;
| ^~~~~~
make[1]: *** [../../Makefile.inc:358: src/configuration.o] Error 1
make[1]: Leaving directory '/home/SA32009/olsrd/lib/pud'
make: *** [Makefile:251: libs] Error 2

Please help

@sanjayjaiman
Copy link
Author

Installed gpsd-devel package:

sudo yum install gpsd-devel
Updating Subscription Management repositories.
isd_cyber_repo 95 kB/s | 2.6 kB 00:00
rhel9_epel_repo 88 kB/s | 2.3 kB 00:00
isd_agent_rhel9_repo 124 kB/s | 3.0 kB 00:00
Package gpsd-devel-1:3.23.1-1.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

@sanjayjaiman sanjayjaiman changed the title Detaching from current process OLSRd exits on Redhat. Aug 3, 2023
@sanjayjaiman
Copy link
Author

Adding the following did let me finish the "make build_all"

diff --git a/lib/pud/src/gpsdclient.h b/lib/pud/src/gpsdclient.h
index a51dd221..3ff6ca8a 100644
--- a/lib/pud/src/gpsdclient.h
+++ b/lib/pud/src/gpsdclient.h
@@ -60,6 +60,16 @@ struct GpsdConnectionState {
struct devconfig_t dev[MAXUSERDEVS];
};

+/* Added by Sanjay Jaiman from https://lists.buildroot.org/pipermail/buildroot/2023-February/661956.html /
+/
describe a data source */
+struct fixsource_t {

  • char spec[PATH_MAX]; /* working space, will be modified */
  • char server; / pointer into spec field */
  • char port; / pointer into spec field */
  • char device; / pointer into spec field */
    +};

/**

  • The gpsd daemon spec
    */

@sanjayjaiman
Copy link
Author

sanjayjaiman commented Aug 3, 2023

After the build finished, I expected OLSRd to not exit. But it still does:

sudo /usr/local/sbin/olsrd -f routing2.conf

*** olsr.org - pre-0.9.9-git_204a44ad-hash_49cf0704ce914cf821a99fa05accac16 ***
http://www.olsr.org

Parsing file: "routing2.conf"
Debug level: 0
IpVersion: 4
Lock file /home/SA32009/emane-tutorial/0/persist/2/var/run/olsrd.lock
Clear screen enabled
Link quality aging factor 0.200000
setting ifs_in_curr_cfg = 0
HELLO interval: 1.00
HELLO validity: 5.00
Plugin:
Plugin param key:"accept" val: "0.0.0.0"
Plugin: olsrd_bmf.so.1.7.0
Plugin param key:"DoLocalBroadcast" val: "no"
Plugin param key:"CapturePacketsOnOlsrInterfaces" val: "no"
Plugin param key:"BmfMechanism" val: "Broadcast"
Plugin param key:"NonOlsrIf" val: "eth2"
Plugin param key:"FanOutLimit" val: "0"
Plugin param key:"BroadcastRetransmitCount" val: "1"
IPv4 broadcast/multicast : AUTO
Mode : mesh
IPv6 multicast : ::
HELLO emission/validity : 1.00 (d)/5.00 (d)
TC emission/validity : 0.00/0.00
MID emission/validity : 0.00/0.00
HNA emission/validity : 0.00/0.00
Autodetect changes : no
IPv4 broadcast/multicast : AUTO
Mode : mesh
IPv6 multicast : ::
HELLO emission/validity : 1.00 (d)/5.00 (d)
TC emission/validity : 0.00/0.00
MID emission/validity : 0.00/0.00
HNA emission/validity : 0.00/0.00
Autodetect changes : no
olsr.org - pre-0.9.9-git_204a44ad-hash_49cf0704ce914cf821a99fa05accac16 detaching from the current process...

@vchrizz
Copy link
Contributor

vchrizz commented Aug 4, 2023

if debug is disabled (set to level 0), olsrd detaches itself , if you do not want that, you need to enable debug.
you need to set at least DebugLevel 1 in your routing2.conf or enable debug like this:
sudo /usr/local/sbin/olsrd -d 1 -f routing2.conf

@sanjayjaiman
Copy link
Author

Thanks so much. That got me ahead a bit. Now I am getting -

. . . . . .

Running plugin_init function...
BMF: opened 2 sockets
---------- LIBRARY olsrd_bmf.so.1.7.0 LOADED ----------

---------- LOADING LIBRARY ----------
Checking plugin interface version: FAILED: "/usr/local/sbin/olsrd: undefined symbol: olsrd_plugin_interface_version"
---------- LIBRARY FAILED ----------

OLSR EXIT: -- PLUGIN LOADING FAILED --
Terminated

@sanjayjaiman
Copy link
Author

In my config file I had the following -

LoadPlugin ""
{
PlParam "accept" "0.0.0.0"
}

I deleted that and OLSrd comes up.

@sanjayjaiman
Copy link
Author

Althogh OLSRd is running now on two containers I am having isssues with "olsrlinkview" in the Emane tutorial not showing the two nodes This may not be a question for this thread. But just in case someone has any input on that, it would be great.

@mathiashro
Copy link
Contributor

Hi @sanjayjaiman , what exactly is your issue about "olsrlinkview"? (I'm not sure what your are refering to and did not found a reference at your emane-tutorial.

Can we close this issue since OLSRd is running as expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants