Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2015 13:44:04 +0300
From:      Anton Yuzhaninov <citrin+bsd@citrin.ru>
To:        freebsd-ports@freebsd.org
Subject:   Re: ftp/curl compiler error
Message-ID:  <5538CCF4.6090504@citrin.ru>
In-Reply-To: <20150423115654.61153412@rsbsd.rsb>
References:  <20150423115654.61153412@rsbsd.rsb>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/23/15 11:56, Beeblebrox via freebsd-ports wrote:
> I'm seeing this odd error when trying to compile ftp/curl
>
> configure: using CFLAGS: -I/usr/include -O2 -pipe  -fstack-protector -fno-strict-aliasing
> configure: CFLAGS note: CFLAGS should only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/include

Do you have local changes in the port Makefile?

CFLAGS in fresh /usr/ports/ftp/curl has no -I/usr/include

> configure: error: in `/asp/obj/asp/git/ports/ftp/curl/work/curl-7.42.0':
> configure: error: C compiler cannot create executables

See for exact error:

cd `make -V WRKSRC`
fgrep -B 35 'C compiler cannot create executables' config.log




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