HEAD broken on OS X

Roman Leshchinskiy rl at cse.unsw.edu.au
Sun Sep 2 22:31:03 EDT 2007


Hi all,

when building the current HEAD on OS X 10.4, I get the following error:

../compiler/ghc-inplace -optc-O -optc-Werror -optc-Wall -optc-W 
-optc-Wstrict-prototypes -optc-Wmissing-prototypes 
-optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return 
-optc-I../includes -optc-I. -optc-Iparallel -optc-Ism 
-optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I../gmp/gmpbuild 
-optc-fno-strict-aliasing -H64m -Onot -fasm -Werror -optc-O2 
-package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h 
-dcmm-lint     -c Linker.c -o Linker.o
cc1: warnings being treated as errors
Linker.c: In function 'lookupSymbol':

Linker.c:1065:0:
      warning: 'NSIsSymbolNameDefined' is deprecated (declared at 
/usr/include/mach-o/dyld.h:150)

Linker.c:1066:0:
      warning: 'NSLookupAndBindSymbol' is deprecated (declared at 
/usr/include/mach-o/dyld.h:158)

IIUC, the NS* stuff is deprecated in OS X 10.4 and dlsym should be used 
instead. This is a change from 10.3 and below, where NS* is better.

In lookupSymbol in Linker.c we have

#       if defined(OBJFORMAT_ELF)
<use dlsym>
#       elif defined(OBJFORMAT_MACHO)
<use NS*>
#       elif defined(OBJFORMAT_PEi386)
<use DLL stuff>
#       else
<fail>
#       endif

In light of the above, testing for OBJFORMAT_MACHO doesn't seem right 
here but I'm not sure what the correct test should be.

Roman




More information about the Cvs-ghc mailing list