GPGME CVS branched

Michael Nottebrock michaelnottebrock at gmx.net
Sat Dec 11 18:17:06 CET 2004


On Saturday, 11. December 2004 17:54, Michael Nottebrock wrote:
> On Saturday, 11. December 2004 16:51, Marcus Brinkmann wrote:
> > Are you saying that on BSD 5.x ttyname_r is found by configure, and
> > not replaced, so gpgme/ttyname_r.c is not linked in, but yet the
> > prototype is not defined in unistd.h?  Does compiling and linking the
> > test programs succeed?  (This will reveal if the ttyname_r reference
> > in gpgme can be resolved or not).  If this is the case, then BSD lacks
> > the prototype, but provides the function, and unistd.h needs to be
> > fixed (but it will work).
>
> That seems to be the case, thanks for clarifying!
>
> That reminds me of a different issue I forgot to
> report: If I compile with pth support, one of the tests fails to link:
>
> gcc -g -O2 -I/usr/local/include/pth -Wall -Wcast-align -Wshadow
> -Wstrict-prototypes -o .libs/t-thread1
> t-thread1.o  ../../gpgme/.libs/libgpgme-pthread.so -lpthread
> -L/usr/local/lib /usr/local/lib/libgpg-error.so -lintl -Wl,--rpath
> -Wl,/usr/local/lib
> ../../gpgme/.libs/libgpgme-pthread.so: warning: warning: tmpnam() possibly
> used unsafely; consider using mkstemp()
> t-thread1.o(.text+0x12d): In function `passphrase_cb':
> /mnt/stable-usr/home/lofi/freebsd/ports/security/gpgme/work/gpgme-1.0.1/tes
>ts/gpg/t-support.h:67: undefined reference to `__pthread_write'
> ../../gpgme/.libs/libgpgme-pthread.so: undefined reference to
> `__pthread_select'
> ../../gpgme/.libs/libgpgme-pthread.so: undefined reference to
> `__pthread_connect'
> ../../gpgme/.libs/libgpgme-pthread.so: undefined reference to
> `__pthread_accept'
> ../../gpgme/.libs/libgpgme-pthread.so: undefined reference to
> `__pthread_waitpid'
> ../../gpgme/.libs/libgpgme-pthread.so: undefined reference to
> `__pthread_read'
>
> This looks kind of bogus to me, what's going on there? 

Looking at the Makefile templates a bit, it seems to me that in the pth-case 
PTH_LDFLAGS would need to be added to the t_thread1_LDFLAGS. If I do this 
manually, the test compiles.

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : /pipermail/attachments/20041211/9039f02b/attachment-0001.bin


More information about the Gnupg-devel mailing list