Skip to contentSkip to conversation

configure not finding lzo (Solaris, NetBSD)

Openvpn-devel Gert Doering 2 participants 4 messages Jan 17, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

since there's folks on this list that understand configure way better than I do...

Building OpenVPN on Solaris and on NetBSD fails "as is" because configure does not find the lzo headers and library.

On NetBSD, these are (usually) installed by pkgsrc, and live in /usr/pkg/include and /usr/pkg/lib.

On Solaris, if installed "from the source", the LZO stuff lives in /usr/local/include and /usr/local/lib (same place the libraries would end up on NetBSD if installed manually, not from pkgsrc).

"Other packages" don't seem to have problems finding libraries in "the usual places for this operating system", even if it's not plain /usr/include + /usr/lib.

So - should this be fixed? If yes, what's the "right" way to get it fixed?

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#1 lore raw

Am 17.01.2011 22:30, schrieb Gert Doering:

Quoted 8 lines

since there's folks on this list that understand configure way better than I do...

Building OpenVPN on Solaris and on NetBSD fails "as is" because configure does not find the lzo headers and library.

On NetBSD, these are (usually) installed by pkgsrc, and live in /usr/pkg/include and /usr/pkg/lib.

There would surely be a pkgsrc package that passes the proper CPPFLAGS/LDFLAGS. ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/openvpn/README.html

Quoted 3 lines

On Solaris, if installed "from the source", the LZO stuff lives in /usr/local/include and /usr/local/lib (same place the libraries would end up on NetBSD if installed manually, not from pkgsrc).

Unless you install from Blastware, or Sunfreeware, or Pkgsrc, or OpenPKG, or... (you name it) -- each with its own default directories.

Quoted 6 lines

"Other packages" don't seem to have problems finding libraries in "the usual places for this operating system", even if it's not plain /usr/include + /usr/lib.

So - should this be fixed? If yes, what's the "right" way to get it fixed?

Same story on FreeBSD. Should be fixed, but those fixes likely belong into autoconf proper, rather than each and every package that uses autoconf. Such workarounds don't belong into OpenVPN.

Until that time, passing CPPFLAGS and LDFLAGS on the ./configure command line like ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib would do the trick.

Signature · 1 line
Matthias Andree
#2 lore raw

Hi,

Quoted 5 lines · Matthias Andree

Am 17.01.2011 22:30, schrieb Gert Doering:

Quoted 3 lines

since there's folks on this list that understand configure way better than I do...

Quoted 8 lines
Quoted 5 lines

Building OpenVPN on Solaris and on NetBSD fails "as is" because configure does not find the lzo headers and library.

On NetBSD, these are (usually) installed by pkgsrc, and live in /usr/pkg/include and /usr/pkg/lib.

There would surely be a pkgsrc package that passes the proper CPPFLAGS/LDFLAGS. ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/openvpn/README.html

Yes, if building from pkgsrc, the caller takes care to make sure "everything works".

It's just if I grab the tarball and run "configure" that it doesn't find lzo - even if it's in "the standard place for that OS".

Quoted 6 lines
Quoted 3 lines

On Solaris, if installed "from the source", the LZO stuff lives in /usr/local/include and /usr/local/lib (same place the libraries would end up on NetBSD if installed manually, not from pkgsrc).

Unless you install from Blastware, or Sunfreeware, or Pkgsrc, or OpenPKG, or... (you name it) -- each with its own default directories.

Yeah, sure. But especially /usr/local/<stuff> seems to be something that normally "just works" (being $prefix/<stuff> by default), but doesn't seem to in OpenVPN

Quoted 3 lines

Until that time, passing CPPFLAGS and LDFLAGS on the ./configure command line like ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib would do the trick.

Well, I know how to do that, of course :-) - there's even "--with-lzo-header=..." and "--with-lzo-lib=..." - but I still wonder if life shouldn't be easier for the 95%-case on a given distribution.

"If other packages can get this automatically, why do we need switches for OpenVPN"?

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#3 lore raw

Am 17.01.2011 23:00, schrieb Gert Doering:

Quoted 5 lines

Yes, if building from pkgsrc, the caller takes care to make sure "everything works".

It's just if I grab the tarball and run "configure" that it doesn't find lzo - even if it's in "the standard place for that OS".

That's because NetBSD and FreeBSD for instance don't include /usr/local in their system compilers' default paths. Not OpenVPN's fault. Sure you can script around that but it's never complete (there's always one more system with one more installation location that we won't cover) and gets ugly quite quickly. Look at how fetchmail tries to hunt down the various Kerberos, GSSAPI, SSL libraries, their individual dependencies and inter-dependencies and everything. It's a mess. pkg-config could help here, but ISTR that LZO doesn't install a .pc file.

Possibly check the autoconf macro archives if they have a lzo helper .m4 file, point me to it and I may have another look.

Quoted 6 lines
Quoted 2 lines

Unless you install from Blastware, or Sunfreeware, or Pkgsrc, or OpenPKG, or... (you name it) -- each with its own default directories.

Yeah, sure. But especially /usr/local/<stuff> seems to be something that normally "just works" (being $prefix/<stuff> by default), but doesn't seem to in OpenVPN

It just works on Linux AFAIR, but not the BSDs I've tried. Check the compiler's default include and library paths...

Quoted 7 lines
Quoted 3 lines

Until that time, passing CPPFLAGS and LDFLAGS on the ./configure command line like ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib would do the trick.

Well, I know how to do that, of course :-) - there's even "--with-lzo-header=..." and "--with-lzo-lib=..." - but I still wonder if life shouldn't be easier for the 95%-case on a given distribution.

The 95% case on a given distribution is that the distributor packages OpenVPN and the user doesn't care beyond that point.

Quoted 2 lines

"If other packages can get this automatically, why do we need switches for OpenVPN"?

Document that and be done. It helps the user much more than convenience hacks.

Signature · 1 line
Matthias Andree