[gtkada] Compile error in GtkAda-1.2.10

David J.A. Koogler dkoogler at shore.net
Fri Dec 15 00:00:18 CET 2000


David,

> Here follows the installation output:
> 
> > gnatgcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtkada-dialogs.adb
> > gnatgcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtkada-file_selection.adb
> > gnatgcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtkada-handlers.ads
> > gnatgcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtkada-intl.adb
> > gnatgcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtkada-pixmaps.ads
> > cd lib-obj; gcc -c -g -O2 -Wall -I/usr/lib/glib/include -I/usr/X11R6/include -I.. -fPIC ../misc.c
> > cd lib-obj; gcc -c -g -O2 -Wall -I/usr/lib/glib/include -I/usr/X11R6/include -I.. -fPIC ../misc_extra.c
> > gcc -shared -fPIC  -o libgtkada-1.2.so.10 \
> >   -Wl,-soname,libgtkada-1.2.so.10 lib-obj/glib*.o lib-obj/gdk*.o \
> >   lib-obj/gtk*.o lib-obj/misc.o lib-obj/misc_extra.o gtkextra/gtk*.o -L/usr/lib
> > -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm
> > gcc: lib-obj/glib*.o: No such file or directory
> > gcc: lib-obj/gdk*.o: No such file or directory
> > make[1]: *** [libgtkada.so] Error 1
> > make[1]: Leaving directory `/tmp/GtkAda-1.2.10/src'
> > make: *** [all] Error 2

By any chance did you have a previous installation of GtkAda on your
system? I ran into this same problem because Gnat did not compile all
of the dependant packages since it found those packages already on
its library search list. Hence the object files for those packages
do not end up in the lib-obj directory and the dynamic library build
fails because it can not find the files. Note that it does find all
the files that were compiled.

The installation notes do point out the need to uninstall any
previous version of Gtk-Ada. It would be nice if Gnat had some option
to look for a local package before searching the library.

Dave Koogler
Boolean Solutions, Ltd.




More information about the gtkada mailing list