Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2007 02:43:02 +0200
From:      Nikola Lecic <nlecic@EUnet.yu>
To:        David LeCount <snailboy1@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shared-mime-info won't compile
Message-ID:  <200708210044.l7L0iFTC003847@eunet.yu>
In-Reply-To: <662889.60450.qm@web57007.mail.re3.yahoo.com>
References:  <662889.60450.qm@web57007.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Aug 2007 16:07:07 -0700 (PDT)
David LeCount <snailboy1@yahoo.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708210044.l7L0iFTC003847>