ftp/curl compiler error

Anton Yuzhaninov citrin+bsd at citrin.ru
Thu Apr 23 10:44:14 UTC 2015


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



More information about the freebsd-ports mailing list