Help with HPUX 10.20 and egcs

Jeffrey A Law law@upchuck.cygnus.com
Fri Mar 26 22:31:00 GMT 1999


  In message < 19990326181438.A28074@cheops.net.csuchico.edu >you write:
  >      I'm getting an unresolved symbol when I try to dynamicly link a Perl 
  > module.  Now before you say anything, the symbol is __udivdi3.  This symbol
  > is why I'm asking here, as it exists because of egcs.
Hmmm.  The question then becomes how was the library built.  __udivdi3 is
a function found in libgcc.a.

When you build a shared library routines like __udivdi3 from libgcc.a should
have been copied into the library.

  > /usr/lib/dld.sl: Unresolved symbol: __udivdi3 (code)  from /usr/local/mysql
  > /lib/mysql/libmysqlclient.sl.6
So.  Find out how libmysqlclient.sl.6 was built.  I'd bet it was built by
calling ld directly instead of using gcc -shared -fPIC <blah blah blah>

jeff


More information about the Gcc mailing list