Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 09:20:54 +0200
From:      "Bulent" <bmalik@ihlas.net.tr>
To:        "Ruben de Groot" <mail25@bzerk.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: a problem
Message-ID:  <00a401c518af$0bb06460$dc96eed5@ihlasnetym>
References:  <001701c5182d$331b9dd0$dc96eed5@ihlasnetym> <20050221181232.GA70161@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <mail25@bzerk.org>
To: "Bulent" <bmalik@ihlas.net.tr>
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;
>
> <SNIP lots of errors>
>
> > 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.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00a401c518af$0bb06460$dc96eed5>