From owner-freebsd-questions Sun Feb 2 0:24: 3 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 E96DE37B405 for ; Sun, 2 Feb 2003 00:24:01 -0800 (PST) Received: from yog-sothoth.Gnome.CA (yog-sothoth.8D.com [209.47.172.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FB8543F43 for ; Sun, 2 Feb 2003 00:23:56 -0800 (PST) (envelope-from pooh@gnome.ca) Received: from hse-montreal-ppp3465221.sympatico.ca ([65.92.185.53] helo=cthulhu.lan.gnome.ca ident=nobody) by yog-sothoth.Gnome.CA with asmtp (Exim 3.36 #1) id 18fF6n-000636-00 for questions@freebsd.org; Sun, 02 Feb 2003 03:04:09 -0500 Received: from localhost ([127.0.0.1] helo=gnome.ca) by cthulhu.lan.gnome.ca with esmtp (Exim 3.36 #1) id 18fFPg-0006Kt-00 for questions@freebsd.org; Sun, 02 Feb 2003 03:23:40 -0500 Date: Sun, 2 Feb 2003 03:23:39 -0500 Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: FreeBSD 5.0 build From: Bruno Clermont To: questions@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.551) 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 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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message