From: Peter Beckman on
I had some trouble installing nagios-plugins 1.4.14 from ports. I'm on an
AMD64 box running FreeBSD-6.2-RELEASE-p5. Here's what happened:

checking whether it is safe to define __EXTENSIONS__... yes
checking whether cc needs -traditional... no
../configure.lineno: 5406: Syntax error: word unexpected (expecting ")")
===> Script "configure" failed unexpectedly.
Please report the problem to jarrod(a)netleader.com.au [maintainer] and attach
the "/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.4.14/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`).

The configure from the source runs fine, but using the port causes problems.

The line in question that this fails on is this:

5405
5406 _LT_DECL(build_libtool_libs, enable_shared, 0,
5407 Whether or not to build shared libraries)
5408

Turns out that if you ever had libtool 1.5 installed before you upgraded,
probably via portupgrade, to libtool22, there are some dangling files that
mess everything up.

Turns out you just need to delete two files from /usr/local/share/aclocal:

libtool15.m4
ltdl15.m4

http://lists.freebsd.org/pipermail/freebsd-x11/2009-August/008751.html

This discusses the frustration people had with purging the libtool15 stuff:

http://www.mail-archive.com/freebsd-ports(a)freebsd.org/msg22785.html

Hope that helps someone.

Beckman
---------------------------------------------------------------------------
Peter Beckman Internet Guy
beckman(a)angryox.com http://www.angryox.com/
---------------------------------------------------------------------------
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"