From owner-freebsd-current@FreeBSD.ORG Fri Dec 26 01:05:33 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 4252D16A4CE; Fri, 26 Dec 2003 01:05:33 -0800 (PST) Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 268AE43D2D; Fri, 26 Dec 2003 01:05:31 -0800 (PST) (envelope-from bsdc@xtremedev.com) Received: from localhost (localhost [127.0.0.1]) by mail.XtremeDev.com (Postfix) with ESMTP id ABE8C11BA5; Fri, 26 Dec 2003 02:05:30 -0700 (MST) Received: from mail.XtremeDev.com ([127.0.0.1]) by localhost (Amber.XtremeDev.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31160-09; Fri, 26 Dec 2003 02:05:28 -0700 (MST) Received: by mail.XtremeDev.com (Postfix, from userid 1001) id 80E7611B46; Fri, 26 Dec 2003 02:05:28 -0700 (MST) Date: Fri, 26 Dec 2003 02:05:28 -0700 From: BSDC To: deischen@freebsd.org Message-ID: <20031226090528.GA87612@Amber.XtremeDev.com> References: <20031224084858.GA12660@Amber.XtremeDev.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at xtremedev.com 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: Fri, 26 Dec 2003 09:05:33 -0000 On Wed, Dec 24, 2003 at 09:10:35AM -0500, Daniel Eischen wrote: > 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" > > What is PTHREAD_LIBS set to in ports/Mk/bsd.port.mk? If you haven't > modified it it should be PTHREAD_LIBS=-lc_r. It is indeed set to -lc_r, and the fourth line down below this does show that -lc_r is being used. But apparently not for the making of libMagic.la. > > > > 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' > > The problem appears to be in the build of "../libtool". It is > probably ignoring the option "-lc_r". Take a look at it (libtool) > and see if you can find where it processes (or doesn't process) > -lc_r. I don't know much if anything about libtool. But will give it atleast a glance. > This isn't a libkse issue. My guess is that either the port is > broke when threads are enabled or you've got something wrong in > your ports tree. I didn't think it was a libkse issue. In thinking that it might be a bad port cvsup, I rm -rf'd ports and recvsup'd from cvsup.freebsd.org, and had encountered the same issue. Ruling out a local ports modification issue (that and another poster had said he got the same error with his threaded ImageMagick build).