-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
libbson detection fails in Linux. #375
Comments
Hi @darkshram This will need changes to Is this something you could look at? |
I'll try something to detect the headers, but... maybe it' won't be necessary at all. Since version 1.0 (August 2014), libbson installs 'bson.h' as 'libbson-1.0/bson.h'. I don't believe it will break something somewhere, unless somebody is using a very old [and most likely insecure and therefore unsupported] version of libbson. bson/bson.h used to be installed as default with bson <= 0.8.4, June 2014. This is why I believe it will be easier to just ask for 'libbson-1.0 >= 1.0' from configure.ac. Libbson is currently being maintained as part of mongo-c-driver (latest version is 1.17.3 and it can be built separately if someone gets confused). |
It should be just "#include <bson.h>". You already use pkg-config to detect the library and to set correct CFLAGS, -I/usr/include/libbson-1.0 in my case. |
Hi @slazav This isn't right because even though
without any Either way, we have the capability of improving this further in I'll merge this change, and if we get a lot of resistance from elsewhere we can do something else. |
I think if we use pkg-config we can expect correct paths from it. If in some system libbson package contains .pc file with a wrong path, it's an obvious error in the package. I can imaging that some old installations could contain no .pc file, but then configure will fail anyway. |
Yes -- and more to the point, although we can provide a fallback using |
Most Linux distributions use libbson-1.0/bson.h instead of bson/bson.h.
The code in fvwm3 uses this:
Which means if not FreeBSD, OpenBSD or Solaris, header include will be bson/bson.h. So, the build will fail because there is no /usr/include/bson/bson.h in most Linux distributions.
Removing the conditionals allows to build fvwm3 in Linux.
The text was updated successfully, but these errors were encountered: