ImageMagick on 5.2-R fails with pthread error
BSDC
bsdc at xtremedev.com
Sat Dec 20 14:29:31 PST 2003
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'.
More information about the freebsd-ports
mailing list