Good Morning,
I have tried installing zenoss 1.1.0 from source on freebsd 6.1 &
freebsd 6.2 server but it keeps failing on the build nagios plugins
section:
configuring build/nagios-plugins-1.4.5/Makefile
gmake: *** [build/nagios-plugins-1.4.5/Makefile] Error 77
unable to build zenoss and prerequisites, see zenbuild.log
zenbuild.log:
changing mode of /usr/local/zenoss/bin/yapps2 to 755
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking build system type... i386-unknown-freebsd6.1
checking host system type... i386-unknown-freebsd6.1
checking for a BSD-compatible install... /usr/bin/install -c
checking for style of include used by gmake... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details.
(I can't seem to find a config.log file anywhere on the system?)
I've checked the forums and added "GNUMAKE=/usr/local/bin/gmak" to the
enviromen variables for my zenoss user but to no avail. I've also
tried rm;ing /usr/bin/make and replacing it with with a sym link to
/usr/local/bin/gmake but the build still fails.
There is a port for nagios-plugins which builds with no problem, I've
included the make file, perhaps it can be added to the zenos
nagios-plugins make file or is there something else which i'm could be
causing this?
Thanks
Rudi
# New ports collection makefile for: nagios-plugins
# Date created: 14 Jul 2002
# Whom: Blaz Zupan <[EMAIL PROTECTED]>
#
# $FreeBSD: ports/net-mgmt/nagios-plugins/Makefile,v 1.58 2006/11/05 19:21:58
miwi Exp $
#
PORTNAME= nagios-plugins
PORTVERSION= 1.4.5
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= nagiosplug
MAINTAINER= [EMAIL PROTECTED]
COMMENT= Plugins for Nagios
USE_SUBMAKE= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_GETTEXT= yes
USE_PERL5= yes
USE_AUTOTOOLS= aclocal:19 automake:19 autoconf:259
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I m4
OPTIONS= QSTAT "Game server query support (check_game)" OFF \
FPING "Support for non-flooding fast ping (check_fping)" OFF \
NETSNMP "SNMP support (check_snmp)" OFF \
RADIUS "Radius support (check_radius)" OFF \
MYSQL "MySQL support (check_mysql)" OFF \
PGSQL "PostgreSQL support (check_pgsql)" OFF \
LDAP "OpenLDAP support (check_ldap)" OFF \
IPV6 "IPv6 support" ON
GNU_CONFIGURE= yes
NAGIOSDIR?= /var/spool/nagios
NAGIOSWWWDIR?= www/nagios
NAGIOSHTMURL?= /nagios
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --with-cgiurl=${NAGIOSCGIURL} \
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
--libexecdir=${PREFIX}/libexec/nagios \
--datadir=${PREFIX}/share/nagios \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=${NAGIOSDIR} \
--prefix=${PREFIX}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="-L${LOCALBASE}/lib" \
PERL=${PERL}
.if defined(WITH_QSTAT)
BUILD_DEPENDS+= qstat:${PORTSDIR}/games/qstat
RUN_DEPENDS+= qstat:${PORTSDIR}/games/qstat
CONFIGURE_ARGS+= --enable-qstat
PLIST_SUB+= SUB_QSTAT=""
.else
PLIST_SUB+= SUB_QSTAT="@comment "
.endif
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --with-ipv6
.else
CONFIGURE_ARGS+= --without-ipv6
.endif
.if defined(WITH_FPING)
BUILD_DEPENDS+= fping:${PORTSDIR}/net/fping
RUN_DEPENDS+= fping:${PORTSDIR}/net/fping
CONFIGURE_ARGS+= --enable-fping
PLIST_SUB+= SUB_FPING=""
.else
PLIST_SUB+= SUB_FPING="@comment "
.endif
.if defined(WITH_NETSNMP)
BUILD_DEPENDS+= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp \
${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
RUN_DEPENDS+= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp \
${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
CONFIGURE_ARGS+= --enable-snmp
PLIST_SUB+= SUB_SNMP=""
.else
PLIST_SUB+= SUB_SNMP="@comment "
.endif
.if defined(WITH_RADIUS)
LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient
CONFIGURE_ARGS+= --enable-radius
PLIST_SUB+= SUB_RADIUS=""
.else
PLIST_SUB+= SUB_RADIUS="@comment "
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= YES
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
PLIST_SUB+= SUB_MYSQL=""
.else
CONFIGURE_ARGS+= --without-mysql
PLIST_SUB+= SUB_MYSQL="@comment "
.endif
.if defined(WITH_PGSQL)
USE_PGSQL= YES
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
PLIST_SUB+= SUB_PGSQL=""
.else
CONFIGURE_ARGS+= --with-pgsql=${NONEXISTENT}
PLIST_SUB+= SUB_PGSQL="@comment "
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= YES
CONFIGURE_ARGS+= --enable-ldap
PLIST_SUB+= SUB_LDAP=""
.else
PLIST_SUB+= SUB_LDAP="@comment "
.endif
post-patch:
.for file in check_by_ssh.c check_disk.c check_http.c check_mrtgtraf.c \
check_nagios.c check_pgsql.c check_snmp.c check_ssh.c check_swap.c \
check_time.c check_users.c utils.c
@${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, "");
setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file}
.endfor
.include <bsd.port.post.mk>
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users