comp.lang.ada
 help / color / mirror / Atom feed
* apq & mysql & Ada link error
@ 2006-11-14  0:48 Brian May
  2006-11-14  5:22 ` Brian May
  2006-11-16 14:59 ` Adrian Hoe
  0 siblings, 2 replies; 4+ messages in thread
From: Brian May @ 2006-11-14  0:48 UTC (permalink / raw)


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 <bam@snoopy.apana.org.au>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: apq & mysql & Ada link error
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Brian May @ 2006-11-14  5:22 UTC (permalink / raw)


>>>>> "Brian" == Brian May <bam@snoopy.apana.org.au> writes:

    Brian> Hello, This error is pushing my knowledge to its
    Brian> limits. Anyway:

Nevermind, I did a "make clean" in the apq directory followed by a
"make" and it seems to have come good.
-- 
Brian May <bam@snoopy.apana.org.au>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: apq & mysql & Ada link error
  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
  2006-11-16 22:32   ` Brian May
  1 sibling, 1 reply; 4+ messages in thread
From: Adrian Hoe @ 2006-11-16 14:59 UTC (permalink / raw)


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>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: apq & mysql & Ada link error
  2006-11-16 14:59 ` Adrian Hoe
@ 2006-11-16 22:32   ` Brian May
  0 siblings, 0 replies; 4+ messages in thread
From: Brian May @ 2006-11-16 22:32 UTC (permalink / raw)


>>>>> "Adrian" == Adrian Hoe <abyhoe@gmail.com> writes:

    Adrian> I am unable to reproduce the error with 4.2 on Mac OS X
    Adrian> 10.4.x Intel.  Are you using PPC/Mac OS X?  -- Adrian Hoe
    Adrian> http://adrianhoe.com

No. PPC/Linux.

In any case, I resolved the issue when I executed the "make clean".

I had thought the make was rebuilding everything, but obviously not
;-).
-- 
Brian May <bam@snoopy.apana.org.au>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-16 22:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2006-11-16 22:32   ` Brian May

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