I installed a fresh 5.0 system, grab a copy of 5.0 source, tried to
build and it failed.
I don't know if it's a bug, I might be wrong, but I just want to know
if I'm doing it right, I tried to did it the same way as I used to do
in 4.x:
* grabbed a CVS snapshot of src module CVS tag RELENG_5_0
* define variable DESTDIR=/altroot
* "make world"
I get :
===> bin/cat
cc -O -pipe -mcpu=pentiumpro -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wformat=2 -Wno-format-extra-args -Werror -c
/usr/src/bin/cat/cat.c
cc -O -pipe -mcpu=pentiumpro -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wformat=2 -Wno-format-extra-args -Werror -static
-o cat cat.o
/usr/obj/usr/src/i386/usr/lib/libc.a(atexit.o): In function `atexit':
atexit.o(.text+0xc7): undefined reference to `_pthread_mutex_unlock'
atexit.o(.text+0xd8): undefined reference to `_pthread_mutex_lock'
atexit.o(.text+0xe8): undefined reference to `_pthread_mutex_unlock'
atexit.o(.text+0x109): undefined reference to `_pthread_mutex_lock'
atexit.o(.text+0x11a): undefined reference to `_pthread_mutex_unlock'
atexit.o(.text+0x141): undefined reference to `_pthread_mutex_lock'
/usr/obj/usr/src/i386/usr/lib/libc.a(_flock_stub.o): In function
`flockfile':
_flock_stub.o(.text+0x10): undefined reference to `_pthread_self'
_flock_stub.o(.text+0x25): undefined reference to `_pthread_mutex_lock'
/usr/obj/usr/src/i386/usr/lib/libc.a(_flock_stub.o): In function
`_flockfile_debug':
_flock_stub.o(.text+0x60): undefined reference to `_pthread_self'
_flock_stub.o(.text+0x75): undefined reference to `_pthread_mutex_lock'
/usr/obj/usr/src/i386/usr/lib/libc.a(_flock_stub.o): In function
`ftrylockfile':
_flock_stub.o(.text+0xb5): undefined reference to `_pthread_self'
_flock_stub.o(.text+0xca): undefined reference to
`_pthread_mutex_trylock'
/usr/obj/usr/src/i386/usr/lib/libc.a(_flock_stub.o): In function
`funlockfile':
_flock_stub.o(.text+0x10d): undefined reference to `_pthread_self'
_flock_stub.o(.text+0x149): undefined reference to
`_pthread_mutex_unlock'
*** Error code 1
_pthread_* calls are in lib/libpthread, look like, while linking the
binary, it didn't link with -lpthread also. But, libc.a archive isn't
supposed to contain libpthread.a objects? Is FreeBSD 5.0 current source
tree broken?
I tried to build RELENG_5_0 from 4.6 and it worked. I tried to rebuild
it with something in /etc/make.conf and it failed at the same place.
From a 5.0 host, I can't make it rebuild itself.
thanks for any advice
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
- Re: FreeBSD 5.0 build Bruno Clermont
- Re: FreeBSD 5.0 build Giorgos Keramidas
- Re: FreeBSD 5.0 build Bruno Clermont
