On 05/31/2010 03:10 AM, Robin Gareus wrote: > On 05/31/2010 01:31 AM, Heath wrote: >> I ran configure with --prefix=`pwd` (I'm trying to embed oauth onto my >> palm pre, and I didn't want to add it to my general system yet) and I >> got the following compiler error on Mac OSX 10.6.3: >> >> mcheath:liboauth-0.8.5 hborders$ make >> Making all in src >> make all-am >> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H - >> I. -Wall -g -O2 -MT liboauth_la-oauth.lo -MD -MP -MF .deps/ >> liboauth_la-oauth.Tpo -c -o liboauth_la-oauth.lo `test -f 'oauth.c' || >> echo './'`oauth.c >> libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT >> liboauth_la-oauth.lo -MD -MP -MF .deps/liboauth_la-oauth.Tpo -c >> oauth.c -fno-common -DPIC -o .libs/liboauth_la-oauth.o >> In file included from oauth.c:43: >> xmalloc.h:12: error: expected declaration specifiers or ‘...’ before >> numeric constant >> xmalloc.h:12: error: expected declaration specifiers or ‘...’ before >> ‘__builtin_object_size’ >> xmalloc.h:12: warning: conflicting types for built-in function >> ‘__builtin___snprintf_chk’ >> make[2]: *** [liboauth_la-oauth.lo] Error 1 >> make[1]: *** [all] Error 2 >> make: *** [all-recursive] Error 1 >> >> I commented out line 12 in xmalloc.h and everything compiled fine. >> >> Is this a bug? Is this even the right place to post this issue? > not really and yes. > > It's some incompatibility between Xcode and POSIX-C99. > I'll have a look to resolve the issue. Thanks for reporting this.
OK, the problem got resolved in liboauth-0.8.6. I ran into a minor issue, OSX does not provide pkgconfig files for it's curl library. CURL_CFLAGS="-I/usr/include/curl" CURL_LIBS="-lcurl" \ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/ \ ./configure or alternatively './configure --disable-libcurl' work fine. FWIW: a universal-dylib can be compiled with: CFLAGS="-arch i386 -arch ppc -arch x86_64" \ CURL_CFLAGS="-I/usr/include/curl" CURL_LIBS="-lcurl" \ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/ \ ./configure --disable-dependency-tracking > Cheers! > robin > >> Thanks. >> -Heath >> > -- You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to oa...@googlegroups.com. To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/oauth?hl=en.