Configure changes to nrpe to get it to build on Solaris 8

John Arley Burns johnarleyburns at yahoo.com
Fri Jun 20 02:19:44 CEST 2003


Please read in more detail.  Skip said that it worked on 2.57 but not
2.13.  Just upgrade and it should be fine.  I see no advantage to
supporting old autoconf versions.

--- Ethan Galstad <nagios at nagios.org> wrote:
> Autoconf 2.13 doesn't seem to like this too much...
> 
> [nagios at lanman nrpe]# autoconf
> autoconf: Undefined macros:
> configure.in:42:m4_define([_AC_DEFINE_INTEGER_BITS_HELPER],
> configure.in:46:  AC_CHECK_SIZEOF($2)
> configure.in:51:  _AC_DEFINE_INTEGER_BITS_HELPER($1,
> m4_shift(m4_shift($@)))
> configure.in:64:    _AC_DEFINE_INTEGER_BITS_HELPER($@)
> 
> 
> 
> On 19 Jun 2003 at 10:44, Skip Montanaro wrote:
> 
> > I'm not sure whether nrpe was expected to build on Solaris 8 or
> not,
> > but it didn't for me under the following circumstances:
> > 
> >     * gcc 3.2.3 as installed from the SunFreeware site
> > 
> >     * no other GNU tools (just Sun's make, ar, etc in /usr/ccs/bin)
> > 
> >     * OpenSSL in /usr/local/ssl/... (again, installed from binaries
> on
> >       SunFreeware)
> > 
> > I encountered the following problems:
> > 
> >     * There was no definition of u_int32_t - whatever was there in
> the
> >       configure script wasn't working.  I ripped out what was there
> >       and added a AC_DEFINE_INTEGER_BITS m4 macro and associated
> >       supporting bits I found at
> > 
> >        
> http://www.gnu.org/software/ac-archive/htmldoc/ac_define_integ
> >         er_bits.html
> > 
> >       This seems to be more reliable.
> > 
> >     * -I/usr/local/ssl/include was not included in CFLAGS.  I
> tweaked
> >     the
> >       OpenSSL detection and added -I$ssldir/include to CFLAGS if
> >       $ssldir wasn't /usr or /usr/local (explicitly adding
> >       /usr/include or /usr/local/include to include file search
> paths
> >       makes gcc complain).
> > 
> > I used autoconf 2.57 on my Mac OS X system to rebuild the configure
> > file then copied the generated configure file and other modified
> files
> > to the Solaris system and verified that nrpe would build on both
> > platforms.  I also copied the modified package over to a RH 7.3
> system
> > and verified I could rebuild configure with autoconf (2.53 - it
> failed
> > with 2.13) and successfully configure and build the package there
> as
> > well.
> > 
> > Attached is the context diff.
> > 
> > -- 
> > Skip Montanaro
> > skip at pobox.com
> > Got spam? http://spambayes.sf.net/
> > 
> > 
> 
> 
> 
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting
> Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> Commission!
> INetU Dedicated Managed Hosting
> http://www.inetu.net/partner/index.php
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php




More information about the Developers mailing list