Fail to build Nginx 0.6.21 from source to support OpenSSL

Hoang Hoang lists at ruby-forum.com
Wed Dec 12 07:32:51 MSK 2007


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 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':
(.text+0x152): undefined reference to `krb5_rc_get_lifespan'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0x16c): undefined reference to `krb5_rc_destroy'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x1a4): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x1c7): undefined reference to `krb5_timeofday'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x1ea): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_krb5_free_data_contents':
(.text+0x271): undefined reference to `krb5_free_data_contents'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2ea): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x306): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x31c): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x32b): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x36b): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x385): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x3a6): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x3d8): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x445): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x46e): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4aa): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4d7): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4fa): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x510): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x51f): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x538): undefined reference to `krb5_kt_free_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x54e): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xa97): undefined reference to `valid_cksumtype'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xac1): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xafa): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x16c1): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x16fd): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x175e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1777): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x178d): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x179c): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17be): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17e0): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x18a1): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1925): undefined reference to `krb5_mk_req_extended'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1ca7): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1cd3): undefined reference to `krb5_auth_con_init'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d0c): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d25): undefined reference to `krb5_free_ticket'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d3e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d6e): undefined reference to `krb5_auth_con_getrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1dae): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1de2): undefined reference to `krb5_auth_con_setrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1e13): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1f3d): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1f8e): undefined reference to `krb5_get_server_rcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1fe1): undefined reference to `krb5_principal_compare'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2069): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x20c9): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x213f): undefined reference to `krb5_decrypt_tkt_part'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2165): undefined reference to `krb5_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
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list