Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2014 10:53:48 GMT
From:      Andras JAKO <jako.andras@eik.bme.hu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185439: security/openvpn-auth-radius: Fix build with clang
Message-ID:  <201401031053.s03ArmEZ053664@oldred.freebsd.org>
Resent-Message-ID: <201401031100.s03B00ad078852@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185439
>Category:       ports
>Synopsis:       security/openvpn-auth-radius: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 03 11:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Andras JAKO
>Release:        10.0-PRERELEASE
>Organization:
Budapest University of Technology and Economics
>Environment:
FreeBSD beat.eik.bme.hu 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #14: Sat Dec 28 23:25:07 CET 2013     root@beat.eik.bme.hu:/usr/obj/usr/src/sys/BEAT  amd64
>Description:
security/openvpn-auth-radius doesn't build with clang:

gmake[1]: Entering directory `/usr/ports/security/openvpn-auth-radius.orig/work/radiusplugin'
OBJ: RadiusClass/RadiusAttribute.o
OBJ: RadiusClass/RadiusPacket.o
OBJ: RadiusClass/RadiusConfig.o
gmake[1]: g++: Command not found
..
>How-To-Repeat:
make
>Fix:
Fix hardcoded CC=g++ in Makefile.bsd so that it can be built with clang.

Patch attached with submission follows:

diff -ruN openvpn-auth-radius.orig/files/patch-Makefile.bsd openvpn-auth-radius/files/patch-Makefile.bsd
--- openvpn-auth-radius.orig/files/patch-Makefile.bsd	1970-01-01 01:00:00.000000000 +0100
+++ openvpn-auth-radius/files/patch-Makefile.bsd	2014-01-03 11:29:44.000000000 +0100
@@ -0,0 +1,8 @@
+--- ./Makefile.bsd.orig	2010-04-06 19:07:33.000000000 +0200
++++ ./Makefile.bsd	2014-01-03 11:29:36.000000000 +0100
+@@ -1,4 +1,4 @@
+-CC=g++
++CC?=g++
+ INCL=-I/usr/local/include
+ LDFLAGS=-L/usr/local/lib
+ LIBS=-lgcrypt -lgpg-error -lstdc++ -lm -lpthread


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401031053.s03ArmEZ053664>