new make vs security/vpnc

Andriy Gapon avg at FreeBSD.org
Mon Jul 8 21:20:39 UTC 2013


on 09/07/2013 00:07 Andriy Gapon said the following:
> 
> Using recent head and the latest ports as of now.
> $ cd /usr/ports/security/vpnc
> $ make
> ===>  Building for vpnc-0.5.3_8
> /usr/ports/security/vpnc/Makefile:37: *** missing separator.  Stop.
> *** Error code 1
> 
> But fmake works just fine without any error.
> 
> In my ports tree Makefile:37 is:
> .include <bsd.port.options.mk>
> 
> Please advise.
> 

A quick followup.  I ran make -dA and noticed the following in the output:
*** Failed target:  do-build
*** Failed command: (cd /usr/obj/ports/usr/ports/security/vpnc/work/vpnc-0.5.3;
if ! /usr/bin/env BINS="cisco-decrypt" SHELL=/bin/sh NO_LINT=YES
ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar"
AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt"
GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm"
OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump"
RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf"
SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" PREFIX=/usr/local
LOCALBASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib"
CC="gcc46" CFLAGS="-O2 -pipe -O2 -fno-strict-aliasing -pipe -march=amdfam10
-DOPENSSL_GPL_VIOLATION -DCISCO_PATCH_VERSION -march=amdfam10 -march=amdfam10"
CPP="cpp46" CPPFLAGS="" LDFLAGS=" -lcrypto -Wl,-rpath=/usr/local/lib/gcc46
-L/usr/local/lib/gcc46 -Wl,-rpath=/usr/local/lib/gcc46 -L/usr/local/lib/gcc46"
CXX="g++46" CXXFLAGS="-O2 -pipe -O2 -fno-strict-aliasing -pipe -march=amdfam10
-DOPENSSL_GPL_VIOLATION -DCISCO_PATCH_VERSION -march=amdfam10 -march=amdfam10
-O2 -fno-strict-aliasing -pipe -march=amdfam10 -march=amdfam10"
MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555"
BSD_INSTALL_LIB="install -s -o root -g wheel -m 444" BSD_INSTALL_SCRIPT="install
-o root -g wheel -m 555" BSD_INSTALL_DATA="install -o root -g wheel -m 444"
BSD_INSTALL_MAN="install -o root -g wheel -m 444" gmake -f
/usr/ports/security/vpnc/Makefile -j`/sbin/sysctl -n kern.smp.cpus` all; then if
[ -n "" ] ; then echo "===> Compilation failed unexpectedly."; (echo "") |
/usr/bin/fmt 75 79 ; fi; false; fi)

This is quite a large snippet, so here is a smaller and more obvious one:
gmake -f /usr/ports/security/vpnc/Makefile -j`/sbin/sysctl -n kern.smp.cpus` all

And indeed:
$ gmake
Makefile:37: *** missing separator.  Stop.

The port has
USES= ... gmake
but that's supposed to affect what is used inside the working directory.
It's certainly a bug that gmake is run with the port's make file.


-- 
Andriy Gapon


More information about the freebsd-ports mailing list