Bug 85678 - Configure fails when upgrading to nagios-plugins-1.4.1_1,1
Summary: Configure fails when upgrading to nagios-plugins-1.4.1_1,1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-03 03:40 UTC by Bryan Fullerton
Modified: 2005-09-03 17:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Fullerton 2005-09-03 03:40:19 UTC
Configure fails -- looks like something wiggy with the -L arguments passed.

Fix: 

Dunno.
How-To-Repeat: 
Here's the output of portupgrade.

=====
$ script nagios-plugins-1.4.1-upgrade.txt sudo portupgrade nagios-plugins
Script started on Fri Sep  2 22:01:26 2005
--->  Upgrading 'nagios-plugins-1.4_3,1' to 'nagios-plugins-1.4.1_1,1' (net-mgmt/nagios-plugins)
--->  Building '/usr/ports/net-mgmt/nagios-plugins'
===>  Cleaning for libiconv-1.9.2_1
===>  Cleaning for mysql-client-4.1.14
===>  Cleaning for postgresql-client-7.4.8
===>  Cleaning for autoconf-2.59_2
===>  Cleaning for automake-1.9.6
===>  Cleaning for gettext-0.14.5
===>  Cleaning for gmake-3.80_2
===>  Cleaning for libtool-1.5.20
===>  Cleaning for m4-1.4.3
===>  Cleaning for p5-gettext-1.03
===>  Cleaning for perl-5.8.7
===>  Cleaning for help2man-1.35.1
===>  Cleaning for net-snmp-5.2.1.2
===>  Cleaning for p5-Net-SNMP-5.1.0
===>  Cleaning for openldap-client-2.2.27
===>  Cleaning for p5-Crypt-DES-2.03
===>  Cleaning for p5-Digest-HMAC-1.01
===>  Cleaning for p5-Digest-SHA1-2.10
===>  Cleaning for nagios-plugins-1.4.1_1,1
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for nagios-plugins-1.4_3,1
===>  Extracting for nagios-plugins-1.4.1_1,1
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for nagios-plugins-1.4_3,1
=> Checksum OK for nagios-plugins-1.4.1.tar.gz.
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Patching for nagios-plugins-1.4.1_1,1
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Applying FreeBSD patches for nagios-plugins-1.4.1_1,1
===>   nagios-plugins-1.4.1_1,1 depends on executable: snmpcheck - found
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/Net/SNMP.pm - found
===>   nagios-plugins-1.4.1_1,1 depends on executable: gmake - found
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/bin/perl5.8.7 - found
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/bin/automake19 - found
===>   nagios-plugins-1.4.1_1,1 depends on file: /usr/local/bin/autoconf259 - found
===>   nagios-plugins-1.4.1_1,1 depends on shared library: ldap-2.2.7 - found
===>   nagios-plugins-1.4.1_1,1 depends on shared library: mysqlclient.14 - found
===>   nagios-plugins-1.4.1_1,1 depends on shared library: pq.3 - found
===>  Configuring for nagios-plugins-1.4.1_1,1
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
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-portbld-freebsd5.4
checking host system type... i386-portbld-freebsd5.4
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for style of include used by gmake... GNU
checking for i386-portbld-freebsd5.4-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for i386-portbld-freebsd5.4-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking how to run the C preprocessor... cc -E
checking whether cc needs -traditional... no
checking for i386-portbld-freebsd5.4-ranlib... no
checking for ranlib... ranlib
checking whether gmake sets $(MAKE)... (cached) yes
checking for gawk... (cached) nawk
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for error_at_line... no
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking for working strtod... yes
checking for python... /usr/local/bin/python
checking for sh... /bin/sh
checking for perl... /usr/bin/perl
checking for hostname... /bin/hostname
checking for basename... /usr/bin/basename
checking for main in -ldce... no
checking for main in -lnsl... no
checking for socket in -lsocket... no
checking for main in -lresolv... no
checking for floor in -lm... yes
checking for main in -lcrypt... yes
checking for PQsetdbLogin in -lpq... no
configure: WARNING: Skipping PostgreSQL plugin (check_pgsql)
configure: WARNING: LIBS="-lcrypt " CPPFLAGS="{-I/usr/local/include} -I/usr/local/include"
configure: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS).
checking for ldap_simple_bind in -lldap... no
configure: WARNING: Skipping LDAP plugin
configure: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS).
checking for mysql_init in -lmysqlclient... no
checking for mysql_close in -lmysqlclient... no
configure: WARNING: Skipping mysql plugin
configure: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS).
checking for unistd.h... (cached) yes
checking for IPv6 support... yes
checking for library containing getaddrinfo... no
checking if getaddrinfo is redefined in netdb.h... no
configure: WARNING: enabling getaddrinfo emulation
checking for library containing getipnodebyname... no
checking for library containing gethostbyname_r... no
configure: WARNING: using threads but cannot find gethostbyname_r or getipnodebyname
checking for library containing gethostbyname... no
configure: error: cannot find gethostbyname
===>  Script "configure" failed unexpectedly.
Please report the problem to blaz@si.FreeBSD.org [maintainer] and attach the
"/export/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.4.1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /export/ports/net-mgmt/nagios-plugins.
*** Error code 1

