Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
108 user(s) are online (76 user(s) are browsing Forums)

Members: 0
Guests: 108

more...

Headlines

 
  Register To Post  

Using liboauth - unresolved externals?
Quite a regular
Quite a regular


See User information
Hi everybody,

I'm messing around with OAUTH at the moment - just to see if I can talk to Twitter's servers. However, as soon as I use an OAUTH function, I get a load of unresolved externals. The missing functions seem to be related to OpenSSL but even when I link with -lamisslauto, nothing changes.

How do I use liboauth, can anybody help?

Thanks if anyone can!

This is the first bit of the output (my program is called "Ribbet" :) )

5.Work:coding/Ribbetgcc main.-lamisslauto -loauth       
/SDK/local/newlib/lib/liboauth.a(liboauth_la-oauth.o): In function `oauth_gen_nonce':
/RAM Disk/liboauth-0.9.1/src/oauth.c:551: undefined reference to 
`RAND_bytes'
/RAM Disk/liboauth-0.9.1/src/oauth.c:555: undefined reference to `RAND_bytes'
/RAM Disk/liboauth-0.9.1/src/oauth.c:555undefined reference to `RAND_bytes'
/SDK/local/newlib/lib/liboauth.a(liboauth_la-hash.o): In function 
`oauth_body_hash_data':
/RAM Disk/liboauth-0.9.1/src/hash.c:422: undefined reference to `EVP_sha1'
/RAM Disk/liboauth-0.9.1/src/hash.c:423undefined reference to `EVP_MD_CTX_init'

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
Go to top
Re: Using liboauth - unresolved externals?
Just can't stay away
Just can't stay away


See User information
@Spirantho

First your order of link libraries is wrong. Libraries that depend upon other libraries should come before the libraries they depend upon on the command line as the compiler only links in those objects from libraries that are needed to resolve undefined references and objects/libraries are linked in the order they are specified.

Second you should probably be using these openssl libraries instead:
http://os4depot.net/index.php?functio ... brary/misc/libopenssl.lha

The AmiSSL OpenSSL is pretty ancient and unlikely to be updated any time soon.

Go to top
Re: Using liboauth - unresolved externals?
Just can't stay away
Just can't stay away


See User information
@Spirantho

What about the reply that I made to you on OS4coding ?

"For Qt ports who need ssl, I use that :
"-lssl -lcrypto"

Certainly not your need, but with luck...."

-lssl is for openssl.


Go to top
Re: Using liboauth - unresolved externals?
Quite a regular
Quite a regular


See User information
@zzd10h

Ah, yes, just saw that. Didn't get a notification for some reason.
No crypto lib I can find but I guess it's part of libssl.

Thanks for the help, will give it a try when I can!

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
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