{"id":456,"date":"2009-04-13T09:10:38","date_gmt":"2009-04-13T14:10:38","guid":{"rendered":"http:\/\/www.wwco.com\/~wls\/blog\/?p=456"},"modified":"2009-04-13T09:10:38","modified_gmt":"2009-04-13T14:10:38","slug":"apr_ldap_ssl_init","status":"publish","type":"post","link":"https:\/\/wls.wwco.com\/blog\/2009\/04\/13\/apr_ldap_ssl_init\/","title":{"rendered":"FIX: undefined symbol: apr_ldap_ssl_init"},"content":{"rendered":"<p>This is a geek entry for resolving the problem:<\/p>\n<blockquote><p>* Restarting web server apache2<br \/>\n\/usr\/sbin\/apache2: symbol lookup error: \/usr\/sbin\/apache2: undefined symbol: apr_ldap_ssl_init  [fail]\n<\/p><\/blockquote>\n<p>Non-geeks will want to move along&#8230;<br \/>\n<!--more--><\/p>\n<p>After a standard apt-get update, apt-get upgrade on Ubuntu 9.04 Jaunty, I was unable to start apache (httpd) due to an undefined symbol.<\/p>\n<p>Suggested fixes of <a href=\"http:\/\/beerpla.net\/2008\/07\/29\/how-to-fix-symbol-lookup-error-usrsbinhttpd2-prefork-undefined-symbol-apr_ldap_ssl_init-2\/\">repairing broken symbolic links in \/usr\/lib<\/a>, <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=981837\">reinstalling the apr library<\/a>, and <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1029393\">twiddling Apache&#8217;s ldap modules<\/a> didn&#8217;t work.<\/p>\n<p>The fix came from inspiration left by <a href=\"http:\/\/agentzlerich.blogspot.com\/\">Rhys Ulerich<\/a>, <a href=\"http:\/\/beerpla.net\/2008\/07\/29\/how-to-fix-symbol-lookup-error-usrsbinhttpd2-prefork-undefined-symbol-apr_ldap_ssl_init-2\/\">who left a comment<\/a>, saying:<\/p>\n<blockquote><p>I also ran into this problem, but the root cause was that I&#8217;d built the Apache Portable Runtime in \/usr\/local for some other development work, completely forgot about it, and apache2 was picking up libraries from \/usr\/local\/lib before \/usr\/lib.<\/p><\/blockquote>\n<p>Indeed this was the problem.<\/p>\n<p><a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a>, while my current favorite choice as best-Linux-distribution-ever, has the horrible problem of suffering from severe lag of keeping up to date with the latest <a href=\"http:\/\/subversion.tigris.org\/\">Subversion<\/a>.  Why this is so, I don&#8217;t know, but it&#8217;s forced us to have to build subversion manually &#8212; an easy enough task, but I&#8217;d really rather use an up-to-date repository.<\/p>\n<p>Part of subversion&#8217;s build process is to build the APR library, although it&#8217;s better to simply use subversion-deps.<\/p>\n<p>Through a set of manual builds and system updates, I ended up with a build in \/usr\/local\/apr\/lib and a build in \/usr\/lib.<\/p>\n<p>By going to \/etc\/ld.so.conf.d, and doing grep apr *, I was able to find that I had a manually created file called usr-local.conf that contained \/usr\/local\/apr\/lib and \/usr\/local\/BerkeleyDB.4.7\/lib in it.<\/p>\n<p>Deleting the \/usr\/local\/apr\/lib line, and then running # ldconfig, which altered the shared libraries loaded by the synamic linker run-time bindings, this solved the problem.<\/p>\n<p>Apache2 was now looking at \/usr\/lib, and it found the apr library it wanted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did an update to Ubuntu Jaunty and Apache stopped working with the message &#8220;undefined symbol: apr_ldap_ssl_init&#8221;.  This post is how I fixed it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115,62,65,67,129,79,96,100],"tags":[169,193,194,203,204,450,529,531,549,570,590,603,803,894,908,909,959,963],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-apache","category-geek","category-hack","category-how-to","category-linux","category-operating-systems","category-subversion","category-ubuntu","tag-169","tag-apache","tag-apache2","tag-apr","tag-apr_ldap_ssl_init","tag-fix","tag-howto","tag-httpd","tag-init","tag-jaunty","tag-ldap","tag-link","tag-repair","tag-ssl","tag-symbol","tag-symbolic","tag-ubuntu","tag-undefined"],"_links":{"self":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":0,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"wp:attachment":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}