Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: building lint as a host tool on MacOS (Snow Leopard) and Solaris fails
Hmmm... __arraycount() is a macro, not a real function. Defined in
/usr/include/sys/cdefs.h
It probably should not be used in host tools...
On Thu, 14 Jan 2010, Kurt Schreiner wrote:
Hi,
after updating -current source some minutes ago I ran into the problem
below on both my mac and solaris machine (no problem compiling native):
# link lint2/lint2
cc -O -no-cpp-precomp -I/Users/ks/NetBSD/arch/i386/obj/tools/compat
-I/Users/ks/NetBSD/arch/i386/obj/tools/compat/include
-I/Users/ks/NetBSD/src/tools/lint2/../compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -DPASS=\"lint2.h\"
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2/../arch/i386
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2/../common -o lint2
main2.lo hash.lo read.lo mem.lo mem2.lo chk.lo msg.lo emit.lo emit2.lo inittyp.lo
tyname.lo -L/Users/ks/NetBSD/arch/i386/obj/tools/compat -lnbcompat -lz
Undefined symbols:
"___arraycount", referenced from:
_chkname in chk.lo
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Failed target: lint2
*** Failed command: cc -O -no-cpp-precomp -I/Users/ks/NetBSD/arch/i386/obj/tools/compat
-I/Users/ks/NetBSD/arch/i386/obj/tools/compat/include
-I/Users/ks/NetBSD/src/tools/lint2/../compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -DPASS=\"lint2.h\"
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2/../arch/i386
-I/Users/ks/NetBSD/src/tools/lint2/../../usr.bin/xlint/lint2/../common -o lint2 main2.lo
hash.lo read.lo mem.lo mem2.lo chk.lo msg.lo emit.lo emit2.lo inittyp.lo tyname.lo
-L/Users/ks/NetBSD/arch/i386/obj/tools/compat -lnbcompat -lz
*** Error code 1
Stop.
nbmake: stopped in /Users/ks/NetBSD/src/tools/lint2
*** Failed target: dependall
Tried for both amd64 and i386.
Kurt
-------------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index