Subject: libc related problem.
To: None <current-users@netbsd.org>
From: Nigel Reed <nigel@nelgin.nu>
List: current-users
Date: 11/13/2001 14:08:19
I blew away my tool, obj and build directories, did a cvs update this
morning (after the discussion on the ccp and friends.

Regards
Nigel

/usr/src/tooldir/bin/i386--netbsdelf-gcc   -o cu -nostdlib -Wl,-rpath-link,/usr/
src/builddir/usr/lib /usr/src/builddir/usr/lib/crt0.o /usr/src/builddir/usr/lib/
crtbegin.o cu.o prot.o log.o chat.o conn.o copy.o /usr/src/obj/gnu/libexec/uucp/
libunix/libunix.a /usr/src/obj/gnu/libexec/uucp/libuuconf/libuuconf.a /usr/src/o
bj/gnu/libexec/uucp/libuucp/libuucp.a -L/usr/src/builddir/usr/lib -lgcc -lc -lgc
c /usr/src/builddir/usr/lib/crtend.o
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(tcp.o): In function `fsysdep_tcp
_init':
tcp.o(.text+0xa6): undefined reference to `socket'
tcp.o(.text+0xe5): undefined reference to `fcntl'
tcp.o(.text+0xf1): undefined reference to `fcntl'
tcp.o(.text+0x124): undefined reference to `close'
tcp.o(.text+0x13e): undefined reference to `fcntl'
tcp.o(.text+0x174): undefined reference to `close'
tcp.o(.text+0x185): undefined reference to `getpid'
tcp.o(.text+0x1cf): undefined reference to `geteuid'
tcp.o(.text+0x1f8): undefined reference to `close'
tcp.o(.text+0x214): undefined reference to `bind'
tcp.o(.text+0x283): undefined reference to `listen'
tcp.o(.text+0x2e9): undefined reference to `accept'
tcp.o(.text+0x36b): undefined reference to `close'
tcp.o(.text+0x3a7): undefined reference to `_exit'
tcp.o(.text+0x3b6): undefined reference to `_exit'
tcp.o(.text+0x3c0): undefined reference to `getpid'
tcp.o(.text+0x3d9): undefined reference to `close'
tcp.o(.text+0x44e): undefined reference to `close'
tcp.o(.text+0x484): undefined reference to `getpid'
tcp.o(.text+0x581): undefined reference to `connect'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(pipe.o): In function `fsysdep_pi
pe_init':
pipe.o(.text+0xbf): undefined reference to `close'
pipe.o(.text+0xff): undefined reference to `close'
pipe.o(.text+0x155): undefined reference to `kill'
pipe.o(.text+0x179): undefined reference to `kill'
pipe.o(.text+0x19d): undefined reference to `kill'
pipe.o(.text+0x2a5): undefined reference to `fcntl'
pipe.o(.text+0x2b7): undefined reference to `fcntl'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(ufopen.o): In function `esysdep_
user_fopen':
ufopen.o(.text+0xb6): undefined reference to `getuid'
ufopen.o(.text+0xe0): undefined reference to `fcntl'
ufopen.o(.text+0xeb): undefined reference to `fcntl'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o)(.text+0x50): undefined
 reference to `__sigprocmask14'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
stdin_init':
serial.o(.text+0x164): undefined reference to `chmod'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
direct_init':
serial.o(.text+0x2dd): undefined reference to `open'
serial.o(.text+0x314): undefined reference to `open'
serial.o(.text+0x361): undefined reference to `fcntl'
serial.o(.text+0x36d): undefined reference to `fcntl'
serial.o(.text+0x3af): undefined reference to `ioctl'
serial.o(.text+0x3b9): undefined reference to `close'
serial.o(.text+0x402): undefined reference to `ioctl'
serial.o(.text+0x40c): undefined reference to `close'
serial.o(.text+0x54c): undefined reference to `open'
serial.o(.text+0x583): undefined reference to `open'
serial.o(.text+0x5bd): undefined reference to `fcntl'
serial.o(.text+0x5c9): undefined reference to `fcntl'
serial.o(.text+0x5fe): undefined reference to `fcntl'
serial.o(.text+0x739): undefined reference to `ioctl'
serial.o(.text+0x7fb): undefined reference to `fcntl'
serial.o(.text+0x928): undefined reference to `fcntl'
serial.o(.text+0x967): undefined reference to `fcntl'
serial.o(.text+0x9a4): undefined reference to `fcntl'
serial.o(.text+0xa78): undefined reference to `ioctl'
serial.o(.text+0xa82): undefined reference to `close'
serial.o(.text+0xabc): undefined reference to `close'
serial.o(.text+0xac6): undefined reference to `close'
serial.o(.text+0xc0b): undefined reference to `__sigprocmask14'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
modem_begin_dial':
serial.o(.text+0xd9c): undefined reference to `ioctl'
serial.o(.text+0xdbd): undefined reference to `ioctl'
serial.o(.text+0xe47): undefined reference to `open'
serial.o(.text+0xe99): undefined reference to `fcntl'
serial.o(.text+0xea4): undefined reference to `fcntl'
serial.o(.text+0xed6): undefined reference to `close'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
modem_end_dial':
serial.o(.text+0x107e): undefined reference to `close'
serial.o(.text+0x10c9): undefined reference to `open'
serial.o(.text+0x10e2): undefined reference to `fcntl'
serial.o(.text+0x10ed): undefined reference to `fcntl'
serial.o(.text+0x1104): undefined reference to `fcntl'
serial.o(.text+0x1136): undefined reference to `close'
serial.o(.text+0x1142): undefined reference to `close'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
conn_read':
serial.o(.text+0x1335): undefined reference to `read'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
conn_write':
serial.o(.text+0x1563): undefined reference to `write'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(serial.o): In function `fsysdep_
conn_io':
serial.o(.text+0x16d2): undefined reference to `read'
serial.o(.text+0x17a6): undefined reference to `write'
serial.o(.text+0x1929): undefined reference to `select'
serial.o(.text+0x1a03): undefined reference to `write'
serial.o(.text+0x1d5b): undefined reference to `close'
serial.o(.text+0x1d69): undefined reference to `kill'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(portnm.o): In function `zsysdep_
port_name':
portnm.o(.text+0x25): undefined reference to `getsockname'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(init.o): In function `usysdep_in
itialize':
init.o(.text+0x13): undefined reference to `getpid'
init.o(.text+0x3d): undefined reference to `close'
init.o(.text+0x53): undefined reference to `fcntl'
init.o(.text+0x6b): undefined reference to `open'
init.o(.text+0x8a): undefined reference to `fcntl'
init.o(.text+0xa2): undefined reference to `open'
init.o(.text+0xc2): undefined reference to `fcntl'
init.o(.text+0xda): undefined reference to `open'
init.o(.text+0x1cd): undefined reference to `umask'
init.o(.text+0x21d): undefined reference to `getuid'
init.o(.text+0x22a): undefined reference to `getuid'
init.o(.text+0x25e): undefined reference to `geteuid'
init.o(.text+0x283): undefined reference to `setuid'
init.o(.text+0x2bd): undefined reference to `__stat13'
init.o(.text+0x2d8): undefined reference to `__stat13'
init.o(.text+0x39e): undefined reference to `chdir'
init.o(.text+0x3c6): undefined reference to `mkdir'
init.o(.text+0x400): undefined reference to `chdir'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(init.o): In function `fsysdep_ot
her_config':
init.o(.text+0x45e): undefined reference to `getuid'
init.o(.text+0x464): undefined reference to `setuid'
init.o(.text+0x46c): undefined reference to `getgid'
init.o(.text+0x472): undefined reference to `setgid'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(epopen.o): In function `espopen'
:
epopen.o(.text+0xa9): undefined reference to `close'
epopen.o(.text+0xb4): undefined reference to `kill'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(cusub.o): In function `fsysdep_p
ort_access':
cusub.o(.text+0xa6): undefined reference to `access'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(cusub.o): In function `fsysdep_c
u_init':
cusub.o(.text+0x210): undefined reference to `write'
cusub.o(.text+0x2e4): undefined reference to `close'
cusub.o(.text+0x300): undefined reference to `close'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(cusub.o): In function `fsysdep_c
u':
cusub.o(.text+0x370): undefined reference to `write'
cusub.o(.text+0x3d9): undefined reference to `read'
cusub.o(.text+0x467): undefined reference to `write'
cusub.o(.text+0x4bc): undefined reference to `write'
cusub.o(.text+0x4dd): undefined reference to `write'
cusub.o(.text+0x4f1undefined reference to `write'
cusub.o(.text+0x508): undefined reference to `read'
cusub.o(.text+0x55a): undefined reference to `kill'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(cusub.o): In function `fsysdep_c
u_copy':
cusub.o(.text+0x5cd): undefined reference to `read'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(cusub.o): In function `fsysdep_c
u_finish':
cusub.o(.text+0x6a0): undefined reference to `close'
cusub.o(.text+0x6b0): undefined reference to `kill'
cusub.o(.text+0x7e9): undefined reference to `fcntl'
cusub.o(.text+0x7fa): undefined reference to `fcntl'
cusub.o(.text+0x8e8): undefined reference to `write'
cusub.o(.text+0x91f): undefined reference to `getppid'
cusub.o(.text+0x925): undefined reference to `kill'
cusub.o(.text+0x960): undext+0xd): undefined reference to `geteuid'
uid.o(.text+0x14): undefined reference to `getuid'
uid.o(.text+0x29): undefined reference to `seteuid'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(uid.o): In function `fsuucp_perm
s':
uid.o(.text+0x77): undefined reference to `seteuid'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(spawn.o): In function `ixsspawn'
:
spawn.o(.text+0x2d0): undefined reference to `open'
spawn.o(.text+0x2ea): undefined reference to `fcntl'
spawn.o(.text+0x2f8): undefined reference to `fcntl'
spawn.o(.text+0x315): undefined reference to `close'
spawn.o(.text+0x3d9): undefined reference to `fcntl'
spawn.o(.text+0x3e6): undefined reference to `fcntl'
spawn.o(.text+0x3ff): undefined reference to `fcntl'
spawn.o(.text+0x40c): undefined reference to `fcntl'
spawn.o(.text+0x4e7): undefined reference to `close'
spawn.o(.text+0x50f): undefined reference to `close'
spawn.o(.text+0x579): undefined reference to `dup2'
spawn.o(.text+0x58c): undefined reference to `fcntl'
spawn.o(.text+0x597): undefined reference to `fcntl'
spawn.o(.text+0x5d4): undefined reference to `getuid'
spawn.o(.text+0x5da): undefined reference to `setuid'
spawn.o(.text+0x5e2): undefined reference to `getgid'
spawn.o(.text+0x5ec): undefined reference to `geteuid'
spawn.o(.text+0x5f2): undefined reference to `setuid'
spawn.o(.text+0x5fa): undefined reference to `getegid'
spawn.o(.text+0x600): undefined reference to `setgid'
spawn.o(.text+0x615): undefined reference to `chdir'
spawn.o(.text+0x659): undefined reference to `cve'
spawn.o(.text+0x6de): undefined reference to `execve'
spawn.o(.text+0x6eb): undefined reference to `_exit'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(signal.o): In function `usset_si
gnal':
signal.o(.text+0x9c): undefined reference to `__sigaction14'
signal.o(.text+0x117): undefined reference to `__sigaction14'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(proctm.o): In function `ixsysdep
_process_time':
proctm.o(.text+0x17): undefined reference to `gettimeofday'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(lock.o): In function `fsdo_lock'
:
lock.o(.text+0x57): undefined reference to `getpid'
lock.o(.text+0x1d0): undefined reference to `write'
lock.o(.text+0x1fa): undefined reference to `close'
lock.o(.text+0x314): undefined reference to `open'
lock.o(.text+0x344): undefined reference to `open'
lock.o(.text+0x38a): undefined reference to `read'
lock.o(.text+0x3ec): undefined reference to `kill'
lock.o(.text+0x415): undefined reference to `__fstat13'
lock.o(.text+0x4b2): undefined reference `close'
lock.o(.text+0x534): undefined reference to `write'
lock.o(.text+0x576): undefined reference to `read'
lock.o(.text+0x5c1): undefined reference to `__stat13'
lock.o(.text+0x5f4): undefined reference to `__fstat13'
lock.o(.text+0x624): undefined reference to `close'
lock.o(.text+0x64d): undefined reference to `close'
lock.o(.text+0x675): undefined reference to `link'
lock.o(.text+0x728): undefined reference to `close'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(efopen.o): In function `esysdep_
fopen':
efopen.o(.text+0x37): undefined reference to `open'
efopen.o(.text+0x8f): undefined reference to `open'
efopen.o(.text+0xcc): undefined reference to `fcntl'
efopen.o(.text+0xd7): undefined reference to `fcntl'
efopen.o(.text+0x107): undefined refee to `close'
efopen.o(.text+0x15e): undefined reference to `close'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(mkdirs.o): In function `fsysdep_
make_dirs':
mkdirs.o(.text+0x54): undefined reference to `mkdir'
/usr/src/obj/gnu/libexec/uucp/libunix/libunix.a(isdir.o): In function `fsysdep_d
irectory':
isdir.o(.text+0x11): undefined reference to `__stat13'
/usr/src/obj/gnu/libexec/uucp/libuuconf/libuuconf.a(rdlocs.o): In function `_uuc
onf_iread_locations':
rdlocs.o(.text+0x64): undefined reference to `fcntl'
rdlocs.o(.text+0x6f): undefined reference to `fcntl'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__sysctl'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getfsstat'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getrlimit'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `writev'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `utimes'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `munmap'
/usr/src/builddir/usr/lib/libc.so: undefi reference to `__sigsuspend14'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setpriority'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__getcwd'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getpriority'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `fchdir'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setitimer'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `readlink'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `utrace'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `recvfrom'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `rmdir'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `fstatfs'
/usr/src/builddir/usr/lib/libc.so: undefined rence to `setgroups'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setpgid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__sigaltstack14'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__lstat13'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `____semctl13'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `nanosleep'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `wait4'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setrlimit'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `readv'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `madvise'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setregid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setsockopt'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `issetugid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `flock'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `unlink'
/usr/src/builddir/usr/lib/libo: undefined reference to `getrusage'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `sendto'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `swapctl'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setreuid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getgroups'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `poll'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__getlogin'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getpeername'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `profil'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `fsync'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getsockopt'
/usr/src/builddir/usr/lib/libc.so: undefireference to `socketpair'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `getdents'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `__msync13'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setsid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `setegid'
/usr/src/builddir/usr/lib/libc.so: undefined reference to `recvmsg'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/libexec/uucp/cu
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/libexec/uucp/cu
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/libexec/uucp
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/libexec
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1

Stop.
nbmake: stopped in /usr/src
--