[Expat-discuss] Problems compiling expat 1.95.8 on Solaris 8 platform

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Mon Jul 26 05:56:24 CEST 2004


Hi,

I am having troubles compiling Expat 1.95.8 on a Solaris 8 platform using gcc
3.4.1.  If I configure with the following options:

./configure --prefix=/public/data/asddgate --enable-static

And "make" there are no compilation errors but if I do a "make check" I get
the following errors:

gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H   -I./lib -I. -o tests/runtests.o -c tests/runtests.c
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H   -I./lib -I. -o tests/chardata.o -c tests/chardata.c
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H   -I./lib -I. -o tests/minicheck.o -c tests/minicheck.c
/bin/ksh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes
-W
strict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I.  -o
tests/run
tests tests/runtests.o tests/chardata.o tests/minicheck.o libexpat.la
tests/runtests
Expat version: expat_1.95.4
make: *** [check] Segmentation Fault (core dumped)

I noticed that the "configure" command couldn't find check.h.  This is
probably because check.h is in /public/data/asddgate/include/.  

I then configured using the following options:

CPPFLAGS="-I/public/data/asddgate/include" ./configure
--prefix=/public/data/asddgate --enable-static

And the configure command found check.h but when I did a make I got the
following errors:

/bin/ksh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
 -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
-I/public/data/asddgate
/include -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c
/bin/ksh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
 -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
-I/public/data/asddgate
/include -I./lib -I. -o lib/xmltok.lo -c lib/xmltok.c
/bin/ksh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
 -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
