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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fb008c880590ad60,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-22 09:55:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: pokey123_us@yahoo.com (Joe Ellis) Newsgroups: comp.lang.ada Subject: C/Ada bind error using gcc/ld Date: 22 Apr 2004 09:55:35 -0700 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 65.121.28.111 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1082652935 17489 127.0.0.1 (22 Apr 2004 16:55:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Apr 2004 16:55:35 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:7417 Date: 2004-04-22T09:55:35-07:00 List-Id: I am trying to build an executable and am getting the following error from the ld linker. I am wondering what I may have done incorrectly in building Ada or if this is a problem with the actual ld/gcc linker/compiler? Here's the output (I've also tried libgnat.a and libgnarl.a as static libraries instead of shared objects, but the error is the same): g++ -Wl,-rpath,/usr/local/src/qt/lib -o MainExe .obj/main.o .obj/testwin.o .obj/perf.o -L/usr/local/src/qt/lib -L/usr/X11R6/lib /usr/local/src/libs/libwmap.a -lrt -lgnat -lgnarl -lqt -lXext -lX11 -lm /usr/local/src/libs/libwmap.a(b~customize.o): In function `adainit': b~customize.o(.text+0x51): undefined reference to `interfaces__c_streams___elabs' /usr/bin/ld: BFD 2.13.90.0.2 20020802 internal error, aborting at elf32-i386.c line 2404 in elf_i386_relocate_section /usr/bin/ld: Please report this bug. collect2: ld returned 1 exit status make: *** [LW20b] Error 1 I verified using 'nm' that the symbol 'interfaces__c_streams___elabs' is defined in libgnat.so (and libgnat.a) so I don't understand why the linker couldn't resolve the symbol. The libraries are in the correct gcc/adalib directory as well. Now, b~customize.o was built, and then archived into libwmap.a, in the following manner: (use gcc to build ada file:) make -A/usr/local/src/si-dev/src/Ada95 -A/usr/local/src/si-dev/src/C -A/usr/local/src/libs/lib_ada -u -c customize.adb -cargs -fno-rtti (note this is the same as gnatbind:) gnatmake -b -A/usr/local/src/lwsi-dev/src/Ada95 -A/usr/local/src/lwsi-dev/src/C -A/usr/local/src/libs/lib_ada customize.ali -cargs -fno-rtti -bargs -n gcc -fno-rtti -c b~customize.adb Any ideas on what could be wrong here? Thanks, Joe gcc= 3.2 kernel=2.4.18-4