When I tried to update the cURL to cURL 7.31.0 today for my FreeBSD, it stopped and gave the following error messages:
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 [email protected] [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. ===>>> make failed for ftp/curl ===>>> Aborting update ===>>> Update for ftp/curl failed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> You can restart from the point of failure with this command line: portmasterftp/curl ===>>> Exiting
It is very simple the fix this problem. However, the prerequisite is to give up the support to LDAP. If you are not sure whether your cURL needs LDAP or not, you probably don’t need it.
cd /usr/ports/ftp/curl sudo make config
Remove the LDAP related features, such as LDAP, LDAPS. Try to re-build cURL again.
sudo make clean sudo make
If everything looks good (i.e., not complaining any more), you can resume the update process, e.g.,
sudo portmaster -Da
Now your FreeBSD should be happy.
–Derrick
Our sponsors: