[Kaffe] problem with bad libgif link in CVS code
Godmar Back
gback at cs.utah.edu
Wed Jan 13 22:43:43 PST 1999
Make sure you remove config.cache before configuring.
- Godmar
>
> Hi all.
>
> I had a big problem with kaffe out of todays CVS. I was running on a
> solaris sparc 5.6 system when I ran into a problem with libgif. The
> configure script seemed to think libgif worked and it linked Kaffe
> to it, but when I ran the code it crashed.
>
>
> /tmp/mo/install_kaffe/bin/javac
> ld.so.1: /tmp/mo/install_kaffe/libexec/Kaffe: fatal: libgif.so.3: open failed: No such file or directory
> Killed
>
> mo(/tmp/mo/tcljava1.1b1/unix/Kaffe)% ldd /tmp/mo/install_kaffe/libexec/Kaffe
> libm.so.1 => /usr/lib/libm.so.1
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libgif.so.3 => (file not found)
> libSM.so.6.0 => /soft/X11R6.3/lib/libSM.so.6.0
> libICE.so.6.3 => /soft/X11R6.3/lib/libICE.so.6.3
> libX11.so.6.1 => /soft/X11R6.3/lib/libX11.so.6.1
> libkaffevm-1.0b3.so => /tmp/mo/install_kaffe/lib/libkaffevm-1.0b3.so
> libc.so.1 => /usr/lib/libc.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
>
>
>
> (from configure output)
> checking for DGifOpenFileHandle in -lgif... (cached) yes
> checking for gif_lib.h... (cached) yes
>
> (from config.log)
> configure:4455: checking for DGifOpenFileHandle in -lgif
> configure:4474: gcc -o conftest -g -O2 -Wall -Wstrict-prototypes conftest.c -lgif 1>&5
> configure:4467: warning: function declaration isn't a prototype
> configure:4469: warning: function declaration isn't a prototype
>
>
>
> char DGifOpenFileHandle();
>
> int main() {
> DGifOpenFileHandle();
> return 0;
> }
>
>
> % gcc -o conftest -g -O2 -Wall -Wstrict-prototypes conftest.c -lgif 1>&5
> conftest.c:1: warning: function declaration isn't a prototype
> conftest.c:3: warning: function declaration isn't a prototype
>
> % ./conftest
> ld.so.1: ./conftest: fatal: libgif.so.3: open failed: No such file or directory
> Killed
>
> % ldd conftest
> libgif.so.3 => (file not found)
> libc.so.1 => /usr/lib/libc.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
>
>
>
> I could not find libgif on my system and I had no clue how to fix the
> configure.in script so I just tossed a hack into configure so that the
> contest compile failed. After installing I now had no link to libgif.
>
> ..
>
> checking for DGifOpenFileHandle in -lgif... no
>
> ..
>
> mo(/tmp/mo/install_kaffe/libexec)% ldd Kaffe
> libm.so.1 => /usr/lib/libm.so.1
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libSM.so.6.0 => /soft/X11R6.3/lib/libSM.so.6.0
> libICE.so.6.3 => /soft/X11R6.3/lib/libICE.so.6.3
> libX11.so.6.1 => /soft/X11R6.3/lib/libX11.so.6.1
> libkaffevm-1.0b3.so => /tmp/mo/install_kaffe/lib/libkaffevm-1.0b3.so
> libc.so.1 => /usr/lib/libc.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
>
>
>
> That worked for me but it seems like the configure script should be
> able to figure out that no libgif exists on my system.
>
>
> I hope that helps
> mo dejong
> dejong at cs.umn.edu
>
>
More information about the kaffe
mailing list