svn commit: r312209 - in head/devel: allegro apr1 apr2 bennugd-core bennugd-modules boost-all boost-libs boost-python-libs bullet ccons cgit clanlib1 clanlib22 clint cocaine-core commoncpp cppcheck...

Pietro Cerutti gahr at FreeBSD.org
Mon Apr 15 14:46:05 UTC 2013


On 2013-Apr-15, 09:06, Jeremy Messenger wrote:
> On Mon, Apr 15, 2013 at 2:43 AM, Pietro Cerutti <gahr at freebsd.org> wrote:
> > On 2013-Apr-14, 22:29, Steve Wills wrote:
> >> I may be wrong, but some of these changes seem wrong. At least for glib
> >> and any of the others that completely removed PTHREAD_LIBS entirely. I
> >> think it's fine to replace PTHREAD_LIBS with -pthread, but removing
> >> PTHREAD_LIBS or -pthread entirely could be problematic. These two PRs:
> >>
> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=177800
> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=176888
> >>
> >> seem to be caused by this. Am I wrong? If not, we may need to go back
> >> through these changes and put -pthread back where it was removed entirely.
> >
> > I would be surprised if they were. glib20 configures fine without the
> > explicit pthread flags. See config.log. The shlib ends up correctly
> > linked against the threading library:
> >
> >> ldd /usr/local/lib/libglib-2.0.so.0
> >     libintl.so.9 => /usr/local/lib/libintl.so.9 (0x801702000)
> >     libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x80190b000)
> >     libpcre.so.3 => /usr/local/lib/libpcre.so.3 (0x801c04000)
> >     libthr.so.3 => /lib/libthr.so.3 (0x801e67000)
> >     libc.so.7 => /lib/libc.so.7 (0x80081c000)
> >
> > Moreover, the symptoms aren't quite what I'd expect from an application
> > missing a pthread link, as they usually die in initialization phase,
> > even before they reach main.
> 
> I am not able to access to FreeBSD since yesterday, but I should be
> able to this afternoon. You just need to make sure the gthread's
> pkg-config --libs has -pthread in it. If it does then it's probably
> bug in both ports rather than glib. The update of glib, they have
> rewrote thread stuff that exposed some libraries/apps bug like clutter
> that has been fixed in upstream. The patch looks like:
> 
> http://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi/ports/graphics/clutter/files/patch-clutter_clutter-main.c

$ pkgconf --libs gthread-2.0
-lgthread-2.0 -pthread -L/usr/local/lib -lglib-2.0

Please coordinate within the gnome@ team to fix this issue.

-- 
Pietro Cerutti
The FreeBSD Project
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20130415/f821b242/attachment.sig>


More information about the svn-ports-head mailing list