{"id":41,"date":"2013-02-06T11:45:15","date_gmt":"2013-02-06T10:45:15","guid":{"rendered":"http:\/\/techblog.vindvejr.dk\/?p=41"},"modified":"2015-12-07T15:27:22","modified_gmt":"2015-12-07T14:27:22","slug":"building-courier-authlib-0-65-0-on-centos-5","status":"publish","type":"post","link":"https:\/\/techblog.vindvejr.dk\/?p=41","title":{"rendered":"Building Courier-Authlib 0.65.0 on CentOS 5"},"content":{"rendered":"<p>Today I wanted to upgrade Courier-Authlib from 0.63.0 and read this in the <a href=\"http:\/\/www.courier-mta.org\/authlib\/changelog.html\" title=\"ChangeLog\">ChangeLog<\/a>:<\/p>\n<blockquote><p>2010-03-06  Sam Varshavchik  <mrsam@courier-mta.com><\/p>\n<p>\t* Remove the bundled libtdl library. Require the system-installed<br \/>\n\tlibltdl library.\n<\/p><\/blockquote>\n<p>As expected, this gave me some problems with my old CentOS 5.9 release:<\/p>\n<blockquote><p>\/bin\/sh .\/libtool &#8211;tag=CC   &#8211;mode=link gcc  -g -O2 -Wall -I.. -I.\/.. -export-dynamic -dlopen libauthuserdb.la -dlopen libauthpam.la -dlopen libauthshadow.la -dlopen libauthcustom.la -dlopen libauthpipe.la   -o authdaemondprog authdaemond.o libltdl\/libltdlc.la libcourierauthcommon.la liblock\/liblock.la libhmac\/libhmac.la md5\/libmd5.la sha1\/libsha1.la rfc822\/libencode.la numlib\/libnumlib.la -ldl<br \/>\nlibtool: link: cannot find the library `libltdl\/libltdlc.la&#8217; or unhandled argument `libltdl\/libltdlc.la&#8217;<br \/>\nmake[2]: *** [authdaemondprog] Error 1<br \/>\nmake[2]: Leaving directory `\/usr\/local\/src\/courier-authlib-0.65.0&#8242;<br \/>\nmake[1]: *** [all-recursive] Error 1<br \/>\nmake[1]: Leaving directory `\/usr\/local\/src\/courier-authlib-0.65.0&#8242;<br \/>\nmake: *** [all] Error 2\n<\/p><\/blockquote>\n<p>I fixed this by adding this line to my build script (after configure):<br \/>\n<code>sed -i -e 's\/^LIBLTDL = ${top_build_prefix}libltdl\\\/libltdlc.la\/LIBLTDL = -lltdl\/' Makefile<br \/>\n<\/code><\/p>\n<p><strong>Update, February 15th 2013:<\/strong> Today I found out that in a freshly installed VMware machine with CentOS 5.9, ltdl was missing. So I needed to add the following in my pre-build script as well:<br \/>\n<code>rpm -q libtool-ltdl >\/dev\/null<br \/>\nif [ $? != 0 ]; then yum -q -y install libtool-ltdl; fi<br \/>\nrpm -q libtool-ltdl-devel >\/dev\/null<br \/>\nif [ $? != 0 ]; then yum -q -y install libtool-ltdl-devel; fi<br \/>\n<\/code><\/p>\n<p><strong>Update, December 7th 2015:<\/strong> I wanted to build 0.66.4 today, and the problem reappeared. Luckily, I found this posting which saved me some time. Updated &#8216;sed&#8217; command:<br \/>\n<code>sed -i -e 's\/^LIBLTDL = $(top_build_prefix)libltdl\\\/libltdlc.la\/LIBLTDL = -lltdl\/' Makefile<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I wanted to upgrade Courier-Authlib from 0.63.0 and read this in the ChangeLog: 2010-03-06 Sam Varshavchik * Remove the bundled libtdl library. Require the system-installed libltdl library. As expected, this gave me some problems with my old CentOS 5.9 &hellip; <a href=\"https:\/\/techblog.vindvejr.dk\/?p=41\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":10,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}