[freetds] FreeTDS, HP/UX, DBD::Sybase unresolved symbols

Patrick van Kleef iodbc at openlinksw.com
Mon Jan 6 17:47:56 EST 2003


Hi Andrew,

 
> I've given up on ODBC.  iODBC has been a total compilation nightmare, and
> now it drops core when you CALL_DRIVER against libtdsodbc.sl.0.  *sigh*.

I always use the native HP/UX c compiler and use the following line:

	CFLAGS="-O -Ae" ./configure .......

I can check with the latest version, but this has always worked. Which 
version of iODBC are you using?
 
> Anyways, I'm compiling DBD::Sybase and get this when DynaLoader calls
> libct:
> 
> t/base........../usr/lib/dld.sl: Unresolved symbol: __eprintf (code)  from /home/ediusers/freetds/lib/libct.sl.0
> /usr/lib/dld.sl: Unresolved symbol: __divdi3 (code)  from /home/ediusers/freetds/lib/libct.sl.0

This is because you are using the GCC compile as far as i can tell. This 
compiler needs the libgcc.a file which you need to add manually to your 
makefile as far as i can tell. The latest versions of gcc should also 
install a shared library version of the code, but if you link with the 
/bin/ld program it will probably not pick this up by default.

Use "gcc --print-libgcc-file-name" to find out exactly where this library 
is located. You need to add this complete path to the end of your ld 
command.


> Part of me thinks I could try and change the DynaLoader shl_load flags to
> BIND_IMMEDIATE | BIND_NONFATAL, but I think that it would still croak
> later downstream.  But, this also may be a linking problem....

Changing the shl_load flags may not help as most likely the FreeTDS code 
in eprintf will try to dereference this symbol.


> (I hacked DBD::Sybase to look like DBD::FreeTDS, so I could have
> 2 different DBD::Sybase's co-existing)
> 
> So, what is (could?) be the resolution for this problem?
> 

Please let me know if i can help you any further with your HP/UX problem.



Best regards,

Patrick

-- 
Patrick van Kleef            Email : iodbc at openlinksw.com
Maintainer iODBC             Web   : http://www.iodbc.org/
OpenLink Software           

Universal Data Access & Data Integration Technology Providers





More information about the FreeTDS mailing list