ports/163548: [UPDATE] ftp/vsftpd-ext will not compile on non i386 arch
Michael Scheidell
scheidell at FreeBSD.org
Thu Dec 22 23:00:23 UTC 2011
>Number: 163548
>Category: ports
>Synopsis: [UPDATE] ftp/vsftpd-ext will not compile on non i386 arch
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 22 23:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Michael Scheidell
>Release: FreeBSD 7.3-RELEASE-p3 amd64
>Organization:
SECNAP Network Security Corp
>Environment:
anything but i386.
>Description:
makefile cflags need to be environment, not hard coded.
===> Building for vsftpd-ext-2.3.4.2
> gcc -c main.c -O2 -fno-strict-aliasing -pipe -O2 -pipe -march=prescott -fno-strict-aliasing -O2 -Wall -W
-Wshadow -idirafter dummyinc
> main.c:1: error: CPU you selected does not support x86-64 instruction set
> main.c:1: error: CPU you selected does not support x86-64 instruction set
> *** Error code 1
>
>How-To-Repeat:
try to compile on a non 9386 arch
>Fix:
This patch will eliminate the change to cflags. (note: CFLAGS in /etc/make.conf(default) are automatically applied)
Index: files/patch-Makefile
===================================================================
RCS file: /home/pcvs/ports/ftp/vsftpd-ext/files/patch-Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 patch-Makefile
--- files/patch-Makefile 21 Dec 2011 13:19:37 -0000 1.1
+++ files/patch-Makefile 22 Dec 2011 22:54:01 -0000
@@ -1,14 +1,11 @@
---- ./Makefile.orig 2011-12-13 10:14:07.000000000 +0200
-+++ ./Makefile 2011-12-13 10:15:30.000000000 +0200
-@@ -3,9 +3,9 @@
- INSTALL = install
- IFLAGS = -idirafter dummyinc
+--- Makefile.orig 2011-07-03 17:03:07.000000000 -0400
++++ Makefile 2011-12-22 17:51:53.000000000 -0500
+@@ -5,7 +5,7 @@
#CFLAGS = -g
--CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
-+CFLAGS = -O2 -pipe -march=prescott -fno-strict-aliasing -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
+ CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
-LIBS = -lcap -ldl -lcrypt -lpam -lwrap -lnsl -lssl -lcrypto
-+LIBS= -lpam
++LIBS = -lpam
# | | + VSF_BUILD_SSL
# | + VSF_BUILD_TCPWRAPPERS
# + VSF_BUILD_PAM
______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.spammertrap.com/
______________________________________________________________________
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list