[darcs-users] Re: I'd really like to build darcs on MacOS X, but linking fails

Markus Hanauska hanauska at equinux.net
Fri Mar 4 13:49:55 UTC 2005


On 04. Mrz 2005, at 14:31 Uhr, Markus Hanauska wrote:

>
> But after no complains from configure, make ends as follows:
>
> zlib_helper.c: In function 'gzreader':
> zlib_helper.c:88: warning: assignment makes integer from pointer 
> without a cast
> zlib_helper.c: In function 'gzwriter':
> zlib_helper.c:152: warning: assignment makes integer from pointer 
> without a cast
> zlib_helper.c: In function 'wait_on_gz':
> zlib_helper.c:165: warning: passing argument 1 of 'pthread_join' 
> makes pointer from integer without a cast
> zlib_helper.c: In function 'detach_gz':
> zlib_helper.c:175: warning: passing argument 1 of 'pthread_detach' 
> makes pointer from integer without a cast
> rm -f Main.hi Main.o
> ghc -cpp  -package unix -package parsec -O -funbox-strict-fields  
> -Wall -Werror -package util -I. -DHAVE_CURSES -DHAVE_CURL 
> -optl-L/usr/lib -optl-lcurl -optl-lssl -optl-lcrypto -optl-lz 
> -optl-lcurses -o stringify stringify.hs
> /usr/bin/ld: Undefined symbols:
> ___DISCARD__
> collect2: ld returned 1 exit status
> make: *** [stringify] Error 1
>
> What now? The warnings should really be fixed, but what about the 
> DISCARD symbol?

Okay, my bad. Tried to compile it on the preview of Tiger and this uses 
the gcc-4 in its current development state. Forcing the use of gcc-3.3 
solves the problem.

-- 
Best Regards,
     Markus Hanauska





More information about the darcs-users mailing list