nagios-plugins-1.4.14_1,1 Configure Error, libtool15 to blame

Peter Beckman beckman at
Tue Jun 29 18:30:53 UTC 2010

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 at [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:

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

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:


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

Hope that helps someone.

Peter Beckman                                                  Internet Guy
beckman at                       

More information about the freebsd-ports mailing list