Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3114 closed defect (invalid)

Builderror with SSL support

Reported by: Günter Owned by:
Priority: Please fill in Component: ! Please select...
Severity: Please fill in Keywords:
Cc: Sensitive: no

Description

Revision

#8238

Issue Description

[100%] Building C object CMakeFiles/oscam.dir/oscam.o
Linking C executable oscam
libcsmodules.a(module-webif.o): In function `readRequest':
module-webif.c:(.text+0x3f2): undefined reference to `SSL_pending'
module-webif.c:(.text+0x404): undefined reference to `SSL_get_fd'
module-webif.c:(.text+0x632): undefined reference to `SSL_get_error'
libcsmodules.a(module-webif.o): In function `http_srv':
module-webif.c:(.text+0xf609): undefined reference to `SSL_new'
module-webif.c:(.text+0xf767): undefined reference to `SSL_CTX_free'
libcsmodules.a(module-webif.o): In function `serve_process':
module-webif.c:(.text+0x136d3): undefined reference to `SSL_set_fd'
module-webif.c:(.text+0x1370f): undefined reference to `SSL_shutdown'
module-webif.c:(.text+0x1371f): undefined reference to `SSL_free'
module-webif.c:(.text+0x13794): undefined reference to `SSL_accept'
module-webif.c:(.text+0x137cc): undefined reference to `SSL_get_error'
module-webif.c:(.text+0x1399c): undefined reference to `SSL_accept'
libcsmodules.a(module-webif-lib.o): In function `SSL_Webif_Init':
module-webif-lib.c:(.text+0x138): undefined reference to `SSL_library_init'
module-webif-lib.c:(.text+0x13d): undefined reference to `SSL_load_error_strings'
module-webif-lib.c:(.text+0x147): undefined reference to `ERR_load_SSL_strings'
module-webif-lib.c:(.text+0x216): undefined reference to `SSLv3_server_method'
module-webif-lib.c:(.text+0x21e): undefined reference to `SSL_CTX_new'
module-webif-lib.c:(.text+0x240): undefined reference to `SSL_CTX_ctrl'
module-webif-lib.c:(.text+0x260): undefined reference to `SSL_CTX_ctrl'
module-webif-lib.c:(.text+0x270): undefined reference to `SSL_CTX_set_cipher_list'
module-webif-lib.c:(.text+0x2b3): undefined reference to `SSL_CTX_use_certificate_file'
module-webif-lib.c:(.text+0x2cf): undefined reference to `SSL_CTX_use_PrivateKey_file'
module-webif-lib.c:(.text+0x2df): undefined reference to `SSL_CTX_check_private_key'
module-webif-lib.c:(.text+0x339): undefined reference to `SSLv23_server_method'
module-webif-lib.c:(.text+0x341): undefined reference to `SSL_CTX_new'
libcsmodules.a(module-webif-lib.o): In function `webif_read':
module-webif-lib.c:(.text+0x1466): undefined reference to `SSL_read'
libcsmodules.a(module-webif-lib.o): In function `webif_write_raw':
module-webif-lib.c:(.text+0x14de): undefined reference to `SSL_write'
collect2: ld returned 1 exit status
make[2]: * [oscam] Error 1
make[1]:
* [CMakeFiles/oscam.dir/all] Error 2
make: * [all] Error 2

When the issue occurs

only when SSL support is selected.

How the issue is reproducable

<Please fill in>

<Don't forget to ATTACH (NOT post here as text) a log file of oscam in debug mode (start oscam with -d255) and to remove the brackets around the fields! Otherwise, your ticket will be closed as you seem to be unable to read.>

Change History (3)

comment:1 by gf, 10 years ago

Resolution: invalid
Status: newclosed

install openssl.

comment:2 by Günter, 10 years ago

Openssl is already installed.

comment:3 by gf, 10 years ago

The supported way of building oscam with ssl support is:

./config.sh --enable WITH_SSL
make

with cmake you are on your own. You say that openssl is installed, well it may be so, but cmake is not linking oscam with libssl, so you thats why you are getting an error.

Don't use cmake.

Note: See TracTickets for help on using tickets.