gtk.ads not found when compiling

Bug #267907 reported by joesmoe10
4
Affects Status Importance Assigned to Milestone
libgtkada2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm using Ubuntu 8.10, gtkAda 2.12 and gnat 4.3.1.

Compiling the simple window example results in this:

simple.adb:1:06: file "gtk.ads" not found
gnatmake: "simple.adb" compilation error

I have installed all the libgtkada's, and gnat-glade

I think it has to do with the gtkada2-config script. I think the paths that the script looks for are different. On my system I don't have /usr/lib/gtkada or /usr/include/gtkada. The path for gtkada seems to be /usr/lib/ada/adalib/gtkada2

find . -iname "*gtkada*" on /usr gives me this:

./share/man/man1/gtkada2-config.1.gz
./share/man/man1/gtkada-config.1.gz
./share/doc/libgtkada2.12
./share/doc/libgtkada2-bin
./share/doc/libgtkada2-doc
./share/doc/libgtkada2-doc/gtkada_rm
./share/doc/libgtkada2-doc/gtkada_rm/gtkada2_rm.html
./share/doc/libgtkada2-doc/gtkada_rm/gtkada2_rm.pdf.gz
./share/doc/libgtkada2-doc/gtkada_rm/gtkada2_rm.txt.gz
./share/doc/libgtkada2-doc/gtkada_ug
./share/doc/libgtkada2-doc/gtkada_ug/gtkada2_ug.html
./share/doc/libgtkada2-doc/gtkada_ug/gtkada2_ug.txt.gz
./share/doc/libgtkada2-doc/gtkada_ug/gtkada2_ug.pdf.gz
./share/doc/libgtkada2-dev
./share/doc/libgtkada-glade2.12
./share/doc/libgtkada2-dbg
./share/doc/libgtkada-gl2.12
./share/ada/adainclude/gtkada2.gpr
./share/ada/adainclude/gtkada2
./share/ada/adainclude/gtkada2/gtkada-c.adb
./share/ada/adainclude/gtkada2/gtkada-file_selection.ads
./share/ada/adainclude/gtkada2/gtkada-mdi.adb
./share/ada/adainclude/gtkada2/gtkada-dialogs.ads
./share/ada/adainclude/gtkada2/gtkada-bindings.adb
./share/ada/adainclude/gtkada2/gtkada-types.adb
./share/ada/adainclude/gtkada2/gtkada-handlers.ads
./share/ada/adainclude/gtkada2/gtkada-canvas.ads
./share/ada/adainclude/gtkada2/gtkada-properties.ads
./share/ada/adainclude/gtkada2/gtkada-file_selection.adb
./share/ada/adainclude/gtkada2/gtkada-types.ads
./share/ada/adainclude/gtkada2/gtkada-mdi.ads
./share/ada/adainclude/gtkada2/gtkada-intl.adb
./share/ada/adainclude/gtkada2/gtkada-multi_paned.adb
./share/ada/adainclude/gtkada2/gtkada-c.ads
./share/ada/adainclude/gtkada2/gtkada.ads
./share/ada/adainclude/gtkada2/gtkada-dialogs.adb
./share/ada/adainclude/gtkada2/gtkada-intl.ads
./share/ada/adainclude/gtkada2/gtkada-pixmaps.ads
./share/ada/adainclude/gtkada2/gtkada-canvas.adb
./share/ada/adainclude/gtkada2/gtkada-multi_paned.ads
./share/ada/adainclude/gtkada2/gtkada-bindings.ads
./share/ada/adainclude/gtkada2/gtkada-properties.adb
./share/info/gtkada2_rm.info.gz
./share/info/gtkada2_ug.info.gz
./bin/gtkada-config
./bin/gtkada2-config
./lib/libgtkada_gl.so.2.12.0
./lib/libgtkada2_gl.a
./lib/libgtkada_glade.so.2.12.0
./lib/libgtkada2.a
./lib/libgtkada.so.2.12.0
./lib/libgtkada.so.2.12
./lib/libgtkada2_glade.a
./lib/ada/adalib/gtkada2
./lib/ada/adalib/gtkada2/gtkada-c.ali
./lib/ada/adalib/gtkada2/gtkada-types.ali
./lib/ada/adalib/gtkada2/gtkada-intl.ali
./lib/ada/adalib/gtkada2/gtkada-handlers.ali
./lib/ada/adalib/gtkada2/gtkada.ali
./lib/ada/adalib/gtkada2/gtkada-dialogs.ali
./lib/ada/adalib/gtkada2/gtkada-mdi.ali
./lib/ada/adalib/gtkada2/gtkada-canvas.ali
./lib/ada/adalib/gtkada2/gtkada-properties.ali
./lib/ada/adalib/gtkada2/gtkada-pixmaps.ali
./lib/ada/adalib/gtkada2/gtkada-multi_paned.ali
./lib/ada/adalib/gtkada2/gtkada-file_selection.ali
./lib/ada/adalib/gtkada2/gtkada-bindings.ali
./lib/libgtkada2_glade.so
./lib/libgtkada2.so
./lib/libgtkada_gl.so.2.12
./lib/libgtkada2_gl.so
./lib/debug/usr/lib/libgtkada.so.2.12.0
./lib/libgtkada_glade.so.2.12

Revision history for this message
Manuel Carro (mcarro) wrote :

A patch to work around this problem is here: https://bugs.launchpad.net/ubuntu/+source/libgtkada2/+bug/280503

Revision history for this message
Christoph Dibak (chris-freizeitblogger) wrote :

Just hava a look into /usr/share/doc/libgtkada2-dev/README.Debian:

"Upstream provides a configuration script, /usr/bin/gtkada-config,
which is part of the libgtkada2-dev package. I recommend against
using this script, because this may lead to problems when combining
several libraries in the same program. Instead, I recommend using
GNAT project files. Each -dev package provides one, which you can
"with" into your own:

/usr/share/ada/adainclude/gnomeada2.gpr
/usr/share/ada/adainclude/gtkada2.gpr

See instructions in these files for more details."

Revision history for this message
Christoph Dibak (chris-freizeitblogger) wrote :

Just hava a look into /usr/share/doc/libgtkada2-dev/README.Debian:

"Upstream provides a configuration script, /usr/bin/gtkada-config,
which is part of the libgtkada2-dev package. I recommend against
using this script, because this may lead to problems when combining
several libraries in the same program. Instead, I recommend using
GNAT project files. Each -dev package provides one, which you can
"with" into your own:

/usr/share/ada/adainclude/gnomeada2.gpr
/usr/share/ada/adainclude/gtkada2.gpr

See instructions in these files for more details."

Changed in libgtkada2 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.