Moses DeJong wrote:
> I started out by compiling and installing libgii, that worked.
> 
> When I tried to compile libggi I got this error during the
> configure process.
> 
> ../../lib/libggi/configure --prefix=$PREFIX --with-gii=$PREFIX
> ...
> creating config.h
> configure: warning:
> LibGII is not properly installed on the system. You need LibGII for
> building LibGGI. Please compile LibGII first.
> 
> The strange thing is that the Makefile was created in the build
> directory so the configure script must have finished properly.

Like configure says: it's just a warning.

> This message was very misleading, but I was still able to compile.

The message means what it says: LibGII is not properly intalled
on your system. The whole point of autoconf is that configure
should be run in the same environment as the one you intend to
use the package in.

> I also got this error from libggi2d.
> 
> Here is some output from the config.log that might be related.
> 
> configure:2196: checking for ggi/ggi.h
> configure:2206: gcc -E  -I/usr/local/project/ggi/include conftest.c
> >/dev/null 2>conftest.o
> ut
> configure:2238: checking for ggiSetPalette in -lggi
> configure:2257: gcc -o conftest -g -O2 -I/usr/local/project/ggi/include
> -I/usr/local/proje
> ct/ggi/include  -L/usr/local/project/ggi/lib conftest.c -lggi   1>&5
> ld: warning: libgii.so.0, needed by /usr/local/project/ggi/lib/libggi.so,
> not found (try us
> ing --rpath)
> ld: warning: libgg.so.0, needed by /usr/local/project/ggi/lib/libggi.so,
> not found (try usi
> ng --rpath)
> /usr/local/project/ggi/lib/libggi.so: undefined reference to
> `giiJoinInputs'
> /usr/local/project/ggi/lib/libggi.so: undefined reference to
> `giiGetEventMask'
> /usr/local/project/ggi/lib/libggi.so: undefined reference to `ggUnlock'
> 
> It looks like the problem is that the runtime shared lib path is not
> getting burned into the executable. This seems like a problem that
> would be fixed by adding -Wl,-rpath,$PREFIX/lib to the compile line

This is just expected - any libraries a package needs must be found
by both the compile-time linker and the run-time linker.

> When I tried to compile the libggi3d library I found that it did not
> have a configure script at all. I tried to run the autogen.sh file
> to create one from the configure.in file, but I did not have the
> correct versions of the autoconf tools.

If you want to hack LibGGI3D you need the auto* tools anyway, if
you don't intend to do that you have no use for LibGGI3D.

> I also tried to compile libwmh when I got this error.

[snip]

> checking host system type... ../../lib/libwmh/config.guess:
> ../../lib/libwmh/config.guess:
> No such file or directory
> configure: error: can not guess host type; you must specify one
> 
> When I checked the config.guess file I noticed that it was a
> symlink to a file that does not exist.
> 
> % ls -la ../../lib/libwmh/config.guess
> lrwxrwxrwx   1 mo       mo             63 Oct 11 14:31
> ../../lib/libwmh/config.guess -> /ex
> port/sunsite/users/ggicore/tools/share/automake/config.guess
> 
> So it looks like this is a symlink that got put into the tar file. Other
> files in this same directory also appear to be symlinked.
> 
> lrwxrwxrwx   1 mo       mo             58 Oct 11 14:31 COPYING ->
> /export/sunsite/users/ggi
> core/tools/share/automake/COPYING
> lrwxrwxrwx   1 mo       mo             58 Oct 11 14:31 INSTALL ->
> /export/sunsite/users/ggi
> core/tools/share/automake/INSTALL

Looks like a bug in the snapshot generation. I'll see to that it gets
fixed.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan/
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to