From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 07:21:00 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 3CE8616A4CE for ; Tue, 22 Feb 2005 07:21:00 +0000 (GMT) Received: from mailhub.ihlas.net.tr (mailhub.ihlas.net.tr [213.238.128.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 0CB2843D41 for ; Tue, 22 Feb 2005 07:20:59 +0000 (GMT) (envelope-from bmalik@ihlas.net.tr) Received: (qmail 3281 invoked from network); 22 Feb 2005 07:20:57 -0000 Received: from unknown (HELO ihlasnetym) (213.238.150.220) by mailhub.ihlas.net.tr with SMTP; 22 Feb 2005 07:20:57 -0000 Message-ID: <00a401c518af$0bb06460$dc96eed5@ihlasnetym> From: "Bulent" To: "Ruben de Groot" References: <001701c5182d$331b9dd0$dc96eed5@ihlasnetym> <20050221181232.GA70161@ei.bzerk.org> Date: Tue, 22 Feb 2005 09:20:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 cc: freebsd-questions@freebsd.org Subject: Re: 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: Tue, 22 Feb 2005 07:21:00 -0000 I was given some files which openssl and paycgi files by a bank in order to make a secure ssl via the bank. but I use FreeBSD53 and the bank gave me named linuxcgifiles according to linux-redhat the files as below; openssl capi.c capi.h cgic.c cgic.h common.c libcrypto.a libssl.a Makefile paycgi.c When I make All on command lines I get an error as below; make ALL gcc -I./openssl -L. -DLINUX -c paycgi.c gcc -I./openssl -L. -DLINUX -c cgic.c gcc -I./openssl -L. -DLINUX -c capi.c gcc -I./openssl -L. -DLINUX -c tcpunix.c gcc -I./openssl -L. -DLINUX -c client.c gcc -I./openssl -L. -DLINUX -c send_receive.c gcc -I./openssl -L. -DLINUX -c common.c 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/user/cgi-bin. What shall I do ? ----- Original Message ----- From: "Ruben de Groot" To: "Bulent" Sent: Monday, February 21, 2005 8:12 PM Subject: Re: a problem > On Mon, Feb 21, 2005 at 05:51:24PM +0200, Bulent typed: > > Hello > > I use Freebsd53 and I want to compile a script about ssl > > but I get an error as following; > > > > > What shall I do ? > > provide more details as to what you're trying to do. compiler errors > are only informative if you know the source of the application you're > trying to compile. >