Hi,

On Sat, Sep 30, 2017 at 02:08:19PM -0400, logca...@fastmail.net wrote:
> Here's the output from the locate command:
> 
> /usr/lib/arm-linux-gnueabihf/liblz4.a
> /usr/lib/arm-linux-gnueabihf/liblz4.so
> /usr/lib/arm-linux-gnueabihf/liblz4.so.1
> /usr/lib/arm-linux-gnueabihf/liblz4.so.1.3.0
> /usr/lib/arm-linux-gnueabihf/pkgconfig/liblz4.pc
> /usr/local/lib/liblz4.a
> /usr/local/lib/liblz4.so
> /usr/local/lib/liblz4.so.1
> /usr/local/lib/liblz4.so.1.8.0
> /usr/local/lib/pkgconfig/liblz4.pc

This is likely the issue here.  You have a very old version in the 
system linking path (1.3.0), and a recent version in /usr/local/lib/ - but
to use that, the compiler would need a "-L/usr/local/lib" directive.

Unfortunately, even if our configure script had checked for the
LZ4_compress_default() function, it might have still bombed later, as
"which -I and -L directives end up in the final compile/link call"
is not always those that are used for a certain test.


> Since I could not locate LZ4_compress_default() in the openvpn source, I
e pulled lz4.c from the lz4 source tree, snipped out that function from
> the file, and then inserted it into comp_lz4.c. This does not work
> because there are many dependencies in this function.
> 
> So I made a horrible hack and simply included lz4.c in comp_lz4.c. This
> solved the dependencies, but is most likely the wrong way to solve this
> problem :-)

Well, it is :-) - the "best" way might have been to explicitely tell
configure where to find the new library

 ./configure LZ4_CFLAGS=-I/usr/local/include LZ4_LIBS="-L/usr/local/lib -llz4"

(the quote "" characters are needed due to the "-l").

Alternatively, rename the system "lz4.h" before running configure, in
which case OpenVPN will fall back to using its own copy, bundled in 
src/compat/compat-lz4*.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to