GNOME Bugzilla – Bug 726707
Cannot build gvfs on FreeBSD if libbluray is installed
Last modified: 2014-03-27 12:57:24 UTC
The use of _NL_ADDRESS_LANG_TERM and _NL_ADDRESS_COUNTRY_AB3 in common/gvfsmountinfo.c are not portable. It cause the build on FreeBSD to fail with the following error: gvfsmountinfo.c:434:23: error: use of undeclared identifier '_NL_ADDRESS_LANG_TERM' gvfsmountinfo.c:437:27: error: use of undeclared identifier '_NL_ADDRESS_COUNTRY_AB3'
Created attachment 272494 [details] [review] use nl_langinfo constants conditionally
_NL_ADDRESS_LANG_TERM and _NL_ADDRESS_COUNTRY_AB3 are enums, not macros.
Thanks, good point, but how we can check the enums? It looks like AC_CHECK_DECL doesn't work for enums...
Created attachment 272503 [details] [review] fix building on BSD This enums isn't supported generally in BSDs? Or it depends on version of libc?
These enums are GNU extensions, so most BSDs do not support them.
Created attachment 272558 [details] [review] use nl_langinfo constants conditionally AC_CHECK_DECL looks like working for enums, could you prove it please?
(In reply to comment #6) > Created an attachment (id=272558) [details] [review] > use nl_langinfo constants conditionally > > AC_CHECK_DECL looks like working for enums, could you prove it please? gvfs can be successfully built on FreeBSD using this patch.
Review of attachment 272558 [details] [review]: Looks good!
Comment on attachment 272558 [details] [review] use nl_langinfo constants conditionally commit a77cdbac08ca1ff17aeba2323a610a61101387db