This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc-3.2.3: libgnat.so undefined references
- From: wulf at ping dot net dot au
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 9 Jun 2003 11:44:36 +0930 (CST)
- Subject: gcc-3.2.3: libgnat.so undefined references
G'day,
I've been using statically build versions of the gcc-ada compiler and decided
that it was time in trying to build a shared version of gcc-ada using the
gcc-core-3.2.3 and gcc-ada-3.2.3 source code distributions before embarking
on enabling tasking. The shared libraries libgnat.so and libgnarl.so built
without any problems.
However, when building dynamically linked applications the following
errors occur:
# gmake
gnatmake ftest
adagcc -c ftest.adb
gnatbind -x ftest.ali
gnatlink ftest.ali
[...]
/usr/local/lib/gcc-lib/i386--netbsdelf/3.2.2/adalib//libgnat.so: undefined reference to `xmalloc'
/usr/local/lib/gcc-lib/i386--netbsdelf/3.2.2/adalib//libgnat.so: undefined reference to `concat'
/usr/local/lib/gcc-lib/i386--netbsdelf/3.2.2/adalib//libgnat.so: undefined reference to `xstrdup'
/usr/local/lib/gcc-lib/i386--netbsdelf/3.2.2/adalib//libgnarl.so: undefined reference to `pthread_setschedparam'
collect2: ld returned 1 exit status
gnatlink: cannot call /usr/local/bin/adagcc
gnatmake: *** link failed.
Forcing a static build using the -bargs -static argument will result in
working binaries.
Sofar, I have been unable to track down this problem and hence my email to
this list in search for advice on what is needed in order to rectify
this problem.
Sysinfo: NetBSD-i386-1.6Q, gcc-core-3.2.2, gcc-ada-3.2.2, diffs 3.2.2>3.2.3
Any help is very much appreciated.
With many thanks in advance
cheerio Berndt