You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building geeqie 2.2 on NetBSD, it fails with:
../src/exif-common.cc:780:3: error: 'setenv' was not declared in this scope; did you mean 'getenv'?
The problem here is that NetBSD (as Solaris, but different from e.g. Linux) removes symbols from headers when particular environments (like POSIX, or X/OPEN) are requested, and the file exif-common.cc defines _XOPEN_SOURCE (without a value) before including cstdlib.
When building geeqie 2.2 on NetBSD, it fails with:
The problem here is that NetBSD (as Solaris, but different from e.g. Linux) removes symbols from headers when particular environments (like POSIX, or X/OPEN) are requested, and the file
exif-common.cc
defines_XOPEN_SOURCE
(without a value) before includingcstdlib
.The following patch fixes the problem on NetBSD:
but I don't know why the symbol was defined in the first place and I expect there will be trouble on some other system.
If you know why it's set, you could limit the
define
to that system, e.g.which I think would be preferable.
If that's not an option, we could at least disable it on NetBSD:
Let me know what you think and I can prepare a PR - or just fix it :)
The text was updated successfully, but these errors were encountered: