Florent Hivert wrote:
Hi there,
I'm in trouble building sage 4.3.4... Here is the problem:
During the build of gd I get:
[...]
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2
-L/usr/local/sage/sage-4.3.4/local/lib -Wl,--rpath
-Wl,/usr/local/sage/sage-4.3.4/local/lib
-L/usr/local/sage/sage-4.3.4/local/lib -o annotate annotate.o ./libgd.la
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm
gcc -g -O2 -Wl,--rpath -Wl,/usr/local/sage/sage-4.3.4/local/lib -o
.libs/annotate annotate.o -L/usr/local/sage/sage-4.3.4/local/lib
./.libs/libgd.so /usr/lib64/libXpm.so /usr/lib64/libX11.so -ljpeg -lfontconfig
/usr/local/sage/sage-4.3.4/local/lib/libfreetype.so
/usr/local/sage/sage-4.3.4/local/lib/libpng12.so -lz -lm -Wl,--rpath
-Wl,/usr/local/sage/sage-4.3.4/local/lib
./.libs/libgd.so: undefined reference to `libiconv'
./.libs/libgd.so: undefined reference to `libiconv_close'
./.libs/libgd.so: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
[...]
It seems that the problems comes from the makefile which forgot to add
/usr/local/sage/sage-4.3.4/local/lib/libiconv.so
To the very last gcc command. Indeed, calling it by hand still fails:
/usr/local/sage/sage-4.3.4/spkg/build/gd-2.0.35.p4\nsage subshell$ gcc -g -O2
-Wl,--rpath -Wl,/usr/local/sage/sage-4.3.4/local/lib -o .libs/annotate
annotate.o -L/usr/local/sage/sage-4.3.4/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so /usr/lib64/libX11.so -ljpeg -lfontconfig
/usr/local/sage/sage-4.3.4/local/lib/libfreetype.so
/usr/local/sage/sage-4.3.4/local/lib/libpng12.so -lz -lm -Wl,--rpath
-Wl,/usr/local/sage/sage-4.3.4/local/lib
./.libs/libgd.so: undefined reference to `libiconv'
./.libs/libgd.so: undefined reference to `libiconv_close'
./.libs/libgd.so: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
But there is no problem if I add it:
/usr/local/sage/sage-4.3.4/spkg/build/gd-2.0.35.p4\nsage subshell$ gcc -g -O2
-Wl,--rpath -Wl,/usr/local/sage/sage-4.3.4/local/lib -o .libs/annotate
annotate.o -L/usr/local/sage/sage-4.3.4/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so /usr/lib64/libX11.so -ljpeg -lfontconfig
/usr/local/sage/sage-4.3.4/local/lib/libfreetype.so
/usr/local/sage/sage-4.3.4/local/lib/libpng12.so
/usr/local/sage/sage-4.3.4/local/lib/libiconv.so -lz -lm -Wl,--rpath
-Wl,/usr/local/sage/sage-4.3.4/local/lib
Now I'm stuck because I don't now how to fix the autoconf/makefile machinery
to let it add it. Any suggestion ?
Cheers,
Florent
I'm too busy to search for it, but there was a report the problem goes away if
an option like ''without-freetype' was added to gd's configure script. You will
need to search the recent posts to find the exact details - I don't have time to
do it for you just now - sorry.
dave
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
To unsubscribe from this group, send email to sage-devel+unsubscribegooglegroups.com or
reply to this email with the words "REMOVE ME" as the subject.