On Wed, 2002-08-21 at 19:00, Archie Cobbs wrote:
> Hi,
> 
> I'm trying to link an application with a library (libpdel) that itself
> links against libc_r. However, the application fails to link:
> 
>     cc -O -pipe -D_THREAD_SAFE ... -pthread -o ... -L/usr/local/lib -lpdel -lexpat 
>-lssl -lcrypto -lcrypt
>     lws_tmpl_misc.o: In function `lws_tf_crypt_hash':
>     lws_tmpl_misc.o(.text+0x3c3): undefined reference to `__pthread_read'
>     main.o: In function `main':
>     main.o(.text+0x21c): undefined reference to `__pthread_sigwait'
>     /usr/local/lib/libpdel.so: undefined reference to `pthread_yield_np'
>     /usr/local/lib/libpdel.so: undefined reference to `__pthread_connect'
>     /usr/local/lib/libpdel.so: undefined reference to `__pthread_accept'
>     /usr/local/lib/libpdel.so: undefined reference to `__pthread_detach'
>     /usr/local/lib/libpdel.so: undefined reference to `__pthread_poll'
>     /usr/local/lib/libpdel.so: undefined reference to `__pthread_write'
>     *** Error code 1
> 
> This is on FreeBSD 4.6-stable as of today. This works fine on FreeBSD 4.5.
> 
> FYI, none of my code ever calls pthread_yield_np(), so I don't know
> where that symbol is coming from.
> 
> Any ideas what the problem is?

I think you need to recompile libpdel for -stable.  This should fix your
problem.  Those symbols don't even exist in -stable.  I built libpdel on
-stable with a bunch of other issues (i.e. -Werror caused a failure due
to a warning in stdio.h, and ${INCOWN}, ${INCGRP}, and ${INCMODE} don't
exist [they are now INCS*]).  But, after getting it compiled and
installed:

/tmp 20:38 shumai marcus %582# cc -o xxx -L/usr/local/lib -lpdel
-pthread -lssl -lcrypto -lexpat xxx.c
/tmp 20:38 shumai marcus %583#

Joe

> 
> Thanks,
> -Archie
> 
> __________________________________________________________________________
> Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to