Skip to Content.
Sympa Menu

freetds - [freetds] make check on solaris failed to compile, had to edit a Makefile

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Knut Behrends <knb AT gfz-potsdam.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] make check on solaris failed to compile, had to edit a Makefile
  • Date: Thu, 05 Feb 2009 13:49:05 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it may concern:

I always got linker errors after trying to run make check

/bin/bash ../../../libtool --tag=CC --mode=link gcc -D_REENTRANT
- -pthreads -g -O2 -Wdeclaration-after-statement -no-install -L../.libs
- -Wl,--rpath,../.libs -L/opt/unixodbc/lib -o t0001 t0001.o common.o
../libsybdb.la ../../replacements/libreplacements.la -lnsl -lsocket
mkdir .libs
gcc -D_REENTRANT -pthreads -g -O2 -Wdeclaration-after-statement
- -Wl,--rpath -Wl,../.libs -o t0001 t0001.o common.o
- -L/opt/install/icdp/freetds-0.83.dev.20090104/src/dblib/.libs
- -L/opt/unixodbc/lib ../.libs/libsybdb.so
../../replacements/.libs/libreplacements.a -lnsl -lsocket
- -R/opt/install/icdp/freetds-0.83.dev.20090104/src/dblib/.libs
- -R/opt/unixodbc/lib
/usr/ccs/bin/ld: illegal option -- rpath

cd freetds-0.83.dev.20090104/src/<ctlib,dblib,tds,odbc>/unittests


Then I edited each Makefile and removed the --rpath option .
More specifically, I changed it the following way:

# diff Makefile.bak Makefile
331c331
< AM_LDFLAGS = -no-install -L../.libs -Wl,--rpath,../.libs
- ---
> AM_LDFLAGS = -no-install -L../.libs -Wl,-R../.libs

Then I was able to run make check. All files in the unittests directory
compiled.

Maybe it's a bug/misconfiguration in the configure* scripts somewhere?
Just saying.




My platform
SunOS dev1-04 5.10 Generic_127111-06 sun4v sparc SUNW,SPARC-Enterprise-T2000

Freetds version:
freetds-0.83.dev.20090104

My configure command:
./configure --with-unixodbc=/opt/unixodbc --disable-libiconv
- --with-tdsver=8.0 --enable-msdblib --prefix=/opt/unixodbc
--with-gnu-ld=no

- --
____________________________________________________________________________

Knut Behrends Phone: +49 (0) 331 288 1688
Helmholtz-Zentrum Potsdam Fax : +49 (0) 331 288 1088
Deutsches GeoForschungsZentrum - GFZ Email: knb AT gfz-potsdam.de
Heinrich-Mann-Allee 18/19 URL : www.icdp-online.org
Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key)
____________________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmK4EEACgkQcfWHNfIsrO9yhgCfRitC/LjON36oQ9W/vFMX2I0z
9dcAmwZXHrEN0dEfry9sY4mOMtHs/Oou
=u78g
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page