[gps-users] Sucess!

Martin Krischik krischik at users.sourceforge.net
Sun Sep 10 09:03:03 CEST 2006


Am Sonntag, 10. September 2006 03:12 schrieb Hal V. Engel:
> On Saturday 09 September 2006 12:02, Martin Krischik wrote:
> > Am Samstag, 9. September 2006 10:11 schrieb Martin Krischik:
>
> snip
>
> > I successfully compiled a working GPS 4.0 on SuSE 10.1 x86_64 with the
> > above setup.
>
> snip
>
> > The bad news is: It won't work with gcc 4.1.1:
> >
> > ------------
> > gcc -c -g -gnatec=/work/gnuada/rpm/BUILD/gps-4_0_0/gps/gnat_debug.adc -g
> > -O -gnata -gnatVa -gnatQ -gnaty -gnatwaCJe -Wall -I- -gnatA
> > /work/gnuada/rpm/BUILD/gps-4_0_0/kernel/src_info/projects.adb
> > osint.ads:564:46: "Get_Target_Object_Suffix" is undefined
> > gnatmake: "/work/gnuada/rpm/BUILD/gps-4_0_0/kernel/src_info/projects.adb"
> > compilation error
>
> This is the same error I am seeing with gcc 4.1.1. After installing
> gnat-gpl 2006 and making it my active ada compiler I still fail when trying
> to link. I also rebuilt GtkAda and XmlAda using gnat-gpl to make sure that
> everything was ABI compatible.  I am getting link errors for the python
> library and it appears to be related to threading.  I am using the newer
> glibc (2.4) which is NPTL only (no Linux threads).  Not sure if that is the
> issue or not.
>
> I tried to make the build exclude any python stuff by
>
> $ ./configure --without-pygtk --without-python
>
> But this didn't work.

You have to lookout for the Summary:

--------- Summary --------------
       python: /usr
           uses --with-python=<dir> to find libpython.so
       xmlada: with_xmlada
           uses ADA_PROJECT_PATH to find xmlada.gpr

Python is activated when libpython.so is found. Actually it is 
lib/libpython.so and include/python/ which is needed.


> Here are the error messages I am seeing at the end of the build:
> /usr/lib/python2.4/config/libpython2.4.a(thread.o): In function
>
> `PyThread_release_lock':
> : undefined reference to `sem_post'
>
> collect2: ld returned 1 exit status
> gnatlink: cannot call /usr/x86_64-pc-linux-gnu/gnat-gpl-bin/3.4/gnatgcc
> gnatmake: *** link failed.
> make[1]: *** [internal-build] Error 4
> make: *** [default] Error 2

Looks like your python is incompatible with your glibc.

> The INSTALL file says "Optionally, you might want to install python on your
> system if it isn't already installed."  So this is an option.  How do I
> stop the build from using python as an option?  Also like everything else
> on my system python is built with gcc 4.1.1 if that makes a difference.

De-install python - it's incompatible anyway. Or 
try --with-python=/some/where/bous - If I remember right when there is 
no /some/where/bous/lib/libpython.so then python is deactivated. The messages 
are misleading in that point. I remember trying --with-python=/usr/lib and 
being surprised that python was not included.

Martin

-- 
Martin Krischik
mailto://krischik@users.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/gps-users/attachments/20060910/ae003256/attachment.bin


More information about the gps-users mailing list