From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 15:51:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F301516A4CF for ; Mon, 21 Feb 2005 15:51:38 +0000 (GMT) Received: from mailhub.ihlas.net.tr (mailhub.ihlas.net.tr [213.238.128.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 80B6A43D39 for ; Mon, 21 Feb 2005 15:51:35 +0000 (GMT) (envelope-from bmalik@ihlas.net.tr) Received: (qmail 82048 invoked from network); 21 Feb 2005 15:51:32 -0000 Received: from unknown (HELO ihlasnetym) (213.238.150.220) by mailhub.ihlas.net.tr with SMTP; 21 Feb 2005 15:51:32 -0000 Message-ID: <001701c5182d$331b9dd0$dc96eed5@ihlasnetym> From: "Bulent" To: Date: Mon, 21 Feb 2005 17:51:24 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: a problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 15:51:39 -0000 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 ?