Возникла такая вот проблема
имеем
Код: Выделить всё
# uname -rs
FreeBSD 9.1-RELEASE-p1
Код: Выделить всё
# gcc --version
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Код: Выделить всё
cd /usr/ports/ftp/curl
# make
===> curl-7.31.0 depends on file: /usr/local/bin/perl5.14.4 - found
===> curl-7.31.0 depends on shared library: idn - found
===> curl-7.31.0 depends on shared library: ssh2 - found
===> curl-7.31.0 depends on shared library: rtmp - found
===> curl-7.31.0 depends on shared library: fbopenssl - found
===> curl-7.31.0 depends on shared library: ldap-2.4.8 - found
===> Configuring for curl-7.31.0
configure: loading site script /usr/ports/Templates/config.site
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking for path separator... :
checking for sed... (cached) /usr/bin/sed
checking for grep... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ar... /usr/bin/ar
configure: using CFLAGS: -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -DLDAP_DEPRECATED
configure: error: Can not continue. Fix errors mentioned immediately above this line.
===> Script "configure" failed unexpectedly.
Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the
"/usr/ports/ftp/curl/work/curl-7.31.0/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. a /usr/sbin/pkg_info
-Ea).
*** [do-configure] Error code 1
Stop in /usr/ports/ftp/curl.
*** [build] Error code 1
Stop in /usr/ports/ftp/curl.