[Bug 215278] www/apache24 requires /usr/local/bin/nm

Kevin Thompson antiduh at gmail.com
Sat Dec 31 00:44:30 UTC 2016

The problem is that the port now has a hardcoded depenency on 
/usr/local/bin/nm, aka binutils.

I have a FreeBSD 11 system with apache24 2.4.23_1 installed, compiled from 
ports. I don't have devel/binutils installed, but I do have /usr/bin/nm 
from base.

Apache24 2.4.25_1 fails to compile with the same error as the OP:

> --- mod_sed.la ---
> /usr/local/share/apr/build-1/libtool --silent --mode=link cc 
-I/usr/local/include/libxml2   -O2 -pipe -I/usr/include -DLIBICONV_PLUG 
-fstack-protector -fno-strict-aliasing   -L/usr/local/lib 
-L/usr/local/lib/db5  -L/usr/lib -fstack-protector    -o mod_sed.la -rpath 
/usr/local/libexec/apache24 -module -avoid-version  mod_sed.lo sed0.lo 
sed1.lo regexp.lo -export-symbols-regex sed_module
> eval: /usr/local/bin/nm: not found
> /usr/bin/ld:.libs/mod_sed.so-ver:2: syntax error in VERSION script

If I install devel/binutils, apache24 compiles just fine.

So either sed should be fixed to use /usr/bin/nm, or the port should list a 
dep on devel/binutils.

More information about the freebsd-apache mailing list