Fail to build Nginx 0.6.21 from source to support OpenSSL

Igor Sysoev is at rambler-co.ru
Wed Dec 12 09:13:00 MSK 2007


On Wed, Dec 12, 2007 at 05:32:51AM +0100, Hoang Hoang wrote:

> Hi all,
> 
> I have a hard time to build Nginx 0.6.21 from source code with OpenSSQL
> support. My configuration is as follows:
> 
> ./configure --prefix=/user/local/nginx/ \
> --with-http_stub_status_module \
> --with-openssl=/usr/lib \

You do not need --with-openssl option: ./configure should find your system
OpenSSL library.

The --with-openssl option is intended to build OpenSSL library from sources
and link it statically with nginx.

> --pid-path=/usr/local/nginx/nginx.pid \
> --sbin-path=/usr/local/sbin/nginx \
> --with-md5=/usr/lib \
> --with-sha1=/usr/lib \
> --with-http_ssl_module \
> --with-http_dav_module \
> 
> My libssl.a is located at /usr/lib/libssl.a
> 
> I have updated OpenSSL to the latest version available with Redhat EL5.
> krb5 is updated as well. But when I execute "make install" I get this
> error
> 
>  -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'

> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/usr/local/src/nginx-0.6.21'
> make: *** [build] Error 2
> 
> 
> Have you encountered this issue? I would be grateful if anyone points me
> to the right direction to solve it?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list