From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4b37f901a8fcaa61 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: "Adrian Hoe" Newsgroups: comp.lang.ada Subject: Re: apq & mysql & Ada link error Date: 16 Nov 2006 06:59:16 -0800 Organization: http://groups.google.com Message-ID: <1163689156.277336.174860@e3g2000cwe.googlegroups.com> References: NNTP-Posting-Host: 60.53.22.103 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1163689161 18340 127.0.0.1 (16 Nov 2006 14:59:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Nov 2006 14:59:21 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=60.53.22.103; posting-account=LKUaWwwAAABzCo8SD2jIIt5LtkPzH8ot Xref: g2news2.google.com comp.lang.ada:7504 Date: 2006-11-16T06:59:16-08:00 List-Id: 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 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