ImageMagick on 5.2-R fails with pthread error

Sergey A. Osokin osa at freebsd.org.ru
Sat Dec 20 12:11:47 PST 2003


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? :-)

> 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.

-- 

Rgdz,                        /"\  ASCII RIBBON CAMPAIGN
Sergey Osokin aka oZZ,       \ /    AGAINST HTML MAIL
http://ozz.pp.ru/             X          AND NEWS
                             / \


More information about the freebsd-ports mailing list