[syslog-ng]Solaris 8 configure errors with libol version & tcp_wrappers

Balazs Scheidler syslog-ng@lists.balabit.hu
Fri, 18 Apr 2003 10:48:20 +0200


On Thu, Apr 17, 2003 at 08:46:34AM -0600, Wayne Sweatt wrote:
> Dear Balabit,
> 
> I had previously installed syslog-ng .1.6.0rc1 on RH8 Linux just fine.
> Now I have to get it running on a Solaris 8/Sun Blade 100.
> Here's the OS and software configurations of note:
> 
> Solaris 8, with latest recommended patch cluster.
> Tcp_Wrappers 7.6
> libol 0.3.9
> 
> GNU software:
> gcc 3.2.2
> flex 2.5.4a
> bison 1.875
> autoconf 2.57
> automake 1.7.2
> make 3.80
> glib 1.2.10
> 
> The problems are all related to "errors" within the configure file:
> ( I am using the command: "./configure --enable-tcp-wrapper")
> 1.  It checks for a libol version of => 0.3.9 and returns "no", when in
> fact, it is 0.3.9
>    I can simply comment out the checks in configure, and bypass this
> problem. Then.
> 
> 2. It didn't find libwrap.h. I relocated it to /usr/local/include and
> /usr/include, and then it found it.
> 3. It returns: "checking for hosts_access in -lwrap. no"  Beats me -
> it's in there just like it's been for years - by default.
>     Wrappers are working just fine for everything else. I also compiled
> wrappers with "STYLE = -DPROCESS_OPTIONS"
> 4. It returns "checking whether to enable TCP wrapper support. no"
> 
> Subsequently, I do not compile with lwrap.
> 
> Please advise how to fix these problems.
> The config.log is clean. No errors.

the configure check for libol was wrong in 1.6.0rc1, therefore you should
either update to a newer snapshot or fix change the configure.in file where
it detects libol version to this code:

LIBOL_VERSION=[`echo $LIBOL_VERSION | cut -d '+' -f 1`]
LIBOL_MAJOR=[`echo $LIBOL_VERSION | cut -d '.' -f 1`]
LIBOL_MINOR=[`echo $LIBOL_VERSION | cut -d '.' -f 2`]
LIBOL_PATCH=[`echo $LIBOL_VERSION | cut -d '.' -f 3`]

it used to be a couple of sed scripts which does not always work on all
platforms ( it is around line 230-240 in configure.in).

If you changed configure.in you have to rerun autoconf to regenerate the
configure script.


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1