pkgsrc-Users archive

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

Re: glib2 under m68k



On Fri, 06 Jun 2008 22:26:13 +0900, Larson, Timothy E. 
<TELarson%west.com@localhost> wrote:

> cc -O2 -I/usr/pkgsrc/devel/glib2/work.m68k/.buildlink/include -Wall
> -Wl,-R/usr/pkg/lib -o .libs/threadtests threadtests.o
> -L/usr/pkgsrc/devel/glib2/work.m68k/glib-2.16.3/glib/.libs
> -L/usr/pkgsrc/devel/glib2/work.m68k/.buildlink/lib
> ../.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so
> /usr/pkgsrc/devel/glib2/work.m68k/glib-2.16.3/glib/.libs/libglib-2.0.so
> ../../glib/.libs/libglib-2.0.so
> /usr/pkgsrc/devel/glib2/work.m68k/.buildlink/lib/libpcre.so -lintl
> -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath
> -Wl,/usr/pkgsrc/devel/glib2/work.m68k/.buildlink/lib
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_attr_destroy'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_create'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_attr_init'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_equal'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_attr_setscope'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to
> `pthread_attr_setdetachstate'
> ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join'
> gmake[4]: *** [threadtests] Error 1

I'm trying to cross-build glib2 for mac68k with pkgsrc.
libthread-2.0.so is build with -pthread flag, but not linked with -lpthread. 
Is it also on native build? or only on cross-build? (or my fault of cross build 
env?)

-- 
"Of course I love NetBSD":-)
OBATA Akio / obache%NetBSD.org@localhost



Home | Main Index | Thread Index | Old Index