Cannot make on Centos 5 with SSL

Igor Sysoev is at
Fri Aug 15 19:44:51 MSD 2008

On Fri, Aug 15, 2008 at 07:58:01PM +0700, Chris Savery wrote:

> I have successfully built and tested nginx on Ubuntu at home and want to 
> now test it on my real server running Centos 5. I can build without ssl 
> option fine and it all works.
> Now I want to build with ssl. I have provided the correct options afaik 
> and it configures ok but during the build it gives the errors below 
> (actually a huge list of linker errors but I cut just the first bit):
> -- snip snip --
>    objs/src/http/modules/ngx_http_browser_module.o \
>    objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
>    objs/ngx_modules.o \
>    -lcrypt -lpcre /usr/lib/libssl.a /usr/lib/libcrypto.a -ldl -lz
> /usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
> (.text+0x111): undefined reference to `krb5_rc_default'
> /usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
> (.text+0x12c): undefined reference to `krb5_rc_initialize'
> /usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
> -- snip snip --
> Here is the configure line:
> ./configure --with-openssl=/usr/lib --with-http_ssl_module 
> --conf-path=/etc/nginx/nginx.conf --with-md5=auto/lib/md5 
> --with-sha1=auto/lib/sha1
> seems like something wrong between krb5 and openssl. I checked that both 
> were updated with yum but I don't know what to look at next.

--with-openssl=, --with-md5=, and --with-sha1= must point to directory with
library sources. Remove them: nginx's configure will find all by itself.

Igor Sysoev

More information about the nginx mailing list