Date: Mon, 21 Feb 2005 17:51:24 +0200 From: "Bulent" <bmalik@ihlas.net.tr> To: <freebsd-questions@freebsd.org> Subject: a problem Message-ID: <001701c5182d$331b9dd0$dc96eed5@ihlasnetym>
next in thread | raw e-mail | index | archive | help
Hello=20 I use Freebsd53 and I want to compile a script about ssl but I get an error as following; How can I get rid of that? gcc -I./openssl -L. -DLINUX -o paycgi paycgi.o cgic.o capi.o tcpunix.o = client.o send_receive.o common.o -lssl -lcrypto ./libssl.a(s23_srvr.o): In function `ssl23_accept': s23_srvr.o(.text+0x37): undefined reference to `__errno_location' ./libssl.a(s23_clnt.o): In function `ssl23_connect': s23_clnt.o(.text+0x39): undefined reference to `__errno_location' ./libssl.a(s23_lib.o): In function `ssl23_read': s23_lib.o(.text+0x70): undefined reference to `__errno_location' ./libssl.a(s23_lib.o): In function `ssl23_peek': s23_lib.o(.text+0x110): undefined reference to `__errno_location' ./libssl.a(s23_lib.o): In function `ssl23_write': s23_lib.o(.text+0x1b0): undefined reference to `__errno_location' ./libssl.a(ssl_cert.o)(.text+0x792): more undefined references to = `__errno_location' follow ./libcrypto.a(cryptlib.o): In function `OpenSSLDie': cryptlib.o(.text+0x729): undefined reference to `stderr' ./libcrypto.a(obj_dat.o): In function `OBJ_create_objects': obj_dat.o(.text+0x86e): undefined reference to `__ctype_b' obj_dat.o(.text+0x8be): undefined reference to `__ctype_b' obj_dat.o(.text+0x901): undefined reference to `__ctype_b' ./libcrypto.a(rsa_sign.o): In function `RSA_verify': rsa_sign.o(.text+0x364): undefined reference to `stderr' ./libcrypto.a(bss_file.o): In function `file_ctrl': bss_file.o(.text+0x179): undefined reference to `__errno_location' ./libcrypto.a(bss_file.o): In function `BIO_new_file': bss_file.o(.text+0x25d): undefined reference to `__errno_location' ./libcrypto.a(bss_file.o): In function `file_read': bss_file.o(.text+0x3d9): undefined reference to `__errno_location' ./libcrypto.a(bss_sock.o): In function `BIO_sock_should_retry': bss_sock.o(.text+0x1e): undefined reference to `__errno_location' ./libcrypto.a(bss_sock.o): In function `sock_write': bss_sock.o(.text+0xe0): undefined reference to `__errno_location' ./libcrypto.a(bss_sock.o)(.text+0x142): more undefined references to = `__errno_location' follow ./libcrypto.a(b_print.o): In function `_dopr': b_print.o(.text+0x125): undefined reference to `__ctype_b' b_print.o(.text+0x187): undefined reference to `__ctype_b' ./libcrypto.a(x509_cmp.o): In function `nocase_cmp': x509_cmp.o(.text+0x31): undefined reference to `__ctype_tolower' ./libcrypto.a(x509_cmp.o): In function `nocase_spacenorm_cmp': x509_cmp.o(.text+0x80): undefined reference to `__ctype_b' x509_cmp.o(.text+0xab): undefined reference to `__ctype_b' x509_cmp.o(.text+0xd3): undefined reference to `__ctype_b' x509_cmp.o(.text+0xfe): undefined reference to `__ctype_b' x509_cmp.o(.text+0x12c): undefined reference to `__ctype_tolower' x509_cmp.o(.text+0x156): undefined reference to `__ctype_b' ./libcrypto.a(by_dir.o): In function `get_cert_by_subject': by_dir.o(.text+0x3e1): undefined reference to `__xstat' ./libcrypto.a(rand_unix.o): In function `RAND_poll': rand_unix.o(.text+0x119): undefined reference to `__errno_location' ./libcrypto.a(a_strnid.o): In function = `ASN1_STRING_set_default_mask_asc': a_strnid.o(.text+0x36): undefined reference to `__strtoul_internal' ./libcrypto.a(pem_lib.o): In function `PEM_def_callback': pem_lib.o(.text+0xa8): undefined reference to `stderr' ./libcrypto.a(v3_conf.o): In function `v3_check_critical': v3_conf.o(.text+0x203): undefined reference to `__ctype_b' ./libcrypto.a(v3_conf.o): In function `v3_check_generic': v3_conf.o(.text+0x263): undefined reference to `__ctype_b' ./libcrypto.a(v3_utl.o): In function `string_to_hex': v3_utl.o(.text+0xb7e): undefined reference to `__ctype_b' v3_utl.o(.text+0xb8a): undefined reference to `__ctype_tolower' v3_utl.o(.text+0xb9d): undefined reference to `__ctype_tolower' ./libcrypto.a(v3_utl.o): In function `strip_spaces': v3_utl.o(.text+0x12e7): undefined reference to `__ctype_b' v3_utl.o(.text+0x132e): undefined reference to `__ctype_b' ./libcrypto.a(bn_print.o): In function `BN_hex2bn': bn_print.o(.text+0x2f6): undefined reference to `__ctype_b' ./libcrypto.a(bn_print.o): In function `BN_dec2bn': bn_print.o(.text+0x4cf): undefined reference to `__ctype_b' ./libcrypto.a(rand_egd.o): In function `RAND_query_egd_bytes': rand_egd.o(.text+0xb8): undefined reference to `__errno_location' rand_egd.o(.text+0x151): undefined reference to `__errno_location' rand_egd.o(.text+0x186): undefined reference to `__errno_location' rand_egd.o(.text+0x1f1): undefined reference to `__errno_location' ./libcrypto.a(ui_openssl.o): In function `open_console': ui_openssl.o(.text+0x46e): undefined reference to `stdin' ui_openssl.o(.text+0x495): undefined reference to `stderr' ui_openssl.o(.text+0x4c4): undefined reference to `__errno_location' ./libcrypto.a(ui_openssl.o): In function `close_console': ui_openssl.o(.text+0x5fa): undefined reference to `stdin' ui_openssl.o(.text+0x613): undefined reference to `stderr' *** Error code 1 Stop in /usr/home/cgi-bin. What shall I do ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001701c5182d$331b9dd0$dc96eed5>