Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default a problem

    Hello
    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 ?
    Bulent Guest

  2. Similar Questions and Discussions

    1. contribute problem - access denied file may not existpermission problem
      Recieving the following error message - "access denied file may not exist , or there could be a permission problem" this happened this morning ,...
    2. Problem playing Quicktime thru .DCR embedded in HTML - pathreferencing problem?
      Greetings earthlings and Director heads. Here's the problem: created an HTML file containing shockwave (dcr) movie that calls quicktime movies in...
    3. Uploading problem = weird warning (was: access denied problem.....)
      Hi, I had a problem where my upload form was not working on our production server but was working on two other servers, after checking the...
    4. #21611 [Opn]: Problem with version_compare() (Was: Problem with pear cli and release numbers)
      ID: 21611 Updated by: et@php.net -Summary: Problem with pear cli and release numbers Reported By: jan at horde...
    5. Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
      HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I...
  3. #2

    Default Re: a problem

    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.
    >
    Bulent Guest

  4. #3

    Default Re: a problem

    On Tue, Feb 22, 2005 at 09:20:54AM +0200, Bulent wrote:
    > 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
    You can't use Linux compiled C library-archives on a FreeBSD system.
    Try linking against the FreeBSD SSL libraries instead.
    --
    Jonathan Chen <jonc@chen.org.nz>
    ----------------------------------------------------------------------
    "Beer. Now there's a temporary solution."
    - Homer Simpson
    Jonathan Chen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139