Missing _environ while compiling 6.8.1 on Leopard

Deborah Goldsmith dgoldsmith at mac.com
Fri Nov 9 16:24:51 EST 2007


I'm seeing this, too. An fgrep of /usr/include for environ picked up  
this:

/usr/include/X11/Xw32defs.h:#define environ     _environ

Is there any reason this X11 header would get included? That would  
mess up this in HsBase.h:

/* ToDo: write a feature test that doesn't assume 'environ' to
  *    be in scope at link-time. */
extern char** environ;
INLINE char **__hscore_environ() { return environ; }

Deborah

On Nov 6, 2007, at 3:03 AM, Joel Reymont wrote:

> Folks,
>
> I keep getting this issue when compiling ghc 6.8.1 on Leopard.  
> Manuel doesn't have this issue for some reason. I have removed the  
> GMP framework as per his suggestion but it didn't help.
>
> Any clues?
>
> ---
>
> GHCi, version 6.8.1: http://www.haskell.org/ghc/  :? for help
> ghc-6.8.1:
> /usr/local/lib/ghc-6.8.1/lib/base-3.0.0.0/HSbase-3.0.0.0.o: unknown  
> symbol `_environ'
> Loading package base ... linking ... ghc-6.8.1: unable to load  
> package `base'
>
> ---
>
> 	Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



More information about the Glasgow-haskell-users mailing list