Subject: Trouble compiling -current
To: None <port-alpha@netbsd.org>
From: Torsten Harenberg <harenberg@physik.uni-wuppertal.de>
List: port-alpha
Date: 05/09/2004 12:35:11
Dear all,
I continously was not able to compile the -current world (distribution,
kernel builds fine). Error messages looks like this:
# compile cu/conn.o
/usr/src/alphatools/bin/alpha--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wno-format-zero-length -Werror -mieee -I/usr/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/src/alphabuild/usr/include -c /usr/src/gnu/libexec/uucp/common_sources/conn.c
# compile cu/copy.o
/usr/src/alphatools/bin/alpha--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wno-format-zero-length -Werror -mieee -I/usr/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/src/alphabuild/usr/include -c /usr/src/gnu/libexec/uucp/common_sources/copy.c
# link cu/cu
/usr/src/alphatools/bin/alpha--netbsd-gcc -Wl,-nostdlib -o cu -Wl,-rpath-link,/usr/src/alphabuild/lib:/usr/src/alphabuild/usr/lib -L/usr/src/alphabuild/lib -B/usr/src/alphabuild/usr/lib/ -B/usr/src/alphabuild/usr/lib/ cu.o prot.o log.o chat.o conn.o copy.o /usr/src/gnu/libexec/uucp/libunix/obj/libunix.a /usr/src/gnu/libexec/uucp/libuuconf/obj/libuuconf.a /usr/src/gnu/libexec/uucp/libuucp/obj/libuucp.a -L/usr/src/alphabuild/usr/lib -L/usr/src/alphabuild/usr/lib
/usr/src/alphabuild/lib/libc.so: undefined reference to `getfsstat'
/usr/src/alphabuild/lib/libc.so: undefined reference to `SYS_statfs'
collect2: ld returned 1 exit status
*** Failed target: cu
*** Failed command: /usr/src/alphatools/bin/alpha--netbsd-gcc -Wl,-nostdlib -o cu -Wl,-rpath-link,/usr/src/alphabuild/lib:/usr/src/alphabuild/usr/lib -L/usr/src/alphabuild/lib -B/usr/src/alphabuild/usr/lib/ -B/usr/src/alphabuild/usr/lib/ cu.o prot.o log.o chat.o conn.o copy.o /usr/src/gnu/libexec/uucp/libunix/obj/libunix.a /usr/src/gnu/libexec/uucp/libuuconf/obj/libuuconf.a /usr/src/gnu/libexec/uucp/libuucp/obj/libuucp.a -L/usr/src/alphabuild/usr/lib -L/usr/src/alphabuild/usr/lib
*** Error code 1
Stop.
nbmake: stopped in /usr/src/gnu/libexec/uucp/cu
*** Failed target: dependall
*** Failed command: cd /usr/src/gnu/libexec/uucp/cu; /usr/src/alphatools/bin/nbmake realall
*** Error code 1
-----------
It looks like getfsstat() is not linked into the libc, although an object
exists in:
bash-2.05b# ls /usr/src/lib/libc/obj/getfsstat.o
/usr/src/lib/libc/obj/getfsstat.o
but:
bash-2.05b# nm /usr/src/lib/libc/obj/libc.a | grep getfsstat
U getfsstat
I'm not an expert in this, but I'am wondering if this an alpha-related
issue or a general problem (have no other NetBSD box avaible at the
moment)
Anybody has any idea?
Thanks!
Torsten
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> <>
<> Torsten Harenberg harenberg@physik.uni-wuppertal.de <>
<> Bergische Universitaet <>
<> FB C - Physik Tel.: +49 (0)202 439-3521 <>
<> Gaussstr. 20 Fax : +49 (0)202 439-2811 <>
<> 42097 Wuppertal <>
<> <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>