This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX 11 porting error: PARSE ERROR in malloc.h
- From: "M. Lavasani" <mehdi dot lavasani at connectinternetsolutions dot com>
- To: stefan dot marquardt at hagebau dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 3 Mar 2003 16:21:38 +0000 (GMT)
- Subject: Re: HP-UX 11 porting error: PARSE ERROR in malloc.h
Hi
Undefine "STDC_HEADERS" in config.h. that may solve the problem.
__Mehdi
>
> Hello,
>
> i try to compile ntop under HP-UX 11 and get parsing error in the
> gcc-header files :
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include
> -I/usr/local/include -I
> /home/src/ntop-current/gdchart0.94c
> -I/home/src/ntop-current/gdchart0.94c/gd-1.8
> .3 -I/home/src/ntop-current/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -DHPUX -g
> -O2 -Ws
> hadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
> -Wnested-exter
> ns -fPIC -DHPUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wmissing-d
> eclarations -Wnested-externs -fPIC -MT webInterface.lo -MD -MP -MF
> .deps/webInte
> rface.Tpo -c webInterface.c -fPIC -DPIC -o .libs/webInterface.lo
> cc1: warning: changing search order for system directory
> "/usr/local/include"
> cc1: warning: as it has already been specified as a non-system directory
> In file included from webInterface.c:29:
> /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/malloc.h:80: parse
> error before '(' token
> /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/malloc.h:99: parse
> error before string constant
> /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/malloc.h:100:
> parse error before string constant
> /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/malloc.h:101:
> parse error before string constant
> webInterface.c:3311: warning: no previous prototype for `initWeb'
> *** Error exit code 1
>
> I took the gcc 3.1 (3.2 has the same problem) from hpux.asknet.de
>
> Why do i get errors in the header files delivered in the ported gcc ?
>
> S.Marquardt
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> www.mimesweeper.com
> **********************************************************************
>