Time to put ${PTHREAD_LIBS} in the x11/xscreensaver-gnome?
Joe Marcus Clarke
marcus at marcuscom.com
Thu Mar 25 20:50:19 PST 2004
On Thu, 2004-03-25 at 23:42, Alexander Nedotsukov wrote:
> Jeremy Messenger wrote:
>
> > On Thu, 25 Mar 2004 23:46:28 +0900, Alexander Nedotsukov
> > <bland at FreeBSD.org> wrote:
> >
> > <snip>
> >
> >> Well to be constructive can people (not only once who currently
> >> expirince a problem with xscreensaver) try the patch attached and report
> >> two things is: it works and what is your GL library Nvidia/Mesa?
> >
> >
> > I tried this patch and it doesn't fix the crash. Here using Nvidia
> > driver.
>
> Jeremy, I looked into your ldd output and it same to mine. There is no
> any single object linked against libc_r, libthr, libkse or libpthread.
> Can this be world + kernel problem?
> About the patch. Its purpose not link GL hacks against libpthread. They
> don't use any pthreads api so why we need this?
The problem isn't with the -demo binary, but with the hacks that the
binary loads. On my -CURRENT system, libGL is linked to libpthread, and
so are my GL-based hacks:
ldd /usr/X11R6/bin/xscreensaver-hacks/glplanet
glplanet:
libgdk_pixbuf_xlib-2.0.so.400 =>
/usr/X11R6/lib/libgdk_pixbuf_xlib-2.0.so.400 (0x280ab000)
libgdk_pixbuf-2.0.so.400 =>
/usr/X11R6/lib/libgdk_pixbuf-2.0.so.400 (0x280ba000)
libm.so.2 => /lib/libm.so.2 (0x280cd000)
libgobject-2.0.so.400 => /usr/local/lib/libgobject-2.0.so.400
(0x280e5000)
libgmodule-2.0.so.400 => /usr/local/lib/libgmodule-2.0.so.400
(0x28118000)
libglib-2.0.so.400 => /usr/local/lib/libglib-2.0.so.400
(0x2811c000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28191000)
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x2827d000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x282db000)
libpthread.so.1 => /usr/lib/libpthread.so.1 (0x2834d000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28370000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28378000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2838d000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x283d5000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x2848f000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x284a3000)
libc.so.5 => /lib/libc.so.5 (0x284b0000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x2857b000)
libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x28584000)
I bet if you rebuilt xscreensaver without GL support, it would work
fine. I think adding PTHREAD_LIBS to the build may be the obly way to
fix this for libpthread users.
Of course, as a test, you might try libmapping libthread to libc_r, and
see if you can reproduce this, Alexander. I can try the same thing. I
know I can.
Joe
>
> >
> > Cheers,
> > Mezz
> >
> >> Thanks,
> >> Alexander.
> >
> >
> >
>
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20040325/75e79798/attachment.bin
More information about the freebsd-gnome
mailing list