tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x11/libX* and pthreads



Hello,

I am trying to build the modular-xorg-libs on MirBSD. However, the
resulting libraries contain unresolved references to pthread
functions, thus linking programs against them fails:

Making all in sxpm
  CC     sxpm.o
  CCLD   sxpm
../src/.libs/libXpm.so.4.11: warning: strcpy() is almost always
misused, consider using strlcpy()
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: warning:
strcat() is almost always misused, consider using strlcat()
sxpm.o: In function `main':
sxpm.c:(.text+0xed8): warning: sprintf() is often misused, consider
using snprintf()
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_cond_signal'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libX11.so.6.3: undefined
reference to `pthread_cond_broadcast'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_cond_init'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_mutex_unlock'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_self'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_mutex_destroy'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_mutex_lock'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_cond_wait'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_cond_destroy'
/usr/pkgsrc/x11/libXpm/work/.buildlink/lib/libXt.so.6.0: undefined
reference to `pthread_mutex_init'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/libXpm/work/libXpm-3.5.8/sxpm
*** Error code 1


I added a MirBSD stanza to libX11/configure but I do not have the
impression that the value of XTHREADLIB is used anywhere. I would have
expected libX11 to be linked against libpthread.

I admit that I am not terribly familiar with the modular Xorg libs.
Any ideas for how to fix this (ideally before the freeze *g*)?

--Benny.

-- 
The first essential in chemistry is that you should perform practical
work and conduct experiments, for he who performs not practical work
nor makes experiments will never attain the least degree of mastery.
        -- Abu Musa Jabir ibn Hayyan (721-815)


Home | Main Index | Thread Index | Old Index