ports/180944: ftp/curl: configure fails when CPUTYPE is set in /etc/make.conf on arm

Rene Ladan rene at FreeBSD.org
Tue Jul 30 10:20:01 UTC 2013


>Number:         180944
>Category:       ports
>Synopsis:       ftp/curl: configure fails when CPUTYPE is set in /etc/make.conf on arm
>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:   Tue Jul 30 10:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Rene Ladan
>Release:        FreeBSD 10.0
>Organization:
>Environment:
FreeBSD raspberrypi 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r253704M: Sat Jul 27 13:58:02 CEST 2013     rene at clang:/data/rpi/obj/arm.armv6/data/rpi/src/sys/RPI-B-RENE  arm
>Description:
ftp/curl does not configure when CPUTYPE is set in /etc/make.conf:

. elif ${CPUTYPE} == "armv6" <-- here MACHINE_CPU==arm
_CPUCFLAGS = -march=${CPUTYPE} -DARM_ARCH_6=1

This triggers a check for -D in CFLAGS in m4/xc-val-flags.m4 , function _XC_CHECK_VAR_CFLAGS, resulting
in this error message:

"CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -DARM_ARCH_6=1"


>How-To-Repeat:
See above
>Fix:
A quick fix would be to remove lines 3629 through 3631 of configure, but it would be better to fix the m4 file.


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


More information about the freebsd-ports-bugs mailing list