cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl compilation on solaris with Sun C compiler

From: Amit Kumar <amit.kumar.iitr_at_gmail.com>
Date: Tue, 8 Jul 2008 13:27:05 +0530

> Hello
>
> My compiler version is
> cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
>
> My compilation errors are
> curl/lib/cookie.h", line 45: syntax error before or at: bool
> lib/cookie.h", line 51: syntax error before or at: bool
> curl/lib/cookie.h", line 60: syntax error before or at: bool
> curl/lib/cookie.h", line 62: syntax error before or at: bool
> curl/lib/cookie.h", line 80: incomplete struct/union/enum SessionHandle:
> <unnamed>
> lib/cookie.h", line 87: syntax error before or at: bool
> curl/lib/cookie.h", line 88: member cannot be function: Curl_cookie_add
> curl/lib/cookie.h", line 91: syntax error before or at: bool
> curl/lib/cookie.h", line 91: member cannot be function: Curl_cookie_init
> curl/lib/cookie.h", line 92: syntax error before or at: bool
> curl/lib/cookie.h", line 92: member cannot be function: Curl_cookie_getlist
> curl/lib/cookie.h", line 93: member cannot be function:
> Curl_cookie_freelist
> curl/lib/cookie.h", line 94: member cannot be function:
> Curl_cookie_clearall
> curl/lib/cookie.h", line 95: member cannot be function:
> Curl_cookie_clearsess
>
> I have listed few of the errors.

> I am also pasting some portion of config.log which I ran before starting
> the compilation.
>
onfigure:2926: checking for gcc
configure:2956: result: no
configure:3023: checking for cc
configure:3044: found /usr/bin/cc
configure:3067: result: cc
configure:3191: checking for C compiler version
configure:3198: cc --version >&5
cc: Warning: option -- passed to ld
usage: cc [ options] files. Use 'cc -flags' for details
configure:3201: $? = 1
configure:3208: cc -v >&5
usage: cc [ options] files. Use 'cc -flags' for details
configure:3211: $? = 1
configure:3218: cc -V >&5
cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
usage: cc [ options] files. Use 'cc -flags' for details
configure:3221: $? = 1
configure:3244: checking for C compiler default output file name
configure:3271: cc conftest.c >&5
configure:3274: $? = 0
configure:3312: result: a.out
configure:3329: checking whether the C compiler works
configure:3339: ./a.out
configure:3342: $? = 0
configure:3359: result: yes
configure:3366: checking whether we are cross compiling
configure:3368: result: no
configure:3371: checking for suffix of executables
configure:3378: cc -o conftest conftest.c >&5
configure:3381: $? = 0
configure:3405: result:
configure:3411: checking for suffix of object files
configure:3437: cc -c conftest.c >&5
configure:3440: $? = 0
configure:3463: result: o
configure:3467: checking whether we are using the GNU C compiler
configure:3496: cc -c conftest.c >&5
"conftest.c", line 16: undefined symbol: choke
"conftest.c", line 16: syntax error before or at: me
cc: acomp failed for conftest.c
configure:3502: $? = 2
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list =>
http://curl.haxx.se/mail/"
| #define PACKAGE "curl"
| #define VERSION "7.16.3"
| #define OS "i386-pc-solaris2.10"
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:3519: result: no
configure:3524: checking whether cc accepts -g
configure:3554: cc -c -g conftest.c >&5
configure:3560: $? = 0
configure:3659: result: yes
configure:3676: checking for cc option to accept ISO C89
configure:3750: cc -c -g conftest.c >&5
"conftest.c", line 59: warning: statement not reached
configure:3756: $? = 0
configure:3779: result: none needed
configure:3799: checking dependency style of cc
configure:3889: result: none
configure:3912: checking how to run the C preprocessor
configure:3952: cc -E conftest.c
configure:3958: $? = 0
configure:3989: cc -E conftest.c
"conftest.c", line 11: cannot find include file: <ac_nonexistent.h>
cc: acomp failed for conftest.c
configure:3995: $? = 2

>
> Regards
> Amit
>
>
> On Tue, Jul 8, 2008 at 12:49 PM, Dan Fandrich <dan_at_coneharvesters.com>
> wrote:
>
>> On Tue, Jul 08, 2008 at 12:29:43PM +0530, Amit Kumar wrote:
>> > Can I compile curl code on solaris using Sun C compiler.
>>
>> curl is written in highly portable C code. You should be able to compile
>> it just about anywhere with a POSIX networking stack and a C89 compiler.
>>
>> > I am getting compilation error while compiling the curl source code.
>>
>> If you provide more details, we can provide more help.
>>
>> >>> Dan
>> --
>> http://www.MoveAnnouncer.com The web change of address
>> service
>> Let webmasters know that your web site has moved
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
>> FAQ: http://curl.haxx.se/docs/faq.html
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-08