{"id":34,"date":"2003-08-18T15:52:08","date_gmt":"2003-08-18T19:52:08","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/rlucastemp\/2003\/08\/18\/fix-apache-132x-compiling-with-mod"},"modified":"2003-08-18T15:52:08","modified_gmt":"2003-08-18T19:52:08","slug":"fix-apache-132x-compiling-with-mod_ssl-on-red-hat-9-shrike-bombs-ou","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/2003\/08\/18\/fix-apache-132x-compiling-with-mod_ssl-on-red-hat-9-shrike-bombs-ou\/","title":{"rendered":"FIX: Apache 1.3.2x compiling with mod_ssl on Red Hat 9 \/ shrike bombs out with krb5.h error"},"content":{"rendered":"<p><a name='a12'><\/a><\/p>\n<p><P>If you try to compile Apache (1.3.28)&nbsp;with mod_ssl, following the plain vanilla directions in the relevant sources, under Red Hat 9 (and using RH9&#8217;s installation of openssl), you are likely to get an ugly error like this:<\/P><br \/>\n<P><CODE>gcc -c -I..\/..\/os\/unix -I..\/..\/include -DLINUX=22 -I\/usr\/include\/gdbm -DMOD_SSL=208115 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_CORE `..\/..\/apaci` -DSHARED_MODULE -DSSL_COMPAT -DSSL_USE_SDBM -DSSL_ENGINE -DMOD_SSL_VERSION=\\&#8221;2.8.15\\&#8221; mod_ssl.c &amp;&amp; mv mod_ssl.o mod_ssl.lo <\/CODE><\/P><br \/>\n<P><CODE>from mod_ssl.h:116, <\/CODE><\/P><br \/>\n<P><CODE>from mod_ssl.c:65: <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:72:18: krb5.h: No such file or directory <\/CODE><\/P><br \/>\n<P><CODE>In file included from \/usr\/include\/openssl\/ssl.h:179, <\/CODE><\/P><br \/>\n<P><CODE>from mod_ssl.h:116, <\/CODE><\/P><br \/>\n<P><CODE>from mod_ssl.c:65: <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:132: parse error before &#8220;krb5_enctype&#8221; <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:134: parse error before &#8220;FAR&#8221; <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:135: parse error before &#8216;&#125;&#8217; token <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:147: parse error before &#8220;kssl_ctx_setstring&#8221; <\/CODE><\/P><br \/>\n<P><CODE>\/usr\/include\/openssl\/kssl.h:147: parse error before &#8216;*&#8217; token <\/CODE><\/P><br \/>\n<P><CODE>&#8230; <\/CODE><\/P><br \/>\n<P>Apparently, this is due to a problem with the compiler adequately finding the kerberos part of the installed openssl package.&nbsp; To fix it, you can 1. <code>make clean<\/code> your apache src dir, 2. place the following lines into your <code>configure<\/code> script in the apache-1.3.xx directory, around line 96 (exact location not critical):<\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P><CODE>if pkg-config openssl; then <\/CODE><\/P><br \/>\n<P><CODE>&nbsp;&nbsp;&nbsp;&nbsp; CFLAGS=&#8221;$CFLAGS `pkg-config &#8211;cflags openssl`&#8221;&nbsp;<\/CODE><\/P><br \/>\n<P><CODE>&nbsp;&nbsp;&nbsp;&nbsp; LDFLAGS=&#8221;$LDFLAGS `pkg-config &#8211;libs-only-L openssl`&#8221; <\/CODE><\/P><br \/>\n<P><CODE>fi <\/CODE><\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P>Many thanks to Matthias Saou for this solution, found at:<\/P><br \/>\n<P><A href=\"https:\/\/listman.redhat.com\/archives\/shrike-list\/2003-April\/msg00160.html\">https:\/\/listman.redhat.com\/archives\/shrike-list\/2003-April\/msg00160.html<\/A><BR><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you try to compile Apache (1.3.28)&nbsp;with mod_ssl, following the plain vanilla directions in the relevant sources, under Red Hat 9 (and using RH9&#8217;s installation of openssl), you are likely to get an ugly error like this: gcc -c -I..\/..\/os\/unix -I..\/..\/include -DLINUX=22 -I\/usr\/include\/gdbm -DMOD_SSL=208115 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_CORE `..\/..\/apaci` -DSHARED_MODULE -DSSL_COMPAT -DSSL_USE_SDBM -DSSL_ENGINE -DMOD_SSL_VERSION=\\&#8221;2.8.15\\&#8221; mod_ssl.c [&hellip;]<\/p>\n","protected":false},"author":1180,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1460],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-rlucasstories"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/users\/1180"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rlucastemp\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}