Fail to build Nginx 0.6.21 from source to support OpenSSL

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
–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 tokrb5_rc_default’
/usr/lib/libssl.a(kssl.o): In function get_rc_clockskew': (.text+0x12c): undefined reference tokrb5_rc_initialize’
/usr/lib/libssl.a(kssl.o): In function get_rc_clockskew': (.text+0x152): undefined reference tokrb5_rc_get_lifespan’
/usr/lib/libssl.a(kssl.o): In function get_rc_clockskew': (.text+0x16c): undefined reference tokrb5_rc_destroy’
/usr/lib/libssl.a(kssl.o): In function kssl_validate_times': (.text+0x1a4): undefined reference tokrb5_init_context’
/usr/lib/libssl.a(kssl.o): In function kssl_validate_times': (.text+0x1c7): undefined reference tokrb5_timeofday’
/usr/lib/libssl.a(kssl.o): In function kssl_validate_times': (.text+0x1ea): undefined reference tokrb5_free_context’
/usr/lib/libssl.a(kssl.o): In function kssl_krb5_free_data_contents': (.text+0x271): undefined reference tokrb5_free_data_contents’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x2ea): undefined reference tokrb5_init_context’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x306): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x31c): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x32b): undefined reference tokrb5_free_context’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x36b): undefined reference tokrb5_sname_to_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x385): undefined reference tokrb5_cc_default’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x3a6): undefined reference tokrb5_cc_get_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_tgt_is_available': (.text+0x3d8): undefined reference tokrb5_get_credentials’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x445): undefined reference tokrb5_init_context’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x46e): undefined reference tokrb5_kt_resolve’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x4aa): undefined reference tokrb5_sname_to_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x4d7): undefined reference tokrb5_kt_get_entry’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x4fa): undefined reference tokrb5_kt_close’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x510): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x51f): undefined reference tokrb5_free_context’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x538): undefined reference tokrb5_kt_free_entry’
/usr/lib/libssl.a(kssl.o): In function kssl_keytab_is_available': (.text+0x54e): undefined reference tokrb5_kt_default’
/usr/lib/libssl.a(kssl.o): In function populate_cksumlens': (.text+0xa97): undefined reference tovalid_cksumtype’
/usr/lib/libssl.a(kssl.o): In function populate_cksumlens': (.text+0xac1): undefined reference tokrb5_checksum_size’
/usr/lib/libssl.a(kssl.o): In function populate_cksumlens': (.text+0xafa): undefined reference tokrb5_checksum_size’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x16c1): undefined reference tokrb5_init_context’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x16fd): undefined reference tokrb5_sname_to_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x175e): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x1777): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x178d): undefined reference tokrb5_auth_con_free’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x179c): undefined reference tokrb5_free_context’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x17be): undefined reference tokrb5_cc_default’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x17e0): undefined reference tokrb5_cc_get_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x18a1): undefined reference tokrb5_get_credentials’
/usr/lib/libssl.a(kssl.o): In function kssl_cget_tkt': (.text+0x1925): undefined reference tokrb5_mk_req_extended’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1ca7): undefined reference tokrb5_auth_con_free’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1cd3): undefined reference tokrb5_auth_con_init’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1d0c): undefined reference tokrb5_kt_close’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1d25): undefined reference tokrb5_free_ticket’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1d3e): undefined reference tokrb5_free_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1d6e): undefined reference tokrb5_auth_con_getrcache’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1dae): undefined reference tokrb5_sname_to_principal’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1de2): undefined reference tokrb5_auth_con_setrcache’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1e13): undefined reference tokrb5_kt_resolve’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1f3d): undefined reference tokrb5_init_context’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1f8e): undefined reference tokrb5_get_server_rcache’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x1fe1): undefined reference tokrb5_principal_compare’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x2069): undefined reference tokrb5_kt_default’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x20c9): undefined reference tokrb5_kt_get_entry’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x213f): undefined reference tokrb5_decrypt_tkt_part’
/usr/lib/libssl.a(kssl.o): In function kssl_sget_tkt': (.text+0x2165): undefined reference tokrb5_kt_free_entry’
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?

Thanks

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.

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 tokrb5_rc_default’