ports/172204: [net/vtun] fails to compile (clang)/fails to install (gcc)

Spil spil.oss at gmail.com
Mon Oct 1 10:30:04 UTC 2012


>Number:         172204
>Category:       ports
>Synopsis:       [net/vtun] fails to compile (clang)/fails to install (gcc)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 10:30:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Spil
>Release:        9.0-RELEASE-p2
>Organization:
n/a
>Environment:
FreeBSD gw.example.org 9.0-RELEASE-p2 FreeBSD 9.0-RELEASE-p2 #2: Tue Jun  5 08:38:34 CEST 2012     root at gw.example.org:/usr/obj/usr/src/sys/BEASTIE90  i386

>Description:
Can't build/install vtun-3.0.3

CPUTYPE?=native
CFLAGS= -O2 -fno-strict-aliasing -pipe

Using clang:
clang -O2 -fno-strict-aliasing -pipe -march=native  -I/usr/include/openssl -I/usr/local/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/open
ssl -I/usr/include/openssl -o vtund main.o cfg_file.tab.o cfg_file.lex.o server.o client.o lib.o  llist.o auth.o tunnel.o lock.o netlib.o   tun_dev.o tap_dev.o pty_d
ev.o pipe_dev.o  tcp_proto.o udp_proto.o  linkfd.o lfd_shaper.o lfd_zlib.o lfd_lzo.o lfd_encrypt.o lfd_legacy_encrypt.o  -rpath=/usr/lib:/usr/local/lib  -L/usr/lib -
L/usr/local/lib -lz -llzo2 -lcrypto
clang: warning: argument unused during compilation: '-rpath=/usr/lib:/usr/local/lib'
main.o: In function `main':
main.c:(.text+0x334): undefined reference to `clear_nat_hack_flags'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Using gcc (from base) it fails during install
===>  Installing for vtun-3.0.3
===>   Generating temporary packing list
===>  Checking if net/vtun already installed
if [ ! -f /usr/local/etc/vtund.conf ]; then  /usr/bin/install -c -o root -g wheel -m 600 -o root -g 0 vtund.conf /usr/local/etc;  fi
/usr/bin/install -c -o root -g wheel -m 644 -o root -g 0 vtund.8 /usr/local/man/man8
/usr/bin/install -c -o root -g wheel -m 644 -o root -g 0 vtund.conf.5 /usr/local/man/man5
rm -f /usr/local/man/man8/vtun.8
ln -s vtund.8 /usr/local/man/man8/vtun.8
/usr/bin/install -c -o root -g wheel -d -m 755 -o root -g 0 /var/log/vtund
/usr/bin/install -c -o root -g wheel -d -m 755 -o root -g 0 /var/lock/vtund
/usr/bin/install -c -o root -g wheel -m 755 -o root -g 0 vtund /usr/local/sbin
/usr/local/bin/strip /usr/local/sbin/vtund
/usr/local/bin/strip: No such file or directory
*** Error code 1

Tried to find where the /usr/local/bin/strip comes from but all I can find is install-sh which doesn't seem to set stripcmd itself or sets it relative.
>How-To-Repeat:
Upgrade vtun-3.0.2 to vtun-3.0.3
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list