cannot compile with openssl

Anders <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hi,

I have two machines, same hardware, same OS (Debian Lenny) - but they
do not behave the same, it seems.

I want to compile freetds with OpenSSL, but whatever I do, i cannot
get it to compile without error. These are the 'last words' it sends
to me when running 'make':

 gcc -shared  .libs/ct.o .libs/cs.o .libs/blk.o .libs/ctutil.o
-Wl,--whole-archive ../tds/.libs/libtds.a
../replacements/.libs/libreplacements.a -Wl,--no-whole-archive
-L/usr/local/lib -L/usr/local/ssl/lib -lssl -lcrypto -lrt  -pthread
-Wl,-Bsymbolic -Wl,-soname -Wl,libct.so.4 -Wl,-version-script
-Wl,.libs/libct.ver -o .libs/libct.so.4.0.0
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(x86_64-gcc.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libct.la] Error 1
make[3]: Leaving directory `/root/soft/freetds-0.82/src/ctlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/soft/freetds-0.82/src/ctlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/soft/freetds-0.82/src'
make: *** [all-recursive] Error 1

Anyone that has an idea what this is about?

Thanks!!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.