Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  9 Feb 2005 22:23:55 +0100 (CET)
From:      Johan van Selst <johans@stack.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77328: security/audit: fix for compilation on amd64
Message-ID:  <20050209212355.9199C171E4@mud.stack.nl>
Resent-Message-ID: <200502092130.j19LUNqx046283@freefall.freebsd.org>

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

>Number:         77328
>Category:       ports
>Synopsis:       security/audit: fix for compilation on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 09 21:30:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Johan van Selst
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31 22:31:14 CET 2005 root@mud.stack.nl:/usr/obj/usr/src/sys/mud i386


	
>Description:
	
	Include -fPIC to compile on amd64 machines.

	Note: This only guarantees the same behaviour on amd64
	as it already shows on other systems:
	- Compilation silently fails to produce auth_srp (not in plist)
	- MASTER_SITES disagree on SIZE (the last site works)

>How-To-Repeat:
	
>Fix:

	


--- audit/Makefile.orig	Wed Feb  9 21:59:56 2005
+++ audit/Makefile	Wed Feb  9 22:00:11 2005
@@ -20,6 +20,8 @@
 OPTIONS=	MYSQL "With MySQL support" off \
 		PGSQL "With PostGreSQL support" off
 
+MAKE_ARGS=	CFLAGS="-g -Wall -fPIC -DPIC"
+
 .if defined(WITH_MYSQL)
 USE_MYSQL=	yes
 .endif
@@ -61,10 +63,6 @@
 LIBVERSION=	1
 
 .include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64"
-BROKEN=		"Does not compile on amd64"
-.endif
 
 post-patch:
 	${REINPLACE_CMD} -e "s@Linux@FreeBSD@g" ${WRKSRC}/configure
>Release-Note:
>Audit-Trail:
>Unformatted:



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