freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: I put the Who? in Mishehu <mishehu.mashehu AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Can't compile with OpenSSL
- Date: Sun, 03 Oct 2010 10:16:14 -0500
On 10/3/2010 10:05 AM, Plot Lost wrote:
If I compile without open SSL, all goes as expected and free tds is able to
connect to the server (ms sql server, using sqsh to connect)
However, once I reconfigure to use it (./configure --with-openssl) any
attempt to compile then fails, stopping with:
gcc -pthread -g -O2 -I/usr/local/ssl/include -Wdeclaration-after-statement
-o .libs/fisql fisql.o terminal.o edit.o handlers.o interrupt.o
-L/usr/local/ssl/lib ../../dblib/.libs/libsybdb.so
Ok, stop, right here. Look at the paths - are they accurate to your installation of OpenSSL? On my system (Slackware), those paths are incorrect. I'm referring specifically to the -I/usr/local/ssl/include and the -L/usr/local/ssl/lib parameters. I don't have the source in front of me at the moment, but I would guess that you need to actually specify --with-openssl=/base/ssl/path (i.e. /usr ).
../../replacements/.libs/libreplacements.a -lssl -lcrypto -lrt
../../dblib/.libs/libsybdb.so: undefined reference to `dlsym'
../../dblib/.libs/libsybdb.so: undefined reference to `dlerror'
../../dblib/.libs/libsybdb.so: undefined reference to `dladdr'
../../dblib/.libs/libsybdb.so: undefined reference to `dlopen'
../../dblib/.libs/libsybdb.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
The alternative issue that you might be having is with it properly locating libdl.
make[3]: *** [fisql] Error 1
make[3]: Leaving directory `/home/db/downloads/freetds-0.82/src/apps/fisql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/db/downloads/freetds-0.82/src/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/db/downloads/freetds-0.82/src'
make: *** [all-recursive] Error 1
Can anyone shed any light as to what might be causing this, and what I can
do to fix it?
System is running ubuntu 9.10, 32 bit. gcc version 4.3.3 (Ubuntu
4.3.3-5ubuntu4). OpenSSL 0.9.8l
Thanks.
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] Can't compile with OpenSSL,
Plot Lost, 10/03/2010
-
Re: [freetds] Can't compile with OpenSSL,
I put the Who? in Mishehu, 10/03/2010
- Re: [freetds] Can't compile with OpenSSL, Plot Lost, 10/03/2010
-
Re: [freetds] Can't compile with OpenSSL,
I put the Who? in Mishehu, 10/03/2010
Archive powered by MHonArc 2.6.24.