Subject: 1.5_ALPHA2 failure: Undefined symbol "_fork"
To: None <port-sun3@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-sun3
Date: 08/30/2000 18:46:14
Hi,
I tried a 'make build' on my sun3, and it fails with:
install ===> libc
install -r -p -c  -o root  -g wheel -m 600 libc.a /usr/lib/libc.a
ranlib -t /usr/lib/libc.a
chmod 444 /usr/lib/libc.a
install -r -p -c  -o root  -g wheel -m 600 libc_p.a /usr/lib/libc_p.a
ranlib -t /usr/lib/libc_p.a
chmod 444 /usr/lib/libc_p.a
install -r -p -c  -o root  -g wheel -m 600 libc_pic.a /usr/lib/libc_pic.a
ranlib -t /usr/lib/libc_pic.a
chmod 444 /usr/lib/libc_pic.a
install -r -p -c  -o root  -g wheel -m 444 libc.so.12.62.1 /usr/lib/libc.so.12.62.1
/sbin/ldconfig -m /usr/lib
install -r -p -c  -o root  -g wheel -m 444 llib-lc.ln /usr/libdata/lint
/usr/libexec/ld.so: Undefined symbol "_fork" in install:/usr/lib/libc.so.12.62.1

*** Error code 1

From here, dynamically linked binary fails with a Undefined symbol
(not always _fork). I've rebuild libc from scratch.
It seems to be related to symbol resolutions between libraries:
lisard:/home/sources/src>su
/usr/libexec/ld.so: Undefined symbol "_fork" in su:/usr/lib/libutil.so.5.2

I tried renaming libc.so.12.62.1 to libc.so.12.62 without success. I also
tried rebuilding from scratch and installing ld_aout.so.

Any idea ?

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--