Leopard: ghc 6.8.1 and the case of the missing _environ

Joel Reymont joelr1 at gmail.com
Tue Nov 6 20:09:24 EST 2007


You build 6.8.1 from source on Leopard (x86 in my case) and then

junior:ghc-6.8.1 joelr$ ghci
GHCi, version 6.8.1: http://www.haskell.org/ghc/  :? for help
/usr/local/lib/ghc-6.8.1/lib/base- unknown  
symbol `_environ'
Loading package base ... linking ... ghc-6.8.1: unable to load package  


ghc binaries are being stripped upon installation which eliminates  
_environ, e.g.

junior:tmp joelr$ nm x|grep environ
00002ff0 T ___hscore_environ
0004d004 D _environ

junior:tmp joelr$ strip x
junior:tmp joelr$ nm x|grep environ


Need to make sure install-sh does _not_ use the -s option. Haven't  
found out where this needs to be done yet. A temporary workaround is  
to ask Manuel for the pre-built binaries.

	Thanks, Joel


More information about the Glasgow-haskell-users mailing list