Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Andrew Stanley <astanley AT cs.uml.edu>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] FreeTDS, HP/UX, DBD::Sybase unresolved symbols
  • Date: Mon, 6 Jan 2003 13:25:29 -0500 (EST)

On Mon, 6 Jan 2003, Patrick van Kleef wrote:

> 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?

I'll reply offlist with my woes there. Actually, I can compile clean with
GCC, it just doesn't run (again, I'll reply offlist unless there are iODBC
users here who are interested)

>
>
> 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.

I modified the Makefile to do:

LD_RUN_PATH="/home/ediusers/freetds/lib:/lib/pa1.1" ld -o
blib/arch/auto/DBD/FreeTDS/FreeTDS.sl -L/home/ediusers/freetds/lib -b
-L/usr/local/lib /opt/gcc/2.95.2/libgcc.a FreeTDS.o dbdimp.o
-L/home/ediusers/freetds/lib -lct -lm

And I still get the above errors. Maybe I did the ld wrong?

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

As I thought, but I was a bit doubtful that I was right.

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

Thanks!

-Andrew





Archive powered by MHonArc 2.6.24.

Top of Page