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                                             <[EMAIL PROTECTED]>
>   Operations / Abuse / Whatever
>   it.canada, hosting and development                   http://www.it.ca/
> 
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to