-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling with custom expat, zlib and readline libraries not working #229
Comments
After compile and install: LFTP is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License Send bug reports and questions to the mailing list lftp@uniyar.ac.ru. Libraries used: Readline 5.1, Expat 1.95.8, OpenSSL 1.0.2g 1 Mar 2016, |
Should be using: |
What is the command line used to compile/link lftp? Send the log of configure and make. |
I am also having an issue with openssl, where if I specify an alternate path (even --with-openssl=) the main lftp binary is linked to the standard location (I assume pkg-config). If I enable '--with-modules' the modules are looking for the right openssl - but ./bin/lftp still links to the old ssl libs. Also building on a 64bit box (CentOS 5), /usr/lib was being used for zlib,expat,readline I am setting LDFLAGS for RPATH - as this is how I did it for 4.6.5 (otherwise modules would not have rpath set)
|
I have made some progress on this issue (I think) READLINE_LDFLAGS was getting set with -L/usr/lib64 and being included before LDFLAGS (lftp_LDFLAGS in src/Makefile), so any attempt to override with LDFLAGS=-L/path/to/openssl failed - I suppose if I had specified a non-standard readline library it would have also tricked it into working. But in the end I ended up changing the configure script so readline_ld_flags does not get set (only really works for my case of non-standard openssl and standard readline) OPENSSL_LDFLAGS does not get put anywhere in the lftp_LINK line
This seems to also mean that if you use a nonstandard readline and nonstandard expat, your readline lib path with be set in READLINE_LDFLAGS and therefore lftp_LINK, but expat will not be, so the link will be to the wrong expat in the end, unless you specify manually in LDFLAGS or LIBS? |
Please try 69e9c3b |
I had to compile lftp 4.8.1 in an environment without root access and without ncurses/openssl/readline.
|
Using the following compile statement
./configure --prefix=/usr --with-openssl=/usr --with-zlib=/opt/zlib-1.2.8 --with-readline=yes --with-readline-inc=/opt/readline-6.3/include --with-readline-lib=/opt/readline-6.3/lib --with-expat=yes --with-expat-inc=/opt/expat-2.1.0/include --with-expat-lib=/opt/expat-2.1.0/lib
LFTP is still looking to the system instead of to the targeted locations for the libraries. This is with LFTP 4.7.1
The text was updated successfully, but these errors were encountered: