From owner-freebsd-questions Sun Feb 2 5:12:16 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEC3937B406 for ; Sun, 2 Feb 2003 05:12:10 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E63243E4A for ; Sun, 2 Feb 2003 05:12:06 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a198.otenet.gr [212.205.215.198]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h12DBvow028067 for ; Sun, 2 Feb 2003 15:11:58 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h12DBtBm013441 for ; Sun, 2 Feb 2003 15:11:55 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h12CqrE0012100; Sun, 2 Feb 2003 14:52:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 2 Feb 2003 14:52:53 +0200 From: Giorgos Keramidas To: Bruno Clermont Cc: questions@freebsd.org Subject: Re: FreeBSD 5.0 build Message-ID: <20030202125253.GC749@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-02 03:23, Bruno Clermont 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