From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 10:05:36 2003 Return-Path: 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 63A3337B401 for ; Mon, 7 Jul 2003 10:05:36 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 5583F43FA3 for ; Mon, 7 Jul 2003 10:05:35 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 4926 invoked by uid 1001); 7 Jul 2003 17:05:35 -0000 Date: Mon, 7 Jul 2003 10:05:35 -0700 From: Joshua Oreman To: freebsd-questions@freebsd.org Message-ID: <20030707170535.GD4668@webserver.get-linux.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20030707164249.GA2912@mail.it.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707164249.GA2912@mail.it.ca> User-Agent: Mutt/1.4.1i Subject: Re: problem upgrading from 5.0 to 5.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 17:05:36 -0000 On Mon, Jul 07, 2003 at 12:42:49PM -0400 or thereabouts, Paul Chvostek wrote: > > I'm confused... > > I've got a box on which 5.0-RELEASE was installed. I updated the source > tree using cvsup to RELENG_5_1 and tried to recompile, and now every > time it gets to bin/cat, it chokes. The source tree *is* up to date, > I've tried running `make clean update buildworld` to no avail. It > always stops in the same place. I could do a proper reinstall from an > ISO, but I'd really like to know what's wrong. > > Any idea what's happening, or where I should look? I'm stumped. Those are thread functions, but no -lc_r (or -pthread). Try recvsupping; someone else will no doubt have a better answer than I did. -- Josh > > Thanks. > > | ===> bin > | ===> bin/cat > | cc -O3 -pipe -march=pentiumpro -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -Werror -c /var/src/bin/cat/cat.c > | cc -O3 -pipe -march=pentiumpro -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -Werror -static -o cat cat.o > | /usr/obj/var/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/var/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/var/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/var/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/var/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 > | > | Stop in /var/src/bin/cat. > |... > > -- > Paul Chvostek > Operations / Abuse / Whatever > it.canada, hosting and development http://www.it.ca/ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"