Skip to content

Conversation

@suffieldacademy
Copy link

Found this project while trying to signal a Juniper router from a FreeBSD box. The latest released packages and git sources wouldn't compile cleanly on the system, but a little hacking got it to run. Figured I'd share in case it helps someone.

I am BY NO MEANS a C++ programmer (perl/java is my thing), so if these fixes are weird/inefficient feel free to reject. They were IMNSHO pretty minor:

Added missing includes for files needing <pthread.h> by adding threads.h to the cpp files that were throwing errors about missing pthread symbols. threads.h has a "pragma once", so that seemed to be the least destructive way to do it.

Fixed a small compiler warning about unsigned short (vs int).

Added to quiet a warning about "namespace std" (stackexchange to the rescue on that; I've no idea what this error was about).

Left other compiler warnings about unused fields alone (several are acknowledged in the source, so choosing not to mess with them).

Source now builds with only the aforementioned warnings, and the binaries run (I've confirmed basic interop with our Juniper gear). Yay!

NO MEANS a C++ programmer (perl/java), but a little hacking around got
things to compile.  I've tested the raw binaries and they at least set
up a minimal session with our Juniper gear.

Added missing includes for files needing <pthread.h> by adding
threads.h to the cpp files that were throwing errors about missing
pthread symbols.  threads.h has a "pragma once", so that seemed to be
the least destructive way to do it.

Fixed a small compiler warning about unsigned short (vs int).

Left other compiler warnings about unused fields alone (several are
acknowledged in the source, so choosing not to mess with them).
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

Successfully merging this pull request may close these issues.

2 participants