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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to