Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2003 15:29:25 -0700
From:      BSDC <bsdc@xtremedev.com>
To:        "Sergey A. Osokin" <osa@freebsd.org.ru>
Cc:        ports@freebsd.org
Subject:   Re: ImageMagick on 5.2-R fails with pthread error
Message-ID:  <20031220222924.GA87025@Amber.XtremeDev.com>
In-Reply-To: <20031220200906.GG35515@freebsd.org.ru>
References:  <20031220111859.GA97021@Amber.XtremeDev.com> <20031220200906.GG35515@freebsd.org.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 20, 2003 at 11:09:06PM +0300, Sergey A. Osokin wrote:
> On Sat, Dec 20, 2003 at 04:18:59AM -0700, BSDC wrote:
> > Trying to install ImageMagick on a FreeBSD 5.2-R system, I get:
> 
> Where you get FreeBSD 5.2-RELEASE? :-)

Sorry, I mean 5.2-RC.

> > Making all in utilities
> > gmake[1]: Entering directory
> > `/usr/ports/graphics/ImageMagick/work/ImageMagick-5.5.7/utilities'
> > /bin/sh ../libtool --silent --mode=link cc  -O -pipe -funroll-loops
> > -DVM_STACK -march=pentium4 -Wall  -L/usr/local/lib -lc_r
> > -L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/lib -o composite
> > -L/usr/local/lib -lc_r -L/usr/X11R6/lib -L/usr/local/lib
> > -L/usr/local/lib composite.o ../magick/libMagick.la  
> > /usr/local/lib/libjasper.so: warning: tmpnam() possibly used unsafely;
> > consider using mkstemp()
> > ../magick/.libs/libMagick.so: undefined reference to `pthread_equal'
> > gmake[1]: *** [composite] Error 1
> > gmake[1]: Leaving directory
> > `/usr/ports/graphics/ImageMagick/work/ImageMagick-5.5.7/utilities'
> > gmake: *** [all-recursive] Error 1
> > *** Error code 2
> > 
> > Should it be using -lc_r instead of -pthread? Or is that the correct
> > thing now in 5.x?
> 
> Yep, -lc_r for 5.x and -pthread for 4.x.
> See ports/Mk/bsd.port.mk for details.

Ok. Then I am doubly puzzled by why libMagick.so would give an undefined
reference to 'pthread_equal'.



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