Stop in /export/ports/net-mgmt/nagios-plugins.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade9014.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
	! net-mgmt/nagios-plugins (nagios-plugins-1.4_3,1)	(configure error)
=====

I'm not going to put the entire config.log here, but here's the bit that keeps
failing. Let me know if you want the entire file.

[...]
configure:11080: cc -o conftest -O -pipe  -I/usr/local/include  { -L/usr/local/lib -L.} -L/usr/local/lib conftest.c -lc_r   >&5
cc: {: No such file or directory
configure:11086: $? = 1
[...]

--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Script done on Fri Sep  2 22:01:52 2005
Comment 1 Blaz Zupan 2005-09-03 08:32:39 UTC
> Configure fails -- looks like something wiggy with the -L arguments passed.

Please try the following patch, submitted to me by bugsgrief@bugsgrief.net, 
and report if it works:

Index: ports/net-mgmt/nagios-plugins/files/patch-configure.in
===================================================================
RCS file: /cvsup/cvs/fbsd/ports/net-mgmt/nagios-plugins/files/patch-configure.in,v
retrieving revision 1.13
diff -u -r1.13 patch-configure.in
--- ports/net-mgmt/nagios-plugins/files/patch-configure.in      2 Sep 2005 12:55:55 -0000       1.13
+++ ports/net-mgmt/nagios-plugins/files/patch-configure.in      3 Sep 2005 00:02:25 -0000
@@ -28,8 +28,8 @@
     if test -n "$PGSQL"; then
  -    LDFLAGS="$LDFLAGS -L$PGSQL/lib"
  -    CPPFLAGS="$CPPFLAGS -I$PGSQL/include"
-+    LDFLAGS="{$LDFLAGS} -L$PGSQL/lib"
-+    CPPFLAGS="{$CPPFLAGS} -I$PGSQL/include"
++    LDFLAGS="${LDFLAGS} -L$PGSQL/lib"
++    CPPFLAGS="${CPPFLAGS} -I$PGSQL/include"
     fi
     AC_CHECK_LIB(pq,PQsetdbLogin,,,-lcrypt)
     if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes"; then
Comment 2 Bryan Fullerton 2005-09-03 13:48:10 UTC
On 9/3/05, Blaz Zupan <blaz@si.freebsd.org> wrote:
> > Configure fails -- looks like something wiggy with the -L arguments pas=
sed.
>=20
> Please try the following patch, submitted to me by bugsgrief@bugsgrief.ne=
t,
> and report if it works:

Seems to work now, though I don't see what that patch actually does.

Bryan
Comment 3 Blaz Zupan 2005-09-03 15:46:29 UTC
> Seems to work now, though I don't see what that patch actually does.

It moves the $ from inside the {} to the outside on the variables:
{$CPPFLAGS} -> ${CPPFLAGS}
Comment 4 Sergey Matveychuk freebsd_committer freebsd_triage 2005-09-03 17:14:05 UTC
State Changed
From-To: open->closed

Committed, thanks!