우에곡절끝에 openldap 설치를 하고 간단히c 프로그램 컴팔을 시도해보는데..
gcc -o test test1.o -L/usr/lib -L/usr/local/lib -L/project/lib/lib/gcc -L/project/xpt/lib -L/opt/zlib/lib -L/opt/flex/lib -L/project/xpt/mysql/lib -L/opt/SC5.0/lib /usr/local/openldap/lib/libldap.a /usr/local/openldap/lib/liblber.a -lisam -lcommon -lz
/usr/local/openldap/lib/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/usr/local/openldap-2.0.18/libraries/libldap/os-ip.c:180: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/usr/local/openldap-2.0.18/libraries/libldap/os-ip.c:180: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_init':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:54: undefined reference to `sasl_set_alloc'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:71: undefined reference to `sasl_client_init'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `sb_sasl_read':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:242: undefined reference to `sasl_decode'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:246: undefined reference to `sasl_errstring'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `sb_sasl_write':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:285: undefined reference to `sasl_encode'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:288: undefined reference to `sasl_errstring'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_open':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:419: undefined reference to `sasl_client_new'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:437: undefined reference to `sasl_setprop'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_close':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:452: undefined reference to `sasl_dispose'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_bind':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:515: undefined reference to `sasl_setprop'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:522: undefined reference to `sasl_client_start'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:595: undefined reference to `sasl_client_step'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:633: undefined reference to `sasl_getprop'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:638: undefined reference to `sasl_getprop'
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:644: undefined reference to `sasl_getprop'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_external':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:683: undefined reference to `sasl_setprop'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_get_option':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:853: undefined reference to `sasl_getprop'
/usr/local/openldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_set_option':
/usr/local/openldap-2.0.18/libraries/libldap/cyrus.c:917: undefined reference to `sasl_setprop'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_init':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:117: undefined reference to `SSL_load_error_strings'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:118: undefined reference to `SSL_library_init'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:121: undefined reference to `X509V3_add_standard_extensions'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_init_def_ctx':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:137: undefined reference to `SSLv23_method'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:137: undefined reference to `SSL_CTX_new'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:154: undefined reference to `SSL_CTX_load_verify_locations'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:154: undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:220: undefined reference to `SSL_CTX_free'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:173: undefined reference to `SSL_CTX_set_client_CA_list'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:185: undefined reference to `SSL_CTX_check_private_key'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:206: undefined reference to `SSL_CTX_set_verify'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:211: undefined reference to `SSL_CTX_set_tmp_rsa_callback'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:199: undefined reference to `SSL_CTX_use_certificate_file'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:193: undefined reference to `SSL_CTX_use_PrivateKey_file'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:171: undefined reference to `SSL_CTX_set_cipher_list'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:141: undefined reference to `ERR_peek_error'
/usr/local/openldap/lib/libldap.a(tls.o): In function `get_ca_list':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:235: undefined reference to `SSL_load_client_CA_file'
/usr/local/openldap/lib/libldap.a(tls.o): In function `alloc_handle':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:257: undefined reference to `SSL_new'
/usr/local/openldap/lib/libldap.a(tls.o): In function `update_flags':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:268: undefined reference to `SSL_get_error'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_setup':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:312: undefined reference to `BIO_new'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:314: undefined reference to `SSL_set_bio'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_remove':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:328: undefined reference to `SSL_free'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_close':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:343: undefined reference to `SSL_shutdown'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_ctrl':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:362: undefined reference to `SSL_pending'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_read':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:382: undefined reference to `SSL_read'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:386: undefined reference to `SSL_get_error'
/usr/local/openldap/lib/libldap.a(tls.o): In function `sb_tls_write':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:410: undefined reference to `SSL_write'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:414: undefined reference to `SSL_get_error'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_int_tls_connect':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:581: undefined reference to `SSL_connect'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:590: undefined reference to `ERR_peek_error'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:592: undefined reference to `ERR_error_string'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_accept':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:631: undefined reference to `SSL_accept'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_get_strength':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:679: undefined reference to `SSL_get_current_cipher'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:680: undefined reference to `SSL_CIPHER_get_bits'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_get_peer':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:691: undefined reference to `SSL_get_peer_certificate'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:696: undefined reference to `X509_get_subject_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:697: undefined reference to `X509_NAME_oneline'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:698: undefined reference to `X509_free'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_get_peer_dn':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:709: undefined reference to `SSL_get_peer_certificate'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:713: undefined reference to `X509_get_subject_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:714: undefined reference to `X509_NAME_oneline'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:718: undefined reference to `X509_free'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_get_peer_hostname':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:730: undefined reference to `SSL_get_peer_certificate'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:735: undefined reference to `X509_get_subject_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:737: undefined reference to `X509_NAME_get_text_by_NID'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:744: undefined reference to `X509_free'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:739: undefined reference to `X509_free'
/usr/local/openldap/lib/libldap.a(tls.o): In function `ldap_pvt_tls_check_hostname':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:754: undefined reference to `SSL_get_peer_certificate'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:763: undefined reference to `X509_get_ext_by_NID'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:769: undefined reference to `X509_get_ext'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:770: undefined reference to `X509V3_EXT_d2i'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:779: undefined reference to `sk_num'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:801: undefined reference to `X509V3_EXT_get'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:832: undefined reference to `X509_free'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:813: undefined reference to `X509_get_subject_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:815: undefined reference to `X509_NAME_get_text_by_NID'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:785: undefined reference to `sk_value'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:788: undefined reference to `ASN1_STRING_data'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:789: undefined reference to `ASN1_STRING_length'
/usr/local/openldap/lib/libldap.a(tls.o): In function `tls_info_cb':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1126: undefined reference to `SSL_alert_desc_string_long'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1126: undefined reference to `SSL_alert_type_string_long'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1135: undefined reference to `SSL_state_string_long'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1131: undefined reference to `SSL_state_string_long'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1119: undefined reference to `SSL_state_string_long'
/usr/local/openldap/lib/libldap.a(tls.o): In function `tls_verify_cb':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1151: undefined reference to `X509_STORE_CTX_get_current_cert'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1152: undefined reference to `X509_STORE_CTX_get_error'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1153: undefined reference to `X509_STORE_CTX_get_error_depth'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1159: undefined reference to `X509_get_subject_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1160: undefined reference to `X509_get_issuer_name'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1162: undefined reference to `X509_NAME_oneline'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1163: undefined reference to `X509_NAME_oneline'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1170: undefined reference to `CRYPTO_free'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1172: undefined reference to `CRYPTO_free'
/usr/local/openldap/lib/libldap.a(tls.o): In function `tls_report_error':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1186: undefined reference to `ERR_get_error_line'
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1188: undefined reference to `ERR_error_string'
/usr/local/openldap/lib/libldap.a(tls.o): In function `tls_tmp_rsa_cb':
/usr/local/openldap-2.0.18/libraries/libldap/tls.c:1199: undefined reference to `RSA_generate_key'
collect2: ld returned 1 exit status
make: *** [test] Error 1
[alps(xpt):/project/xpt/user/junny]%
이런식으로 나오네요..쩝..
머가 부족한지....^^*
|