(glib20 2.10.2) libgthread isn't linking to libpthread

Pav Lucistnik pav at oook.cz
Tue Apr 11 14:29:18 UTC 2006


Yuri Pankov píše v út 11. 04. 2006 v 18:25 +0400:
> Pav Lucistnik wrote:
> > Yuri Pankov píše v út 11. 04. 2006 v 18:13 +0400:
> >   
> >> Good day.
> >>
> >> I've a problem with glib20 from marcuscom. It seems that it doesn't get 
> >> linked to libpthread and I can't run at least emulators/qemu-launcher:
> >>  > qemu-launcher
> >> /libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined 
> >> symbol "pthread_getschedparam"
> >>
> >> Adding -lpthread to LDFLAGS in 
> >> /usr/ports/devel/glib20/work/glib-2.10.2/gthread/Makefile seems to solve 
> >> the problem.
> >>
> >> uname -a output: FreeBSD arroyo.localnet 7.0-CURRENT FreeBSD 7.0-CURRENT 
> >> #2: Mon Apr 10 03:56:35 MSD 2006     
> >> root at arroyo.localnet:/usr/obj/data/src/sys/ARROYO  amd64
> >>
> >> main ports tree and merged marcuscom's one were recently updated.
> >>     
> >
> > What does your
> >
> > pkg-config --libs gthread-2.0
> >
> > gives you?
> >
> >   
> # pkg-config --libs gthread-2.0
> -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -liconv

Then it's all fine. Your application is probably not using build
infrastructure properly.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Co vime o lasce? Laska je jako hruska. Hruska je sladka a ma urcity tvar.
Zkuste presne definovat tvar hrusky.
  -- Marigold: Pul stoleti poezie


More information about the freebsd-gnome mailing list