Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
65 user(s) are online (31 user(s) are browsing Forums)

Members: 1
Guests: 64

mufa, more...

Headlines

 
  Register To Post  

Libcurl and rtmp ??
Home away from home
Home away from home


See User information

Trying to playaround whit libcurl.


5.Work:pro_j/libcurl_exsamples> make
gcc https.c -lcurl -lssl -lcrypto -lrtmp -lz -lm -o https.exe
/SDK/local/newlib/lib/librtmp.a(rtmp.o): In function `RTMP_TLS_Init':
rtmp.c:(.text+0x7e28): undefined reference to `SSLv23_method'
make: *** [clib] Error 1


looks like some thing is missing in libssl or crypto, so how can check what version I have?

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Libcurl and rtmp ??
Just can't stay away
Just can't stay away


See User information
@LiveForIt

Note that the order and placing of linker libraries on the command line is important. Like f.e. if libcrypto needs functions from libssl you should have -lcrypt before -lssl on the command line.

Go to top
Re: Libcurl and rtmp ??
Home away from home
Home away from home


See User information
I swaped this and now I get alot more stuff missing..

5.Work:pro_j/libcurl_exsamples> make
gcc https.c -lcurl -lcrypto -lssl -lrtmp -lz -lm -o https.exe

/SDK/local/newlib/lib/libssl.a(s3_clnt.o): In function `ssl3_check_cert_and_algorithm':
s3_clnt.c:(.text+0x17c): undefined reference to 
`X509_certificate_type'
/SDK/local/newlib/lib/libssl.a(s3_enc.o): In function `ssl3_change_cipher_state'
:
s3_enc.c:(.text+0x974): undefined reference to `COMP_CTX_free'
s3_enc.c:(.text+0x98c): undefined reference to 
`COMP_CTX_new'
s3_enc.c:(.text+0xa68): undefined reference to `COMP_CTX_free'
s3_enc.c:(.text+0xa80): undefined reference to `COMP_CTX_new'
/SDK/local/newlib/lib/libssl.a(s3_pkt.o): In function 
`ssl3_do_compress':
s3_pkt.c:(.text+0x400): undefined reference to `COMP_compress_block'
/SDK/local/newlib/lib/libssl.a(s3_pkt.o): In function `ssl3_do_uncompress':
s3_pkt.c:(.text+0x460): undefined reference to 
`COMP_expand_block'
/SDK/local/newlib/lib/libssl.a(s3_pkt.o): In function `do_ssl3_write'
:
s3_pkt.c:(.text+0x958): undefined reference to `COMP_compress_block'
/SDK/local/newlib/lib/libssl.a(s3_pkt.o): In function 
`ssl3_read_bytes':
s3_pkt.c:(.text+0x1530): undefined reference to `COMP_expand_block'
/SDK/local/newlib/lib/libssl.a(t1_enc.o): In function `tls1_change_cipher_state':
t1_enc.c:(.text+0x1568): undefined reference to 
`COMP_CTX_free'
t1_enc.c:(.text+0x1580): undefined reference to `COMP_CTX_new'
t1_enc.c:(.text+0x171c): undefined reference to `COMP_CTX_free'
t1_enc.c:(.text+0x1734): undefined reference to 
`COMP_CTX_new'
/SDK/local/newlib/lib/libssl.a(ssl_lib.o): In function `SSL_CTX_load_verify_locations'
:
ssl_lib.c:(.text+0xd20): undefined reference to `X509_STORE_load_locations'
/SDK/local/newlib/lib/libssl.a(ssl_lib.o): In function 
`SSL_CTX_set_default_verify_paths':
ssl_lib.c:(.text+0xd44): undefined reference to `X509_STORE_set_default_paths'
/SDK/local/newlib/lib/libssl.a(ssl_lib.o): In function `ssl_clear_cipher_ctx':
ssl_lib.c:(.text+0xfec): undefined reference to 
`COMP_CTX_free'
ssl_lib.c:(.text+0x1004): undefined reference to `COMP_CTX_free'
/SDK/local/newlib/lib/libssl.a(ssl_lib.o): In function `SSL_set_rfd':
ssl_lib.c:(.text+0x45d4): undefined reference to 
`BIO_s_socket'
/SDK/local/newlib/lib/libssl.a(ssl_lib.o): In function `SSL_set_wfd'
:

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Libcurl and rtmp ??
Just can't stay away
Just can't stay away


See User information
@LiveForIt

Didn't read correctly the error output (just looked at it quickly). The undefined reference was in librtmp so what you need to do is put -lrtmp before -lssl and -lcrypto (having -lssl before -lcrypto was the correct order for these libs).

Go to top
Re: Libcurl and rtmp ??
Home away from home
Home away from home


See User information
Thanks that worked.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project