Re: Can't compile with OpenSSL

Plot Lost <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
>
>
>
>
> 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 ).
>
>
Those are the right paths for this system, other code such as apache httpd
compile fine against that.



> ../../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.
>
> Ah, that's solved it - jogged my memory about a similar problem I had with
curl.

Got it fixed by configuring as follows:

env LDFLAGS="-ldl" ./configure --with-ssl

Then it compiles fine.

Thanks for the help with this.
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.