[gtkada] Building the CVS version of GtkAda under Cygwin
TOY Richard
richard.toy at eurocontrol.int
Tue Sep 20 16:54:45 CEST 2005
Hi
I posted a message a while ago
http://lists.adacore.com/pipermail/gtkada/2005-February/003221.html
<http://lists.adacore.com/pipermail/gtkada/2005-February/003221.html> to
which I got no response so I thought I would have another go ;o)
I have a the full latest installation of Cygwin (all options installed)
which includes these version of the gnat toolchain and gcc: -
$ gnatmake -v
GNATMAKE 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) Copyright
1995-2004 Free Software Foundation, Inc.
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose
--prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs
--without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I have the latest CVS version of GtkAda
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
When I try to build it as per the INSTALL file instructions everything goes
ok until it gets to the glade directory where I get a link error. This
looks like a problem trying to resolve symbols in the gnat runtime but I
don't see what if anything I have done wrong. I have installed the GtkAda
binaries version that builds against the "native" windows compiler (3.15p or
the new Ada GPL 2005) without problem in another partition but would really
like the source version of GtkAda built against the FSF Cygwin compiler.
I tried a complete clean install on another machine and got the same
results.
Am I doing something wrong or is there a problem with my installation?
Hoping for some kind of response this time.... ;o)
Here are the commands used for the install + the errors that occur when it
tries to link the glade stuff
$ cd GtkAda/
$ (cd src; patch -p0 < ../contrib/gtkada-2.2-win32.diff)
$ CC='gcc -mms-bitfields' ./configure --prefix=/Gtkada-Install
--build=i386-pc-mingw32
$ make install
... All compilations
cd lib-obj; gcc -mms-bitfields -c -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS
-DG_DISABLE_CAST_CHECKS -g -O2 -Wall -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. ../misc.c
cd lib-obj; gcc -mms-bitfields -c -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS
-DG_DISABLE_CAST_CHECKS -g -O2 -Wall -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. ../misc_extra.c
cd lib-obj; gcc -mms-bitfields -c -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS
-DG_DISABLE_CAST_CHECKS -g -O2 -Wall -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. ../misc_broken.c
ar cr libgtkada.a lib-obj/glib*.o lib-obj/gdk*.o lib-obj/gtk*.o
lib-obj/pango*.o lib-obj/misc.o lib-obj/misc_extra.o lib-obj/misc_broken.o
gtkextra/gtk*.o
ranlib libgtkada.a
make -C opengl
make[2]: Entering directory `/GtkAda/src/opengl'
gcc -c -I.. -O2 -gnatn -gnatws gl_h.adb
gcc -c -I.. -O2 -gnatn -gnatws gdk-gl.adb
gcc -c -I.. -O2 -gnatn -gnatws gtk-glarea.adb
gcc -mms-bitfields -c -g -O2 -Wall -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. gtkglarea.c
gcc -mms-bitfields -c -g -O2 -Wall -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. gdkgl.c
ar cr libgtkada_gl.a gdk*.o gtk*.o
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then \
ranlib libgtkada_gl.a; \
fi
make[2]: Leaving directory `/GtkAda/src/opengl'
make[2]: Entering directory `/GtkAda/src/glade'
gcc -c -I.. -O2 -gnatn -gnatws glade.adb
gcc -c -I.. -O2 -gnatn -gnatws glade-xml.adb
gcc -mms-bitfields -shared -fPIC -o libgtkada_glade-2.4.so.2 \
-Wl,-soname,libgtkada_glade-2.4.so.2 glade.o glade-xml.o -L/usr/X11R6/lib
-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig
-lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -liconv -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext
-lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -liconv
glade.o:glade.adb:(.text+0x10): undefined reference to
`_system__secondary_stack__ss_release'
glade.o:glade.adb:(.text+0x45): undefined reference to
`_system__secondary_stack__ss_mark'
glade.o:glade.adb:(.text+0x4d): undefined reference to
`_system__soft_links__get_jmpbuf_address_soft'
glade.o:glade.adb:(.text+0x87): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade.o:glade.adb:(.text+0xbf): undefined reference to
`_system__string_ops__str_concat_sc'
glade.o:glade.adb:(.text+0xd8): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade.o:glade.adb:(.text+0x107): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade.o:glade.adb:(.text+0x10c): undefined reference to
`_system__soft_links__get_gnat_exception'
glade.o:glade.adb:(.text+0x112): undefined reference to
`_system__soft_links__get_current_excep'
glade.o:glade.adb:(.text+0x124): undefined reference to
`_ada__exceptions__save_occurrence'
glade.o:glade.adb:(.text+0x13a): undefined reference to
`_ada__exceptions__reraise_occurrence_no_defer'
...
glade-xml.o:glade-xml.adb:(.text+0x5c): undefined reference to
`_glib__object__gobject_recordIP'
glade-xml.o:glade-xml.adb:(.text+0x77): undefined reference to
`_system__secondary_stack__ss_allocate'
glade-xml.o:glade-xml.adb:(.text+0xcc): undefined reference to
`_system__soft_links__get_jmpbuf_address_soft'
glade-xml.o:glade-xml.adb:(.text+0xf0): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade-xml.o:glade-xml.adb:(.text+0x11d): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade-xml.o:glade-xml.adb:(.text+0x143): undefined reference to
`_system__soft_links__set_jmpbuf_address_soft'
glade-xml.o:glade-xml.adb:(.text+0x148): undefined reference to
`_system__soft_links__get_gnat_exception'
glade-xml.o:glade-xml.adb:(.text+0x153): undefined reference to
`_system__soft_links__abort_undefer'
glade-xml.o:glade-xml.adb:(.text+0x168): undefined reference to
`___gnat_rcheck_17'
glade-xml.o:glade-xml.adb:(.text+0x170): undefined reference to
`___gnat_raise_nodefer_with_msg'
glade-xml.o:glade-xml.adb:(.text+0x193): undefined reference to
`_glib__object__gobject_recordP'
glade-xml.o:glade-xml.adb:(.text+0x1f2): undefined reference to
`_ada__tags__external_tag_htable__setXn'
...
glade-xml.o:glade-xml.adb:(.text+0x108f): undefined reference to
`_ada__exceptions__reraise_occurrence_no_defer'
glade-xml.o:glade-xml.adb:(.text+0x25): undefined reference to
`_glib__object__gobject_recordSR'
glade-xml.o:glade-xml.adb:(.text+0x35): undefined reference to
`_glib__object__gobject_recordSW'
glade-xml.o:glade-xml.adb:(.text+0xa5): undefined reference to
`_glib__object__Oeq__2'
glade-xml.o:glade-xml.adb:(.text+0x44b): undefined reference to
`_interfaces__c__strings__value__3'
glade-xml.o:glade-xml.adb:(.text+0x10a5): undefined reference to
`_gtk__type_conversion__init'
glade-xml.o:glade-xml.adb:(.text+0x10cf): undefined reference to
`_glib__object__gobject_recordIP'
collect2: ld returned 1 exit status
make[2]: *** [libgtkada_glade.so] Error 1
make[2]: Leaving directory `/GtkAda/src/glade'
make[1]: *** [glade] Error 2
make[1]: Leaving directory `/GtkAda/src'
make: *** [install] Error 2
____
This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20050920/73981df0/attachment.htm
More information about the gtkada
mailing list