{"id":3253,"date":"2013-05-21T15:10:37","date_gmt":"2013-05-21T20:10:37","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=3253"},"modified":"2014-07-06T18:38:09","modified_gmt":"2014-07-06T23:38:09","slug":"solvedfreebsd-problem-to-update-glib20","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/solvedfreebsd-problem-to-update-glib20\/","title":{"rendered":"[Solved]FreeBSD: Problem to Update glib20"},"content":{"rendered":"<p>I decided to install Java on my FreeBSD box today. It wasn&#8217;t a very good experience. Primary the system is not automated. It requires a lot of manual works.<\/p>\n<p>Anyway, after waiting for couple hours, I found that the process was stuck on glib. The system could not build the \/usr\/ports\/devel\/glib20. Here is the error message:\n<\/p>\n<pre style=\"margin-top:100px;\">\r\n===>  Building for glib-2.34.3\r\ngmake  all-recursive\r\ngmake[1]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3'\r\nMaking all in .\r\ngmake[2]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3'\r\ngmake[2]: Nothing to be done for `all-am'.\r\ngmake[2]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3'\r\nMaking all in m4macros\r\ngmake[2]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/m4macros'\r\ngmake[2]: Nothing to be done for `all'.\r\ngmake[2]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/m4macros'\r\nMaking all in glib\r\ngmake[2]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\ngmake  all-recursive\r\ngmake[3]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\nMaking all in libcharset\r\ngmake[4]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib\/libcharset'\r\ngmake[4]: Nothing to be done for `all'.\r\ngmake[4]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib\/libcharset'\r\nMaking all in update-pcre\r\ngmake[4]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib\/update-pcre'\r\ngmake[4]: Nothing to be done for `all'.\r\ngmake[4]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib\/update-pcre'\r\nMaking all in .\r\ngmake[4]: Entering directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\n  CC       gstrfuncs.lo\r\n  CC       gthreadpool.lo\r\ngstrfuncs.c:330: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'get_C_locale'\r\ngstrfuncs.c: In function 'g_ascii_strtod':\r\ngstrfuncs.c:700: warning: implicit declaration of function 'strtod_l'\r\ngstrfuncs.c:700: warning: implicit declaration of function 'get_C_locale'\r\ngstrfuncs.c: In function 'g_ascii_formatd':\r\ngstrfuncs.c:902: error: 'locale_t' undeclared (first use in this function)\r\ngstrfuncs.c:902: error: (Each undeclared identifier is reported only once\r\ngstrfuncs.c:902: error: for each function it appears in.)\r\ngstrfuncs.c:902: error: expected ';' before 'old_locale'\r\ngstrfuncs.c:904: error: 'old_locale' undeclared (first use in this function)\r\ngstrfuncs.c:904: warning: implicit declaration of function 'uselocale'\r\ngstrfuncs.c: In function 'g_ascii_strtoull':\r\ngstrfuncs.c:1148: warning: implicit declaration of function 'strtoull_l'\r\ngstrfuncs.c: In function 'g_ascii_strtoll':\r\ngstrfuncs.c:1195: warning: implicit declaration of function 'strtoll_l'\r\ngmake[4]: *** [gstrfuncs.lo] Error 1\r\ngmake[4]: *** Waiting for unfinished jobs....\r\ngmake[4]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\ngmake[3]: *** [all-recursive] Error 1\r\ngmake[3]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\ngmake[2]: *** [all] Error 2\r\ngmake[2]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3\/glib'\r\ngmake[1]: *** [all-recursive] Error 1\r\ngmake[1]: Leaving directory `\/usr\/ports\/devel\/glib20\/work\/glib-2.34.3'\r\ngmake: *** [all] Error 2\r\n*** Error code 1\r\n\r\nStop in \/usr\/ports\/devel\/glib20.\r\n*** Error code 1\r\n\r\nStop in \/usr\/ports\/devel\/glib20.\r\n<\/pre>\n<p>This is not a popular problem. After I google a while, I found a very similar problem <a href=\"http:\/\/freebsd.1045724.n5.nabble.com\/Re-ports-177069-devel-glib20-update-of-glib-2-28-8-5-to-2-34-3-in-jail-failed-td5797239.html\" target=\"_blank\">here<\/a>. Basically, the author suggests that the problem may be caused by an uncleaned run of freebsd-update. In short, you need to run the program twice, i.e.,<\/p>\n<pre>\r\nsudo freebsd-update fetch install\r\nsudo reboot\r\nsudo freebsd-update install\r\n<\/pre>\n<\/p>\n<p>Obviously, it didn&#8217;t work for me. So I decided to try my last solution: pkg_add<\/p>\n<pre>\r\nsudo pkg_add -r glib20\r\n<\/pre>\n<p>and I tried to resume the installation:<\/p>\n<pre>\r\ncd \/usr\/ports\/java\/jdk16\r\nsudo make install\r\n<\/pre>\n<p>It worked!<\/p>\n<p>Hope this little trick is helpful to you.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to install Java on my FreeBSD box today. It wasn&#8217;t a very good experience. Primary the system is not automated. It requires a lot of manual works. Anyway, <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/solvedfreebsd-problem-to-update-glib20\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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":[171],"class_list":["post-3253","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-Qt","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":3253,"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":2840,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-develpkg-config-port-moved-to-develpkgconf-reason-pkg-config-has-been-replace-by-pkgconf-pkgconf-0-8-5-conflicts-with-installed-packages-pkg-config-0-25_1\/","url_meta":{"origin":3253,"position":1},"title":"[FreeBSD]The devel\/pkg-config port moved to devel\/pkgconf; Reason: pkg-config has been replace by pkgconf; pkgconf-0.8.5 conflicts with installed package(s): pkg-config-0.25_1","author":"Derrick","date":"July 31, 2012","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 those 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":[]},{"id":3539,"url":"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/","url_meta":{"origin":3253,"position":2},"title":"[FreeBSD]Shared object &#8220;libaprutil-1.so.5&#8221; not found, required by &#8220;httpd&#8221;","author":"Derrick","date":"June 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I decide to test the Apache by restarting the server. Oh well, I got the following error message: [FreeBSD]Shared object \"libaprutil-1.so.5\" not found, required by \"httpd\" Oh well, looks like\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":31,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-php-mysql-and-memcached-on-freebsd\/","url_meta":{"origin":3253,"position":3},"title":"Installing Apache, PHP, MySQL and MemCached on FreeBSD","author":"Derrick","date":"May 19, 2009","format":false,"excerpt":"This is my note on how to to install Apache, PHP, MySQL and MemCached on a FreeBSD 7 Box. 1. MySQL Go to the mysql52-server port directory by typing the command: cd \/usr\/ports\/databases\/mysql51-server Build the port by typing: make BUILD_OPTIMIZED=yes BUILD_STATIC=yes Using these two options will speed up the execution\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"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":3253,"position":4},"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":3125,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-netsamba35-port-has-been-deleted-obsoleted-by-netsamba36\/","url_meta":{"origin":3253,"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":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3253","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=3253"}],"version-history":[{"count":10,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3253\/revisions"}],"predecessor-version":[{"id":3654,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3253\/revisions\/3654"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}