From:
[email protected]
Package: simage
Severity: normal
Tags: patch
When building 'simage' on amd64 I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../include -DSIMAGE_DEBUG=1 -DSIMAGE_INTERNAL -g -O3 -MT simage_libsndfile.lo -MD -MP -MF .deps/simage_libsndfile.Tpo -c simage_libsndfile.c -fPIC -DPIC -o .libs/simage_libsndfile.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../include -DSIMAGE_DEBUG=1 -DSIMAGE_INTERNAL -g -O3 -MT simage_libsndfile.lo -MD -MP -MF .deps/simage_libsndfile.Tpo -c simage_libsndfile.c -fPIC -DPIC -o simage_libsndfile.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link g++ -g -O2 -o libsimage.la -rpath /usr/lib -no-undefined -version-info 26:0:6 simage.lo simage_write.lo resize.lo simage12.lo simage13.lo movie.lo stream.lo params.lo simage_jpeg.lo simage_gif.lo simage_png.lo simage_
tiff.lo simage_tga.lo simage_rgb.lo simage_pic.lo simage_xwd.lo simage_eps.lo simage_avi.lo avi_encode.lo simage_oggvorbis_reader.lo simage_libsndfile.lo -lsndfile -logg -lvorbis -lvorbisfile -ltiff -lpng -lz -ljpeg -lungif -lm
g++ -shared /usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux/3.4.1/crtbeginS.o .libs/simage.o .libs/simage_write.o .libs/resize.o .libs/simage12.o .libs/simage13.o .libs/movie.o .libs/stream.o .libs/params.o .libs/simage_
jpeg.o .libs/simage_gif.o .libs/simage_png.o .libs/simage_tiff.o .libs/simage_tga.o .libs/simage_rgb.o .libs/simage_pic.o .libs/simage_xwd.o .libs/simage_eps.o .libs/simage_avi.o .libs/avi_encode.o .libs/simage_oggvorbis_reader.o .libs/simage_libsndfile.
o -L/usr/lib /usr/lib/libsndfile.so /usr/lib/libogg.so /usr/lib/libvorbis.so /usr/lib/libvorbisfile.so -ltiff -lpng -lz /usr/lib/libjpeg.so -lungif -L/usr/lib/gcc/x86_64-linux/3.4.1 -L/usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib -L/usr/lib/gcc/x86_64-
linux/3.4.1/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux/3.4.1/crtendS.o /usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crtn.o -o .libs/libsimage.so.20.6.0
/usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o(.init+0x0): In function `_init':
/glibc-2.3.2.ds1/build-tree/amd64-libc/csu/crti.S:11: multiple definition of `_init'
/usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o(.init+0x0):/glibc-2.3.2.ds1/build-tree/amd64-libc/csu/crti.S:11: first defined here
/usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o(.fini+0x0): In function `_fini':
: multiple definition of `_fini' /usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o(.fini+0x0): first defined here
/usr/lib/gcc/x86_64-linux/3.4.1/crtbeginS.o(.data.rel+0x0): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-linux/3.4.1/crtbeginS.o(.data.rel+0x0): first defined here collect2: ld returned 1 exit status
make[3]: *** [libsimage.la] Error 1
make[3]: Leaving directory `/simage-1.6.0/src'
The configure script uses "$LD" instead of $LD in its linker tests. This
makes the shell look for the filename "ld -m elf_x86_64" on amd64 which
does not exists because the ' -m elf_86_64' part is not interpreted as
an option but as part of the filename. Therefore 'configure' does not
find the GNU ld and does not set the correct linker options (the option -nostdlib will be missing).
This "$LD" problem was caused by using an old buggy version of
'libtool.m4' when creating the configure script.
With the attached patch 'simage' can be compiled on amd64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/simage-1.6.0/configure ./configure
--- ../tmp-orig/simage-1.6.0/configure 2003-12-12 13:52:01.000000000 +0100
+++ ./configure 2004-08-17 08:51:38.723609265 +0200
@@ -4585,7 +4585,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-case `"$LD" -v 2>&1 </dev/null` in
+case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
lt_cv_prog_gnu_ld=yes
;;
@@ -9830,7 +9830,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-case `"$LD" -v 2>&1 </dev/null` in
+case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
lt_cv_prog_gnu_ld=yes
;;
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)