{"id":3295,"date":"2013-08-06T14:25:28","date_gmt":"2013-08-06T19:25:28","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=3295"},"modified":"2014-07-06T18:37:01","modified_gmt":"2014-07-06T23:37:01","slug":"freebsdproblem-to-update-curl-7-31-0","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-curl-7-31-0\/","title":{"rendered":"[FreeBSD]Problem to Update cURL-7.31.0"},"content":{"rendered":"<p>When I tried to update the cURL to cURL 7.31.0 today for my FreeBSD, it stopped and gave the following error messages:<\/p>\n<pre style=\"margin-top:150px;\">\r\nconfigure: using CFLAGS: -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing\r\nconfigure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -DLDAP_DEPRECATED\r\nconfigure: error: Can not continue. Fix errors mentioned immediately above this line.\r\n===>  Script \"configure\" failed unexpectedly.\r\nPlease report the problem to sunpoet@FreeBSD.org [maintainer] and attach the\r\n\"\/usr\/ports\/ftp\/curl\/work\/curl-7.31.0\/config.log\" including the output of the\r\nfailure of your make command. Also, it might be a good idea to provide an\r\noverview of all packages installed on your system (e.g. a \/usr\/sbin\/pkg_info\r\n-Ea).\r\n*** [do-configure] Error code 1\r\n\r\nStop in \/usr\/ports\/ftp\/curl.\r\n*** [build] Error code 1\r\n\r\nStop in \/usr\/ports\/ftp\/curl.\r\n\r\n===>>> make failed for ftp\/curl\r\n===>>> Aborting update\r\n\r\n===>>> Update for ftp\/curl failed\r\n===>>> Aborting update\r\n\r\n===>>> Killing background jobs\r\nTerminated\r\n\r\n===>>> You can restart from the point of failure with this command line:\r\n       portmaster <flags> ftp\/curl\r\n\r\n===>>> Exiting\r\n\r\n<\/flags><\/pre>\n<p>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&#8217;t need it.<\/p>\n<pre>\r\ncd \/usr\/ports\/ftp\/curl\r\nsudo make config\r\n<\/pre>\n<p>Remove the LDAP related features, such as LDAP, LDAPS. Try to re-build cURL again.<\/p>\n<pre>\r\nsudo make clean\r\nsudo make\r\n<\/pre>\n<p>If everything looks good (i.e., not complaining any more), you can resume the update process, e.g.,<\/p>\n<pre>\r\nsudo portmaster -Da\r\n<\/pre>\n<p>Now your FreeBSD should be happy.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-curl-7-31-0\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1604,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[157,171],"class_list":["post-3295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-curl","tag-freebsd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-R9","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1591,"url":"https:\/\/icesquare.com\/wordpress\/the-develautomake110-port-has-been-deleted-no-longer-required-by-any-port-aborting-update\/","url_meta":{"origin":3295,"position":0},"title":"The devel\/automake110 port has been deleted: No longer required by any port&#8230;Aborting update","author":"Derrick","date":"September 21, 2011","format":false,"excerpt":"My FreeBSD box must be sick today. For some reasons, when I ran the portsnap command (i.e., portsnap fetch update), it removed the entire port directory (i.e., rm \/usr\/ports -Rf). Therefore, I decided to build the entire port tree: sudo su cd \/var\/db\/portsnap rm -Rf * portsnap fetch extract I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":900,"url":"https:\/\/icesquare.com\/wordpress\/cannot-find-autoconf-please-check-your-autoconf-installation-and-the-php_autoconf-environment-variable-then-rerun-this-script\/","url_meta":{"origin":3295,"position":1},"title":"Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.","author":"Derrick","date":"October 22, 2010","format":false,"excerpt":"This post is about FreeBSD, however the idea is about the same for other Unix systems. While I tried to install memcached, the system complained with this message: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. This problem is caused by\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2181,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","url_meta":{"origin":3295,"position":2},"title":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory","author":"Derrick","date":"December 23, 2011","format":false,"excerpt":"When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-) #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files...\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3253,"url":"https:\/\/icesquare.com\/wordpress\/solvedfreebsd-problem-to-update-glib20\/","url_meta":{"origin":3295,"position":3},"title":"[Solved]FreeBSD: Problem to Update glib20","author":"Derrick","date":"May 21, 2013","format":false,"excerpt":"I decided to install Java on my FreeBSD box today. It wasn't a very good experience. Primary the system is not automated. It requires a lot of manual works. Anyway, after waiting for couple hours, I found that the process was stuck on glib. The system could not build the\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2777,"url":"https:\/\/icesquare.com\/wordpress\/solvedproblem-to-update-openldap-in-freebsd\/","url_meta":{"origin":3295,"position":4},"title":"[Solved]Problem to Update OpenLDAP in FreeBSD","author":"Derrick","date":"April 29, 2012","format":false,"excerpt":"Recently, I found the following error message when updating my FreeBSD system regarding to the OpenLDAP: ===> Installing for openldap-client-2.4.31 ===> Generating temporary packing list ===> Checking if net\/openldap24-client already installed ===> Creating users and\/or groups. Using existing group `ldap'. Creating user `ldap' with uid `389'. pw: user 'ldap' already\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3125,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-netsamba35-port-has-been-deleted-obsoleted-by-netsamba36\/","url_meta":{"origin":3295,"position":5},"title":"[FreeBSD]The net\/samba35 port has been deleted: Obsoleted by net\/samba36","author":"Derrick","date":"February 11, 2013","format":false,"excerpt":"FreeBSD is designed for users who got lots of spare time. Every once a while, it will give you some troubles (or \"snacks\" in programmer language), which help you to burn some of your spare time. If you cannot handle these troubles, then FreeBSD is not for you. Although FreeBSD\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/FreeBSDIcon.png","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3295"}],"version-history":[{"count":3,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3295\/revisions"}],"predecessor-version":[{"id":3652,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3295\/revisions\/3652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media\/1604"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}