I'm having problems specifying proper curl libs to make oauth now.
I've configured using the following command (please let me know if I
did any overkill):
./configure CFLAGS="-arch i386" LDFLAGS=-L`cd ../palm-i386/lib/; pwd`
CPPFLAGS=-I`cd ../palm-i386/include/; pwd` --prefix=`cd ../palm-i386/;
pwd` --build=i386 --host=i386 --disable-shared --disable-nss
CURL_CFLAGS="-arch i386 -I"`cdmcheath:liboauth-0.8.6 hborders$
./configure CFLAGS="-arch i386" LDFLAGS=-L`cd ../palm-i386/lib/; pwd`
CPPFLAGS=-I`cd ../palm-i386/include/; pwd` --prefix=`cd ../palm-i386/;
pwd` --build=i386 --host=i386 --disable-shared --disable-nss
CURL_CFLAGS="-arch i386 -I"`cd ../palm-i386/include/; pwd`
CURL_LIBS=-L`cd ../palm-i386/lib/; pwd` --disable-curl
--enable-libcurl
then just ran make and got the following error:
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src
-I/Users/hborders/xcode-workspaces/personal/pdk-samples/simple/mac/palm-i386/include
-Wall -Wall -arch i386 -MT oauthexample-oauthexample.o -MD -MP -MF
.deps/oauthexample-oauthexample.Tpo -c -o oauthexample-oauthexample.o
`test -f 'oauthexample.c' || echo './'`oauthexample.c
mv -f .deps/oauthexample-oauthexample.Tpo .deps/oauthexample-oauthexample.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wall -arch i386
-L/Users/hborders/xcode-workspaces/personal/pdk-samples/simple/mac/palm-i386/lib
-o oauthexample oauthexample-oauthexample.o ../src/liboauth.la -lssl
libtool: link: gcc -Wall -Wall -arch i386 -o oauthexample
oauthexample-oauthexample.o
-L/Users/hborders/xcode-workspaces/personal/pdk-samples/simple/mac/palm-i386/lib
../src/.libs/liboauth.a -lm -lcrypto -lssl
Undefined symbols:
"_curl_easy_perform", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
"_curl_easy_init", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
"_curl_easy_setopt", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
"_curl_easy_cleanup", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
"_curl_slist_free_all", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
"_curl_slist_append", referenced from:
_oauth_curl_post in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_get in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_post_file in liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
_oauth_curl_send_data_with_callback in
liboauth.a(liboauth_la-oauth_http.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [oauthexample] Error 1
make: *** [all-recursive] Error 1
I have libcurl.a in
/Users/hborders/xcode-workspaces/personal/pdk-samples/simple/mac/palm-i386/lib.
I can see that that directory is listed in the first -L entry, so I
don't know why it wouldn't be found. My only guess is that the
dynamic libs are being searched first in all search path and are
getting found in /opt/local/lib. Ideally, I wouldn't even have
/opt/local/lib/ on the search path. I'd prefer to both take
/opt/local/lib off the search path and tell the linker to prefer
static libs over dylibs.
If this is too noobish, please understand that I've spent about 3
hours trying to sort this out, and I greatly appreciate your help.
Thanks.
-Heath Borders
[email protected]
Twitter: heathborders
http://heath-tech.blogspot.com
On Tue, Jun 1, 2010 at 10:41 AM, Heath Borders <[email protected]> wrote:
> I got libz and libssl compiled for i386 last night. This is the
> closest thing to an x-compile I've done so far. Unfortunately,
> libcurl is a private library on the pre, so I can't rely on it. I'm
> going to try building libcurl for i386 tonight, and then hopefully I
> can compile liboauth and get my twitter example working.
>
> I will certainly keep you posted. Hopefully, I can be a success story
> someday. :)
>
> -Heath Borders
> [email protected]
> Twitter: heathborders
> http://heath-tech.blogspot.com
>
>
>
> On Tue, Jun 1, 2010 at 9:56 AM, Robin Gareus <[email protected]> wrote:
>> Hi Heath,
>>
>> Oh. libc, libm, and libpthread is very minimalistic. You may need libz
>> for OpenSSL. I don't know how easy it is these days to get OpenSSL or
>> NSS x-compiled. I only remember that it took me a while to figure out
>> how to x-compile OpenSSL with MinGW a few years ago..
>>
>> If you stumble over portable MIT/X11 licensed code for calculating
>> RSA-SHA1 and HMAC-SHA1 signatures, I'll be happy to plug that into
>> src/hash.c. Using NSS or OpenSSL is a bit overkill.
>>
>> There's no other dependency; curl or libcurl is optional; but I dare say
>> you want to have it because it's a very convenient way perform HTTP(s)
>> requests. According to http://curl.haxx.se/docs/companies.html it is
>> available on Palm.
>>
>> As for static libs, you may know that you can use
>> './configure --enable-static --disable-shared'
>>
>> Let me know how it goes. good luck,
>> robin
>>
>> On 06/01/2010 03:42 PM, Heath Borders wrote:
>>> Thanks!
>>>
>>> I'm eventually trying to build this for my palm pre, which has only
>>> libc, libm, and libpthread available. So, I'm having to build all
>>> dependencies as static libs. I'm just starting with i386 because the
>>> pre simulation libs are in i386. Eventually, everything will have to
>>> be compiled for cortex-a8.
>>>
>>>
>>>
>>> -Heath Borders
>>> [email protected]
>>> Twitter: heathborders
>>> http://heath-tech.blogspot.com
>>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.