Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2003 14:52:53 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Bruno Clermont <pooh@gnome.ca>
Cc:        questions@freebsd.org
Subject:   Re: FreeBSD 5.0 build
Message-ID:  <20030202125253.GC749@gothmog.gr>
In-Reply-To: <A1945808-3687-11D7-9E13-000393712A00@gnome.ca>
References:  <A1945808-3687-11D7-9E13-000393712A00@gnome.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-02 03:23, Bruno Clermont <pooh@gnome.ca> wrote:
> 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

Anything interesting in your /etc/make.conf file?
NO_LIBC_R perhaps?

> _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.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030202125253.GC749>