From owner-freebsd-questions Thu Jan 30 9:25:10 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39E1837B401 for ; Thu, 30 Jan 2003 09:25:08 -0800 (PST) Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 843EE43F3F for ; Thu, 30 Jan 2003 09:25:07 -0800 (PST) (envelope-from freebsd@acedsl.com) Received: from winxp (www.vequa.com [66.114.64.143]) by mail1.acecape.com (8.12.2/8.12.2) with SMTP id h0UHP6Af032582 for ; Thu, 30 Jan 2003 12:25:06 -0500 Message-ID: <004b01c2c884$20250310$6501a8c0@winxp> From: "Zeno Lee" To: References: <20030130170550.GA726@sentinelchicken.net> Subject: libjpeg linking problem plaguing me from 4.3 to 4.7 Date: Thu, 30 Jan 2003 12:22:11 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My system: FreeBSD 4.7-RELEASE (Nov 2002) on i386 From FreeBSD 4.3 to CVSup updates to 4.7, I have had a constant problem with my libjpeg (jpeg-6b_1 ) library. Several ports that link /usr/local/lib/libjpeg.a during build complain of multiply defined definitions: CASE 1: make install of gnucash via /usr/ports/graphics/gdk-pixbuf dependency cc -shared io-jpeg.lo -Wl,--whole-archive /usr/local/lib/libjpeg.a /usr/local/lib/libjpeg.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/usr/ports/ graphics/gdk-pixbuf/work/gdk-pixbuf-0.22.0/gdk-pixbuf/.libs -Wl,--rpath -Wl, /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib ./.libs/libgdk_pixbuf.so -lgtk12 -lgdk12 -lgmodule12 -lglib12 -lintl -lXext -lX11 -lm -ltiff /usr/local/lib/libjpeg.a -lpng -lz -Wl,-E -Wl,-soname -Wl,libpixbufloader- jpeg.so -o .libs/libpixbufloader-jpeg.so /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_CreateCompress': jcapimin.o(.text+0x0): multiple definition of `jpeg_CreateCompress' /usr/local/lib/libjpeg.a(jcapimin.o)(.text+0x0): first defined here /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_destroy_compress': jcapimin.o(.text+0x108): multiple definition of `jpeg_destroy_compress' /usr/local/lib/libjpeg.a(jcapimin.o)(.text+0x108): first defined here /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_abort_compress': jcapimin.o(.text+0x11c): multiple definition of `jpeg_abort_compress' /usr/local/lib/libjpeg.a(jcapimin.o)(.text+0x11c): first defined here ... etc. CASE 2: make install of umbrello via /usr/ports/audio/arts dependency gmake[2]: Entering directory `/usr/ports/audio/arts/work/arts-1.1/mcop' /bin/sh ../libtool --silent --mode=link --tag=CXX c++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer- arith -Wmissing-prototypes -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O -pipe -fno-exceptions -fno-check-new -ftemplate-depth-99 -o libmcop.la -rpath /usr/local/lib -no-undefined -version-info 1:0 buffer.lo connection.lo core.lo dispatcher.lo iomanager.lo object.lo socketconnection.lo tcpconnection.lo unixconnection.lo tcpserver.lo unixserver.lo objectmanager.lo factory.lo idlfilereg.lo ifacerepo_impl.lo mcoputils.lo startupmanager.lo md5.lo md5auth.lo referenceclean.lo datapacket.lo asyncstream.lo notification.lo flowsystem.lo extensionloader.lo tmpglobalcomm.lo mcopconfig.lo connect.lo reference.lo type.lo trader_impl.lo dynamicrequest.lo anyref.lo loopback.lo debug.lo delayedreturn.lo thread.lo dynamicskeleton.lo ../libltdl/libltdlc.la -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -ljpeg -L/usr/X11R6/lib /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_CreateCompress': jcapimin.o(.text+0x0): multiple definition of `jpeg_CreateCompress' ../libltdl/.libs/libltdlc.a(jcapimin.o)(.text+0x0): first defined here /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_destroy_compress': jcapimin.o(.text+0x108): multiple definition of `jpeg_destroy_compress' ../libltdl/.libs/libltdlc.a(jcapimin.o)(.text+0x108): first defined here /usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_abort_compress': jcapimin.o(.text+0x11c): multiple definition of `jpeg_abort_compress' ... etc. I've tried removing and reinstalling libjpeg I've tried modifying and removing /etc/ld.so.conf But the problem just does not go away. Has anyone clues or suggestions on where to look for this? Does /etc/make.conf have anything to do with this? gmake? libtool? autoconf? I must have modified something between 4.3 and 4.7 that affected the behavior of how my ports build and link with libjpeg. Exhaustive searches of archived questions bring up nothing of this problem. Any hints on where to look will help. Zeno To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message