comp.lang.ada
 help / color / mirror / Atom feed
From: "Adrian Hoe" <abyhoe@gmail.com>
Subject: Re: apq & mysql & Ada link error
Date: 16 Nov 2006 06:59:16 -0800
Date: 2006-11-16T06:59:16-08:00	[thread overview]
Message-ID: <1163689156.277336.174860@e3g2000cwe.googlegroups.com> (raw)
In-Reply-To: <sa4psbqvono.fsf@margay.local>

I am unable to reproduce the error with 4.2 on Mac OS X 10.4.x Intel.

Are you using PPC/Mac OS X?
--
Adrian Hoe
http://adrianhoe.com


On Nov 14, 8:48 am, Brian May <b...@snoopy.apana.org.au> wrote:
> Hello,
>
> This error is pushing my knowledge to its limits. Anyway:
>
> # cd ~/tmp/ada/apq/apq-2.1
> # make
> chmod u+x mysql_xcr mysql_xcr2 mysql_xcr3 mysql_incl mysql_xty mysql_linker_options
> ADA_INCLUDE_PATH=. ADA_OBJECTS_PATH=. gnatmake -c -gnata -gnatf -gnato -gnatwp  -O0 comp_mysql
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 comp_mysql.adb
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq.adb
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq-mysql.ads
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq-mysql-client.adb
> apq-mysql-client.adb:1152:07: warning: "Q" is never assigned a value
> ADA_INCLUDE_PATH=. ADA_OBJECTS_PATH=. gnatmake -c -gnata -gnatf -gnato -gnatwp  -O0 comp_pg
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 comp_pg.adb
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq-postgresql.ads
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq-postgresql-client.adb
> apq-postgresql-client.adb:82:07: warning: unreachable code
> apq-postgresql-client.adb:104:07: warning: unreachable code
> apq-postgresql-client.adb:121:07: warning: unreachable code
> apq-postgresql-client.adb:138:07: warning: unreachable code
> apq-postgresql-client.adb:154:07: warning: unreachable code
> apq-postgresql-client.adb:170:07: warning: unreachable code
> gcc-4.1 -c -gnata -gnatf -gnato -gnatwp -O0 apq-postgresql-decimal.adb
> ar cr libapq.a apq.o apq-postgresql.o apq-postgresql-client.o apq-postgresql-decimal.o numeric.o notices.o apq-mysql.o apq-mysql-client.o c_mysql.o
> ar tv libapq.a
> rw------- 10003/10001 173024 Nov 14 11:35 2006 apq.o
> rw------- 10003/10001   1868 Nov 14 11:35 2006 apq-postgresql.o
> rw------- 10003/10001 172012 Nov 14 11:35 2006 apq-postgresql-client.o
> rw------- 10003/10001  79276 Nov 14 11:36 2006 apq-postgresql-decimal.o
> rw------- 10003/10001  25360 Dec 14 16:16 2004 numeric.o
> rw------- 10003/10001    960 Dec 14 16:16 2004 notices.o
> rw------- 10003/10001  46840 Nov 14 11:35 2006 apq-mysql.o
> rw------- 10003/10001 141588 Nov 14 11:35 2006 apq-mysql-client.o
> rw------- 10003/10001   4464 Dec 14 16:02 2004 c_mysql.o
> --
> Now do 'make install' to install the library
>
> NOTE: Remove any prior versions of the APQ library
> and package, if you have it installed. You will
> need to remove those packages and libraries
> manually.
>
> You may 'make uninstall' if you are about to
> reinstall APQ version 2.1. This will not
> work for prior versions of APQ however.
>
> # cd ~/tree/openflightplanner
> # gnatmake -P debug.gpr
> gnatbind -E -I- -x /home/bam/tree/openflightplanner/+debug/objects/flightplanner.ali
> gnatlink /home/bam/tree/openflightplanner/+debug/objects/flightplanner.ali -g -g -L/home/bam/tree/openflightplanner/../../tmp/ada/apq/apq-2.1 -o /home/bam/tree/openflightplanner/+debug/flightplanner
> /usr/bin/ld: /home/bam/tree/openflightplanner/../../tmp/ada/apq/apq-2.1/libapq.a(c_mysql .o): Relocations in generic ELF (EM: 3)
> /home/bam/tree/openflightplanner/../../tmp/ada/apq/apq-2.1/libapq.a: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> gnatlink: cannot call /usr/bin/gcc-4.1
> gnatmake: *** link failed.
>
> This is on powerpc.
>
> What am I doing wrong? All the libraries are static, and I can't see
> any compile options for relocatable symbols (I seem to remember
> Powerpc is fussier then Intel on this regard). Also why it picks on
> c_mysql.o is beyond me.
>
> If I didn't know better, I would think the problem is in
> "-lmysqlclient".
> --
> Brian May <b...@snoopy.apana.org.au>




  parent reply	other threads:[~2006-11-16 14:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14  0:48 apq & mysql & Ada link error Brian May
2006-11-14  5:22 ` Brian May
2006-11-16 14:59 ` Adrian Hoe [this message]
2006-11-16 22:32   ` Brian May
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox