From owner-freebsd-gnome@FreeBSD.ORG Wed Aug 2 05:45:31 2006 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD8EA16A4DA for ; Wed, 2 Aug 2006 05:45:31 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41E4243D45 for ; Wed, 2 Aug 2006 05:45:31 +0000 (GMT) (envelope-from lihong.chen@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so1236718pyb for ; Tue, 01 Aug 2006 22:45:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=eLWQtqiA/zMFcvujM4E25op3u5jIqn/Fqpfb4nr7N3JYLtoWoRZJTic/r0BY5w/7MVjvzlJyUbHngbehSsquSK8aNihnzWiH6R18Qzsg1LhaYhznDBy7a0iK9qr97U5jGB7P6YY0w0p+vidzDwXhTTL8xFl7DeyRWpIwYWsoXVU= Received: by 10.35.36.13 with SMTP id o13mr822103pyj; Tue, 01 Aug 2006 22:45:30 -0700 (PDT) Received: by 10.35.121.14 with HTTP; Tue, 1 Aug 2006 22:45:30 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2006 13:45:30 +0800 From: "Eric L. Chen" Sender: lihong.chen@gmail.com To: "Jeremy Messenger" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: a3f1eaf6cf6f2df0 Cc: gnome@freebsd.org Subject: Re: build libxklavier X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 05:45:32 -0000 Yes, I compiled libxml2 with thread support. Every seems good in my FreeBSD box, maybe I did not install any software that will be broken with threaded libxml2. Thanks. On 8/2/06, Jeremy Messenger wrote: > On Tue, 01 Aug 2006 23:28:12 -0500, Eric L. Chen wrote: > > > By the way, these are some output required by the web. > > > > > On 8/2/06, Eric L. Chen 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 wrote: > >> > On Tue, 01 Aug 2006 21:39:53 -0500, Eric L. Chen > >> > >> > 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@cox.net - mezz@FreeBSD.org > FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) > http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org > http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org > -- Eric Lihong Chen Accton Technology Corporation phone:(04)2371-5665,5620 sip:lihong@ekiga.net xmpp:lihong.chen@gmail.com skype:lihong.chen