-I/public/data/asddgate
/include -I./lib -I. -o lib/xmlrole.lo -c lib/xmlrole.c
/bin/ksh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes
-W
strict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
-I/public/data/asddgate/in
clude -I./lib -I. -no-undefined -version-info 5:0:5 -rpath
/public/data/asddgate
/lib  -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H  -I/public/data/asddgate/include -I./lib -I. -o xmlwf/xmlwf.o -c
xm
lwf/xmlwf.c
xmlwf/xmlwf.c:24: error: parse error before "characterData"
xmlwf/xmlwf.c:25: warning: return type defaults to `int'
xmlwf/xmlwf.c:25: warning: no previous prototype for 'characterData'
xmlwf/xmlwf.c:117: error: parse error before "startElement"
xmlwf/xmlwf.c:118: warning: return type defaults to `int'
xmlwf/xmlwf.c:118: warning: no previous prototype for 'startElement'
xmlwf/xmlwf.c:141: error: parse error before "endElement"
xmlwf/xmlwf.c:142: warning: return type defaults to `int'
xmlwf/xmlwf.c:142: warning: no previous prototype for 'endElement'
xmlwf/xmlwf.c:163: error: parse error before "startElementNS"
xmlwf/xmlwf.c:164: warning: return type defaults to `int'
xmlwf/xmlwf.c:164: warning: no previous prototype for 'startElementNS'
xmlwf/xmlwf.c:212: error: parse error before "endElementNS"
xmlwf/xmlwf.c:213: warning: return type defaults to `int'
xmlwf/xmlwf.c:213: warning: no previous prototype for 'endElementNS'
xmlwf/xmlwf.c:231: error: parse error before "processingInstruction"
xmlwf/xmlwf.c:233: warning: return type defaults to `int'
xmlwf/xmlwf.c:233: warning: no previous prototype for 'processingInstruction'
xmlwf/xmlwf.c:247: error: parse error before "defaultCharacterData"
xmlwf/xmlwf.c:248: warning: return type defaults to `int'
xmlwf/xmlwf.c:248: warning: no previous prototype for 'defaultCharacterData'
xmlwf/xmlwf.c:253: error: parse error before "defaultStartElement"
xmlwf/xmlwf.c:255: warning: return type defaults to `int'
xmlwf/xmlwf.c:255: warning: no previous prototype for 'defaultStartElement'
xmlwf/xmlwf.c:260: error: parse error before "defaultEndElement"
xmlwf/xmlwf.c:261: warning: return type defaults to `int'
xmlwf/xmlwf.c:261: warning: no previous prototype for 'defaultEndElement'
xmlwf/xmlwf.c:266: error: parse error before "defaultProcessingInstruction"
xmlwf/xmlwf.c:268: warning: return type defaults to `int'
xmlwf/xmlwf.c:268: warning: no previous prototype for
'defaultProcessingInstruct
ion'
xmlwf/xmlwf.c:273: error: parse error before "nopCharacterData"
xmlwf/xmlwf.c:274: warning: return type defaults to `int'
xmlwf/xmlwf.c:274: warning: no previous prototype for 'nopCharacterData'
xmlwf/xmlwf.c:278: error: parse error before "nopStartElement"
xmlwf/xmlwf.c:279: warning: return type defaults to `int'
xmlwf/xmlwf.c:279: warning: no previous prototype for 'nopStartElement'
xmlwf/xmlwf.c:283: error: parse error before "nopEndElement"
xmlwf/xmlwf.c:284: warning: return type defaults to `int'
xmlwf/xmlwf.c:284: warning: no previous prototype for 'nopEndElement'
xmlwf/xmlwf.c:288: error: parse error before "nopProcessingInstruction"
xmlwf/xmlwf.c:290: warning: return type defaults to `int'
xmlwf/xmlwf.c:290: warning: no previous prototype for
'nopProcessingInstruction'
xmlwf/xmlwf.c:294: error: parse error before "markup"
xmlwf/xmlwf.c:295: warning: return type defaults to `int'
xmlwf/xmlwf.c:295: warning: no previous prototype for 'markup'
xmlwf/xmlwf.c:328: error: parse error before "metaStartElement"
xmlwf/xmlwf.c:330: warning: return type defaults to `int'
xmlwf/xmlwf.c:330: warning: no previous prototype for 'metaStartElement'
xmlwf/xmlwf.c:363: error: parse error before "metaEndElement"
xmlwf/xmlwf.c:364: warning: return type defaults to `int'
xmlwf/xmlwf.c:364: warning: no previous prototype for 'metaEndElement'
xmlwf/xmlwf.c:373: error: parse error before "metaProcessingInstruction"
xmlwf/xmlwf.c:375: warning: return type defaults to `int'
xmlwf/xmlwf.c:375: warning: no previous prototype for
'metaProcessingInstruction
'
xmlwf/xmlwf.c:386: error: parse error before "metaComment"
xmlwf/xmlwf.c:387: warning: return type defaults to `int'
xmlwf/xmlwf.c:387: warning: no previous prototype for 'metaComment'
xmlwf/xmlwf.c:398: error: parse error before "metaStartCdataSection"
xmlwf/xmlwf.c:399: warning: return type defaults to `int'
xmlwf/xmlwf.c:399: warning: no previous prototype for 'metaStartCdataSection'
xmlwf/xmlwf.c:408: error: parse error before "metaEndCdataSection"
xmlwf/xmlwf.c:409: warning: return type defaults to `int'
xmlwf/xmlwf.c:409: warning: no previous prototype for 'metaEndCdataSection'
xmlwf/xmlwf.c:418: error: parse error before "metaCharacterData"
xmlwf/xmlwf.c:419: warning: return type defaults to `int'
xmlwf/xmlwf.c:419: warning: no previous prototype for 'metaCharacterData'
xmlwf/xmlwf.c:430: error: parse error before "metaStartDoctypeDecl"
xmlwf/xmlwf.c:435: warning: return type defaults to `int'
xmlwf/xmlwf.c:435: warning: no previous prototype for 'metaStartDoctypeDecl'
xmlwf/xmlwf.c:444: error: parse error before "metaEndDoctypeDecl"
xmlwf/xmlwf.c:445: warning: return type defaults to `int'
xmlwf/xmlwf.c:445: warning: no previous prototype for 'metaEndDoctypeDecl'
xmlwf/xmlwf.c:454: error: parse error before "metaNotationDecl"
xmlwf/xmlwf.c:459: warning: return type defaults to `int'
xmlwf/xmlwf.c:459: warning: no previous prototype for 'metaNotationDecl'
xmlwf/xmlwf.c:476: error: parse error before "metaEntityDecl"
xmlwf/xmlwf.c:485: warning: return type defaults to `int'
xmlwf/xmlwf.c:485: warning: no previous prototype for 'metaEntityDecl'
xmlwf/xmlwf.c:520: error: parse error before "metaStartNamespaceDecl"
xmlwf/xmlwf.c:523: warning: return type defaults to `int'
xmlwf/xmlwf.c:523: warning: no previous prototype for
'metaStartNamespaceDecl'
xmlwf/xmlwf.c:539: error: parse error before "metaEndNamespaceDecl"
xmlwf/xmlwf.c:540: warning: return type defaults to `int'
xmlwf/xmlwf.c:540: warning: no previous prototype for 'metaEndNamespaceDecl'
xmlwf/xmlwf.c:550: error: parse error before "unknownEncodingConvert"
xmlwf/xmlwf.c:551: warning: return type defaults to `int'
xmlwf/xmlwf.c:551: warning: no previous prototype for
'unknownEncodingConvert'
xmlwf/xmlwf.c:556: error: parse error before "unknownEncoding"
xmlwf/xmlwf.c:557: warning: return type defaults to `int'
xmlwf/xmlwf.c:557: warning: no previous prototype for 'unknownEncoding'
xmlwf/xmlwf.c:592: error: parse error before "notStandalone"
xmlwf/xmlwf.c:593: warning: return type defaults to `int'
xmlwf/xmlwf.c:593: warning: no previous prototype for 'notStandalone'
xmlwf/xmlwf.c: In function `main':
xmlwf/xmlwf.c:764: warning: passing arg 2 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:764: warning: passing arg 3 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:765: warning: passing arg 2 of `XML_SetCharacterDataHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:766: warning: passing arg 2 of
`XML_SetProcessingInstructionHandle
r' from incompatible pointer type
xmlwf/xmlwf.c:794: warning: passing arg 2 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:794: warning: passing arg 3 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:795: warning: passing arg 2 of
`XML_SetProcessingInstructionHandle
r' from incompatible pointer type
xmlwf/xmlwf.c:796: warning: passing arg 2 of `XML_SetCommentHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:798: warning: passing arg 2 of `XML_SetCdataSectionHandler'
from i
ncompatible pointer type
xmlwf/xmlwf.c:798: warning: passing arg 3 of `XML_SetCdataSectionHandler'
from i
ncompatible pointer type
xmlwf/xmlwf.c:799: warning: passing arg 2 of `XML_SetCharacterDataHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:801: warning: passing arg 2 of `XML_SetDoctypeDeclHandler' from
in
compatible pointer type
xmlwf/xmlwf.c:801: warning: passing arg 3 of `XML_SetDoctypeDeclHandler' from
in
compatible pointer type
xmlwf/xmlwf.c:802: warning: passing arg 2 of `XML_SetEntityDeclHandler' from
inc
ompatible pointer type
xmlwf/xmlwf.c:803: warning: passing arg 2 of `XML_SetNotationDeclHandler'
from i
ncompatible pointer type
xmlwf/xmlwf.c:805: warning: passing arg 2 of `XML_SetNamespaceDeclHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:805: warning: passing arg 3 of `XML_SetNamespaceDeclHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:810: warning: passing arg 2 of `XML_SetDefaultHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:811: warning: passing arg 2 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:811: warning: passing arg 3 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:812: warning: passing arg 2 of `XML_SetCharacterDataHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:814: warning: passing arg 2 of
`XML_SetProcessingInstructionHandle
r' from incompatible pointer type
xmlwf/xmlwf.c:818: warning: passing arg 2 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:818: warning: passing arg 3 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:820: warning: passing arg 2 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:820: warning: passing arg 3 of `XML_SetElementHandler' from
incomp
atible pointer type
xmlwf/xmlwf.c:821: warning: passing arg 2 of `XML_SetCharacterDataHandler'
from
incompatible pointer type
xmlwf/xmlwf.c:823: warning: passing arg 2 of
`XML_SetProcessingInstructionHandle
r' from incompatible pointer type
make: *** [xmlwf/xmlwf.o] Error 1

Does anyone know how to fix this problem?

I also noticed that the configure command couldn't find stdint.h. (checking
for stdint.h... no).  I can't find stdint.h anywhare on my system.  Could
this be the problem?

Thanks in advance for any reply.


John


More information about the Expat-discuss mailing list