Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Cross building tools broken on MacOS X

Recent changes to lint are problematic at least on MacOS X:

$ ./ -m amiga -U tools
#      link  lint1/lint1
cc -O -no-cpp-precomp -I/Users/rkujawa/Downloads/src/usr/src/tools/compat/obj 
-I. -DPASS=\"lint1.h\" 
   -o lint1 cgram.lo scan.lo mem1.lo mem.lo err.lo main1.lo decl.lo tree.lo 
func.lo init.lo emit.lo emit1.lo inittyp.lo tyname.lo print.lo ops.lo 
-L/Users/rkujawa/Downloads/src/usr/src/tools/compat/obj -lnbcompat -lz -lm
Undefined symbols:
  "___arraycount", referenced from:
      _initmtab in ops.lo
ld: symbol(s) not found
collect2: ld returned 1 exit status

I believe that this happens due to the fact, that MacOS X does not provide 
___arraycount macro, and somehow this macro is not included from 
tools/compat/compat_defs.h . 

Best regards,
RadosÅaw Kujawa

Home | Main Index | Thread Index | Old Index