[Bf-committers] linking error

Peter Amstutz bf-committers@blender.org
Mon, 2 Dec 2002 22:11:12 -0500 (EST)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using x86 Debian unstable, automake 1.7 and autoconf 2.56 with blender
updated from CVS about an hour ago.  I generated the makefiles, ran
configure and make.  Everything seemed to be going fine until I got to the
linking stage:

[a bunch of stuff compiles fine]
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tetron/hack/blender/source/creator'
make[3]: Entering directory `/home/tetron/hack/blender/source'
/bin/sh ../libtool --mode=link gcc  -g -O2   -o blender.bin -L/usr/lib/python2.2/config  -lpython2.2  creator/libblender_creator.la blender/libblender_blender.la kernel/libblender_kernel.la ../intern/libblender_intern.la ../intern/python/frozen/libfrozen.a -lXxf86dga -lGLU -lGL -lSDL -lz -lutil -lpng -lm -ljpeg -lcrypto -lpthread -lutil -ldl -lstdc++

gcc -g -O2 -o .libs/blender.bin -L/usr/lib/python2.2/config
creator/.libs/libblender_creator.al -L/usr/X11R6/lib -lutil -lm -lpthread
- -lutil -ldl blender/.libs/libblender_blender.al -lutil -lm -lpthread
- -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm -lpthread -lutil
- -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl
- -lutil -lm -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil
- -lm -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lpython2.2 -ldl -lm -lpthread -lm -ldl -lutil -lm
- -lpthread -lutil -ldl -lutil -lm -lpthread -lutil -ldl -lutil -lm
- -lpthread -lutil -ldl -lm -ldl -lutil -lm -lpthread -lutil -ldl -lm -ldl
- -lutil -lm -lpthread -lutil -ldl kernel/.libs/libblender_kernel.al -lm
- -ldl -lutil -lm -lpthread -lutil -ldl ../intern/.libs/libblender_intern.so
- -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil
- -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil -lutil
- -lutil -lutil -lutil -lm -lpthread -lutil -ldl
../intern/python/frozen/libfrozen.a -lXxf86dga -lGLU -lGL
/usr/lib/libSDL.so -lm -lX11 -lXext -ldl -lz -lutil -lpng -lm
/usr/lib/libjpeg.so -lcrypto -lpthread -lutil -ldl -lstdc++ -Wl,--rpath
- -Wl,/usr/local/lib

blender/.libs/libblender_blender.al(BLO_readblenfile.lo)(.text+0x4fc): In
function `BLO_readblenfilememory':
/home/tetron/hack/blender/source/blender/readblenfile/intern/BLO_readblenfile.c:370:
multiple definition of `BLO_readblenfilememory'
blender/.libs/libblender_blender.al(BLO_readblenfileSTUB.lo)(.text+0x0):/home/tetron/hack/blender/source/blender/readblenfile/stub/BLO_readblenfileSTUB.c:46:
first defined here
/usr/bin/ld: Warning: size of symbol `BLO_readblenfilememory' changed from
52 to 295 in blender/.libs/libblender_blender.al(BLO_readblenfile.lo)

blender/.libs/libblender_blender.al(BLO_readblenfile.lo)(.text+0x624): In
function `BLO_readblenfilehandle':
/home/tetron/hack/blender/source/blender/readblenfile/intern/BLO_readblenfile.c:434:
multiple definition of `BLO_readblenfilehandle'
blender/.libs/libblender_blender.al(BLO_readblenfileSTUB.lo)(.text+0x68):/home/tetron/hack/blender/source/blender/readblenfile/stub/BLO_readblenfileSTUB.c:68:
first defined here
/usr/bin/ld: Warning: size of symbol `BLO_readblenfilehandle' changed from
52 to 325 in blender/.libs/libblender_blender.al(BLO_readblenfile.lo)

blender/.libs/libblender_blender.al(BLO_readblenfile.lo)(.text+0x76c): In
function `BLO_readblenfilename':
/home/tetron/hack/blender/source/blender/readblenfile/intern/BLO_readblenfile.c:480:
multiple definition of `BLO_readblenfilename'
blender/.libs/libblender_blender.al(BLO_readblenfileSTUB.lo)(.text+0x34):/home/tetron/hack/blender/source/blender/readblenfile/stub/BLO_readblenfileSTUB.c:57:
first defined here
/usr/bin/ld: Warning: size of symbol `BLO_readblenfilename' changed from
52 to 109 in blender/.libs/libblender_blender.al(BLO_readblenfile.lo)

collect2: ld returned 1 exit status
make[3]: *** [blender.bin] Error 1
make[3]: Leaving directory `/home/tetron/hack/blender/source'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tetron/hack/blender/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tetron/hack/blender'
make: *** [all] Error 2

Any hints?  Also, several of those libraries are getting included an
absurd number of times.  Is it really necessary to tell the linker
"-lutil" ten or twenty times? :-)

[   Peter Amstutz   ][ amstutz@cs.umass.edu ][ tetron@interreality.org  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE97CDUaeHUyhjCHfcRAjCxAKCSiDJ6Td1xK6nGIEpSv5W+X5Ej1QCaArZV
s2rMzqEM2fm92cwDa6IWuhw=
=hN6Y
-----END PGP SIGNATURE-----