[Expat-bugs] [ expat-Bugs-477039 ] Compile Error on HP-UX 10_20

SourceForge.net noreply at sourceforge.net
Thu Apr 17 16:09:13 EDT 2003


Bugs item #477039, was opened at 2001-10-31 17:56
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=477039&group_id=10127

Category: Build control
Group: None
Status: Closed
Resolution: Out of Date
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: Compile Error on HP-UX 10_20

Initial Comment:
Not sure if this is a bug or just my lack of 
understanding.

Does anyone have any idea why this refuses to compile ?


$ ./configure --prefix=/opt/psfm/batch/scripts/expat
loading cache ./config.cache
checking host system type... hppa2.0-hp-hpux10.20
checking build system type... hppa2.0-hp-hpux10.20
checking for ranlib... (cached) ranlib
checking for gcc... (cached) cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-
compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for non-GNU ld... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... 
(cached) no
checking for BSD-compatible nm... 
(cached) /usr/bin/nm -p
checking whether ln -s works... (cached) yes
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... +Z
checking if cc PIC flag +Z works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc static flag -Wl,-a -Wl,archive 
works... -Wl,-a -Wl,archive
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports 
shared libraries... yes
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into 
programs... relink
checking for /usr/bin/ld option to reload object 
files... -r
checking dynamic linker characteristics... hpux10.20 
dld.sl
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-
compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for a BSD compatible install... 
(cached) /opt/imake/bin/install -c
checking how to run the C preprocessor... (cached) cc -
E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether byte ordering is bigendian... 
(cached) yes
checking for working const... (cached) no
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for 8-bit clean memcmp... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for memmove... (cached) yes
checking for bcopy... (cached) yes
creating ./config.status
creating Makefile
creating lib/Makefile
creating lib/expat.h
creating xmlwf/Makefile
creating examples/Makefile
creating config.h
config.h is unchanged
$ make
$ make install
        for dir in lib xmlwf; do \
                (cd $dir && make install); \
        done
        /bin/sh ../libtool --mode=compile cc -
DHAVE_CONFIG_H -DPACKAGE='"expat"'
 -DVERSION='"expat_1.95.2"' -I. -I. -I..  -g -c 
xmlparse.c
rm -f .libs/xmlparse.lo
cc -DHAVE_CONFIG_H -DPACKAGE=\expat\ -
DVERSION=\expat_1.95.2\ -I. -I. -I.. -
g -c xmlparse.c  +Z -DPIC -o .libs/xmlparse.lo
cc: "expat.h", line 80: error 1000: Unexpected 
symbol: "XML_Char".
cc: "expat.h", line 81: error 1000: Unexpected 
symbol: "*".
cc: error 2017: Cannot recover from earlier errors, 
terminating.
*** Error exit code 1

Stop.
        cc -g -I../lib -c xmlwf.c
cpp: "xmltchar.h", line 3: warning 2013: Unknown 
preprocessing directive.
cc: "../lib/expat.h", line 80: warning 5: "const" will 
become a keyword.
cc: "../lib/expat.h", line 80: error 1000: Unexpected 
symbol: "const".
cc: "../lib/expat.h", line 81: error 1000: Unexpected 
symbol: "*".
cc: error 2017: Cannot recover from earlier errors, 
terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
$


Regards,

Paul
__________________________________________________
Technical Designer
Peoplesoft Operations
IT at AMP
Level 3, 151 Clarence St, Sydney 2000
Ph: +61-2-82962621
Email: paul_rashleigh at amp.com.au


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-04-17 15:09

Message:
Logged In: NO 

I received the same error.  Its not a missing header file, 
because XML_Char is being defined as a typedef only a few 
lines above in the header file where the error is being 
discovered.

Here is what I found.  For some weird reason, the compiler is 
expecting the function headers to be in the old style form, i.e.:

type function_name (var1, var2, var3, ...)
type1 var1;
type2 var2;
type3 var3;

When I changed the headers in expat.h, it suddenly got past 
each one that I changed, but now its getting more errors 
apparently of a different nature.

I know it sounds crazy, but there it is.  Email is 
mozart at ryanspc.com

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-04-19 15:00

Message:
Logged In: YES 
user_id=3066

The way the includes are set up has changed in the CVS
version of Expat.  Please try again using either the CVS
version or the upcoming 1.95.3 release.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-02-26 10:18

Message:
Logged In: NO 

Anything been done on this? I'm also getting the same 
problem on HP-UX 10.20 using the aCC compiler

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-02-06 12:27

Message:
Logged In: NO 

been able to compile it with gmake and gcc on HPUX 10.20 
800 serie.. (version 2.9x)..

----------------------------------------------------------------------

Comment By: Weixiong He (weixionghe)
Date: 2002-01-15 11:03

Message:
Logged In: YES 
user_id=424747

It seems to me that the xmldef.h is missing from the lib 
directory. Any ideas? Thanks.

Weixiong

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-01-12 21:49

Message:
Logged In: NO 

The error appears to indicate that a needed include file is
not being included properly.  XML_Char is a #define.  Check
the -I (Uppercase i) options.  Sometimes a space is allowed
other times is not.  I have seen this problem with the -L
options some loaders also. (space required/not allowed).  
There may be specific requirements for the "C" compiler that
is actually being used.  Also, make sure you have a recent
version of libtools.

----------------------------------------------------------------------

Comment By: Weixiong He (weixionghe)
Date: 2002-01-11 09:14

Message:
Logged In: YES 
user_id=424747

I'm doing the exact same installation as Paul, and I'm 
getting the exact same error messages as Paul's. Could 
anyone help us with it? Please!!! Thank you.

Weixiong He

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=477039&group_id=10127



More information about the Expat-bugs mailing list