From owner-freebsd-current@FreeBSD.ORG Mon Dec 29 19:47:40 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C18616A4CE for ; Mon, 29 Dec 2003 19:47:40 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C045F43D5A for ; Mon, 29 Dec 2003 19:47:19 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id ADD5572DBF; Mon, 29 Dec 2003 19:47:19 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id AB55E72DB5; Mon, 29 Dec 2003 19:47:19 -0800 (PST) Date: Mon, 29 Dec 2003 19:47:19 -0800 (PST) From: Doug White To: BSDC In-Reply-To: <20031224084858.GA12660@Amber.XtremeDev.com> Message-ID: <20031229194648.S27691@carver.gumbysoft.com> References: <20031223084804.GA59462@Amber.XtremeDev.com> <20031224084858.GA12660@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: ImageMagick on 5.2-RC1 fails with pthread error (libkse) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 03:47:40 -0000 On Wed, 24 Dec 2003, BSDC wrote: > On Tue, Dec 23, 2003 at 04:49:02PM -0800, Doug White wrote: > > On Tue, 23 Dec 2003, BSDC wrote: > > > > > Getting the following when trying to compile ImageMagick-5.5.7.14 on > > > FreeBSD 5.2-RC1, I don't think it's an issue with libkse specifically > > > though.. > > > > I can't reproduce this on my -current system compiling non-threaded.. you > > should have mentioned you are compiling with WITH_IMAGEMAGICK_THREADS. It > > does show up when using that option. > > Sorry, I forgot I had that set in my /etc/make.conf. I am compiling > ImageMagick with threads, and I'm also libmap'ing libc_r to libkse. > I have also updated to the latest -current as well. > > > This is probably a bug. Please send a message to the port maintainer; they > > need to update the port Makefile to include the correct thread > > selection bits. > > The port maintainer is set to ports@freebsd.org, I have tried there and > got no significant replies. I have also emailed mi@freebsd.org, who was > the last person to commit to the port. His reply was: > > "This is seems to be beyond the port maintainers or the vendor and is > likely to be the -lkse related problem. You should, probably, ask the > KSE developers or the -current mailing list. > > -mi" > > I have "solved" the issue, albeit the wrong way, by editing > work/ImageMagick-5.5.7/magick/libMagick.la and added -lc_r to > dependency_libs: That sounds like libtool is doing the Wrong Thing in the threads selection, probably because the port needs to be updated to the newer threads framework. > > From: > dependency_libs=' -L/usr/local/lib -L/usr/X11R6/lib -ljbig -llcms -ltiff > -lfreetype -ljasper -ljpeg -lpng -lfpx -lexif -lwmflite -ldpstk -ldps > -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm ' > > To: > dependency_libs=' -L/usr/local/lib -L/usr/X11R6/lib -lc_r -ljbig -llcms > -ltiff -lfreetype -ljasper -ljpeg -lpng -lfpx -lexif -lwmflite -ldpstk > -ldps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm ' > > > This allows the compile to finish and the port to install, but it is > very hackish and I'm sure there's a more elegant solution, unfortunately > I'm leaving for the holidays so I can't work out a better patch. Hopefully > this email will make it to the archives and should someone else ever had > to compile threaded ImageMagick on a FreeBSD 5.x system this email would > be of use until a more permanent solution committed. > > > > > > 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 -lc_r > > > -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' > > > > -- > > Doug White | FreeBSD: The Power to Serve > > dwhite@gumbysoft.com | www.FreeBSD.org > -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org