build libxklavier

Jeremy Messenger mezz7 at cox.net
Wed Aug 2 04:52:27 UTC 2006


On Tue, 01 Aug 2006 23:28:12 -0500, Eric L. Chen <lihong at ieee.org> wrote:

> By the way, these are some output required by the web.

<snip, thanks for details>

> On 8/2/06, Eric L. Chen <lihong.chen at gmail.com> wrote:
>> Here is compiling output. I compiled perl5.8, tcl84 and ruby with
>> thread support.
>> If that cause this problem, I think makefile may need check that.
>> /Eric
>>
>> cc -Wall -Werror -I/usr/X11R6/include -I/usr/X11R6/include -I.. -O2
>> -fno-strict-aliasing -pipe -march=pentium-m -o .libs/test_config
>> test_config.o  ../libxklavier/.libs/libxklavier.so -L/usr/local/lib
>> -L/usr/X11R6/lib /usr/local/lib/libxml2.so -lz -lm -lxkbfile
>> /usr/local/lib/libiconv.so -lX11 -Wl,--rpath -Wl,/usr/X11R6/lib
>> -Wl,--rpath -Wl,/usr/local/lib
>> ../libxklavier/.libs/libxklavier.so: warning: warning: tmpnam()
>> possibly used unsafely; consider using mkstemp()
>> /usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
>> gmake[2]: *** [test_config] Error 1
>> gmake[2]: Leaving directory
>> `/usr/ports/x11/libxklavier/work/libxklavier-2.2/tests'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory  
>> `/usr/ports/x11/libxklavier/work/libxklavier-2.2'
>> gmake: *** [all] Error 2
>> *** Error code 2
>>
>> Stop in /usr/ports/x11/libxklavier.

It looks like it's textproc/libxml2 that you have enabled it with the  
threads support. Are you aware of that it is not good idea to enable  
threads support in ruby and libxml2? They are known to caused other apps  
to have the problems. Anyway, back to your problem, to me it looks like  
when enable threads support in libxml2 should add '${PTHREAD_*} in  
libxml-2.0.pc or it is not a good idea? I will leaving that to one of my  
team that know about that stuff very well.

Cheers,
Mezz

>> On 8/2/06, Jeremy Messenger <mezz7 at cox.net> wrote:
>> > On Tue, 01 Aug 2006 21:39:53 -0500, Eric L. Chen  
>> <lihong.chen at gmail.com>
>> > wrote:
>> >
>> > > Hi All,
>> > > I need this change to build libxklavier successfully:
>> >
>> > I can't reproduce it, please show us the error output and other  
>> details.
>> > Visit http://www.freebsd.org/gnome/docs/bugging.html and follow the  
>> '1.
>> > When should I make a bug report?' first before you go to #2.
>> >
>> > Cheers,
>> > Mezz
>> >
>> > > -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
>> > > -               LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
>> > > +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
>> > > +               LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib
>> > > ${PTHREAD_LIBS}"
>> > >
>> > > It seems not link with pthread at default.
>> > >
>> > > /Eric


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org


More information about the freebsd-gnome mailing list