After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344197 - darwin doesn't have **environ symbol
darwin doesn't have **environ symbol
Status: RESOLVED DUPLICATE of bug 342084
Product: nautilus
Classification: Core
Component: [obsolete] Builds
2.14.x
Other Mac OS
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-07 19:22 UTC by Daniel Macks
Modified: 2006-07-27 20:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2006-06-07 19:22:17 UTC
Nope, it doesn't. So when libnautilus-private/nautilus-program-choosing.c does:


extern char **environ;
[...]
envp = environ;

the linker crashes because _environ is not a defined symbol. The standard compatibility patch is:

+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
 extern char **environ;

so the formal solution is to have configure check for that header and symbol, and then do those #include and #define iff the AC_ checks find them (based on HAVE_ tokens).
Comment 1 Daniel Macks 2006-06-07 19:25:41 UTC
Whoa, /me==super-moron. Please close as dup of bug #342084
Comment 2 Daniel Macks 2006-06-07 19:27:31 UTC
Hrm, actally that's a different product. So make that "see also", not "close as dup of". Sorry for the bugzilla-spam
Comment 3 Fabio Bonelli 2006-07-27 20:52:17 UTC
Same product now, closing. :-)

*** This bug has been marked as a duplicate of 342084 ***