cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: HP-UX with bundled cc compile problems

From: Rohit Srivastava <rohit.sri_at_wipro.com>
Date: Tue, 22 Apr 2003 11:23:09 +0530

Hello,

I too faced lots of problems trying to compile with bundled C compiler.
I don't think it is feasible to compile libcURL without making many
changes (maybe you can try). The bundled C compiler does not even
support ANSI C declarations ! The "configure" which ran fine on your
system, doesn't really worked fine. That also uses the same compiler and
produces wrong configuration details.

I ended up in installing GCC for HP-UX, and using that to compile
libcURL.

I hope this helps !

Regards,
Rohit

-----Original Message-----
From: ope [mailto:ope557_at_yahoo.com]
Sent: Monday, April 21, 2003 11:25 PM
To: curl-users_at_lists.sourceforge.net
Subject: HP-UX with bundled cc compile problems

I am trying to build curl on HPUX 11 but am not
getting very far. Configure runs fine and everything
looks good but when I run make I get the following
errors right away:

        make all-am
        source='file.c' object='file.lo' libtool=yes \
        depfile='.deps/file.Plo'
tmpdepfile='.deps/file.TPlo' \
        depmode=hp /bin/sh ../depcomp \
        /bin/sh ../libtool --mode=compile cc
-DHAVE_CONFIG_H -I../include -I../lib -I../lib -g
-c -o file.lo `test -f 'file.c' || echo './'`file.c
cc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -g
-c file.c -Wp,-M.deps/file.TPlo
(Bundled) cc: warning 480: The -g option is available
only with the C/ANSI C product; ignored.
(Bundled) cc: "setup.h", line 155: error 1000:
Unexpected symbol: "size_t".
(Bundled) cc: "setup.h", line 157: error 1000:
Unexpected symbol: "*".
(Bundled) cc: "setup.h", line 154: error 1705:
Function prototypes are an ANSI feature.
(Bundled) cc: "setup.h", line 155: error 1705:
Function prototypes are an ANSI feature.
(Bundled) cc: "setup.h", line 155: error 1573: Type of
"n" is undefined due to an illegal declaration.
(Bundled) cc: "setup.h", line 157: error 1506:
Parameters allowed in function definition only.
(Bundled) cc: "../include/curl/curl.h", line 104:
error 1000: Unexpected symbol: "size_t".
(Bundled) cc: "../include/curl/curl.h", line 105:
.....

I edited the Makefiles and took out the -g from CFLAGS
but I still the same messages. Has anyone been able
to get curl to compile using the HP bundled c
compiler? Is there an option I can add to configure?
I know that the HP bundled c compiler is brutal but I
don't have much choice right now.

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-22