[freetds] Freetds 0.62.4 on Solaris 8

Alex S Moore asmoore at edge.net
Fri Oct 15 15:22:48 EDT 2004


On Fri, 2004-10-15 at 10:02 -0700, joekewl at socal.rr.com wrote:
> Hello all,
> 
>  I am having the exact same problem on a sparc Solaris 9 system. Does anyone
>  know what the fix to this problem was?
>  Thanks,
> 
>  --Robert
> 
> 
> > ------ Original Message -----
> >
> > Having problems when running make.
> >
> > Getting the following error:-
> >
> > gcc -g -O2 -o .libs/tsql tsql.o  -lncurses -lreadline
> > ../tds/.libs/libtds.so
> > -lnsl -lsocket -R/usr/local/lib
> > Undefined                       first referenced
> > symbol                             in file
> > tds_set_interfaces_file_loc         tsql.o

Not seeing anything like that here on either Solaris 8 or 9, but I may
be using different configure options.

Still, you probably should have '-L/usr/local/lib' on the gcc line.
What is $LDFLAGS?  In your case, it appears that
LDFLAGS='-L/usr/local/lib' would be appropriate.

The '-R' option is used by the linker and does not help the compiler
find libraries.  I use LD_OPTIONS to set the '-R' option.

Alex





More information about the FreeTDS mailing list