undefined BIO_new_socket function in OpenSSL library

Posted by Chuck on Stack Overflow See other posts from Stack Overflow or by Chuck
Published on 2010-06-16T21:21:14Z Indexed on 2010/06/16 21:22 UTC
Read the original article Hit count: 440

Filed under:
|

Hi,

I get the following problem with some openssl (yeah, I know it's poorly documented, but I wish to use it any way) code in a project of mine (written in c, on osx and tested in ubuntu):

Undefined symbols:
"_BIO_new_socket", referenced from: _main in ccG3cvyw.o ld: symbol(s) not found collect2: ld returned 1 exit status

I did have SSL library problems aswel, because I forgot to link my program to the openssl libraries. The above undefined still stands though.

My compile line is:

gcc -o test_app test_app.c -lssl

Versions I use: (GCC) 4.2.1 OpenSSL 0.9.8l 5 Nov 2009

I'm fairly certain it's a (linked) library issue, as the SSL function SSL_set_bio() works (as in does not produce a build error).

Any clue is very much appreciated :)

  • Chuck

© Stack Overflow or respective owner

Related posts about openssl

Related posts about undefined

  • Error in running script [closed]

    as seen on Programmers - Search for 'Programmers'
    I'm trying to run heathusf_v1.1.0.tar.gz found here I installed tcsh to make build_heathusf work. But, when I run ./build_heathusf, I get the following (I'm running that on a Fedora Linux system from Terminal): $ ./build_heathusf Compiling programs to build a library of image processing functions… >>> More

  • Not able to compile dbus-ping-pong

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have downloaded files from http://cgit.collabora.com/git/user/alban/dbus-ping-pong.git/tree/ I am trying to compile it using the command gcc pkg-config --libs --cflags dbus-1 dbus-glib-1-2 glib-2.0 -o dbus-ping-pong dbus-ping-pong.c However, I get errors: /tmp/ccmJkxXb.o: In function g_once_init_enter: dbus-ping-pong… >>> More

  • Qt Linking Error.

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi, I configure qt-x11 with following options ./configure -prefix /iTalk/qtx11 -prefix-install -bindir /iTalk/qtx11-install/bin -libdir /iTalk/qtx11-install/lib -docdir /iTalk/qtx11-install/doc -headerdir /iTalk/qtx11-install/include -datadir /iTalk/qtx11-install/data -examplesdir /iTalk/qtx11-install/examples… >>> More

  • QtOpenCl make errors. Please help.

    as seen on Stack Overflow - Search for 'Stack Overflow'
    So I downloaded the ATI Stream SDK. I don't have a gpu now so I use the '-device cpu' and got the programs/examples in the OpenCl directory working by adding the directory to LD_LIBRARY_PATH etc. Now the problem is when installing QtOpenCl. configure script gives me: skkard@skkard-desktop:~/Applications/qt-labs-opencl$… >>> More

  • Handling Erlang inets http client errors

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have an Erlang app which makes a large number of http calls to external sites using inets, using the code below case http:request(get, {Url, []}, [{autoredirect, false}], []) of {ok, {{_, Code, _}, _, Body}}-> case Code of 200 -> HandlerFn(Body); _ -> {error… >>> More