From owner-freebsd-questions@FreeBSD.ORG Tue Aug 21 00:47:48 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66D5216A41B for ; Tue, 21 Aug 2007 00:47:48 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from eunet.yu (smtpclu-4.eunet.yu [194.247.192.229]) by mx1.freebsd.org (Postfix) with ESMTP id E9CC113C442 for ; Tue, 21 Aug 2007 00:47:47 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-221-254.eunet.yu [213.198.221.254]) by eunet.yu (8.13.6/8.13.6) with ESMTP id l7L0iFTC003847; Tue, 21 Aug 2007 02:44:16 +0200 Message-Id: <200708210044.l7L0iFTC003847@eunet.yu> Date: Tue, 21 Aug 2007 02:43:02 +0200 From: Nikola Lecic To: David LeCount In-Reply-To: <662889.60450.qm@web57007.mail.re3.yahoo.com> References: <662889.60450.qm@web57007.mail.re3.yahoo.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,TW_BX,TW_IB,TW_LX,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.2 Cc: freebsd-questions@freebsd.org Subject: Re: Shared-mime-info won't compile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 00:47:48 -0000 On Mon, 20 Aug 2007 16:07:07 -0700 (PDT) David LeCount wrote: > I've been having a problem for a long time trying to > compile the shared-mime-info port. Below is the error > I'm getting. I have tried recompiling libxml2 and > everything shared-mime-info depends on. >=20 > gmake[1]: Entering directory > `/usr/ports/misc/shared-mime-info/work/shared-mime-info-0.22' > cc -DHAVE_CONFIG_H -I. -I/usr/local/include/libxml2 > -I/usr/local/include -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include =20 > -I/usr/local/include -I/usr/local/include/libxml2 > -I/usr/local/include -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include -g -O2 -pipe=20 > -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wwrite-strings -MT > update_mime_database-update-mime-database.o -MD -MP > -MF > .deps/update_mime_database-update-mime-database.Tpo -c > -o update_mime_database-update-mime-database.o `test > -f 'update-mime-database.c' || echo > './'`update-mime-database.c > mv -f > .deps/update_mime_database-update-mime-database.Tpo > .deps/update_mime_database-update-mime-database.Po > cc -I/usr/local/include/libxml2 -I/usr/local/include > -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include -g -O2 -pipe=20 > -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wwrite-strings -L/usr/local/lib -o > update-mime-database > update_mime_database-update-mime-database.o > -L/usr/local/lib -lxml2 -lglib-2.0 -liconv =20 > /usr/local/lib/libxml2.so: undefined reference to > `pthread_equal' Hello David, Just to be sure: your ports tree is up-to-date, you didn't install textproc/libxml2 altering WITH_THREADS option and you don't have anything threads-related in /etc/make.conf or somewhere else? In that case this joyfully written PR can certainly help: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dthreads/113666 (add -lc_r in share-mime-info's Makefile as explained). Besides that, keep an eye on that PR since answers will surely be relevant for you. Of course, you can artificially add -pthread among C compiler flags, like this: # portupgrade -M 'CFLAGS=3D-pthread' shared-mime-info (if you use portupgrade) or like this: # cd /usr/ports/misc/shared-mime-info # make CFLAGS=3D-pthread but I'm not certain about the consequences. Better try the solution from the aforementioned PR. Nikola Le=C4=8Di=C4=87