[Expat-discuss] Problems compiling expat 1.95.7 on Solaris 8 with gcc 3.4.1

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Thu Jul 22 07:12:51 CEST 2004


Hi,

I'm trying to compile expat1.95.7 on a Solaris 8 platform using gcc 3.4.1.  I
configure as follows:

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

But when I do a make or a PATH=/usr/ccs/bin:$PATH make I get many warnings as
follows:

/bin/ksh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
 -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xml
parse.lo -c lib/xmlparse.c
In file included from lib/xmlparse.c:20:
lib/expat.h:216: warning: `cdecl' attribute directive ignored
lib/expat.h:220: warning: `cdecl' attribute directive ignored
lib/expat.h:236: warning: `cdecl' attribute directive ignored
lib/expat.h:240: warning: `cdecl' attribute directive ignored
lib/expat.h:253: warning: `cdecl' attribute directive ignored
...
lib/xmlparse.c:885: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:912: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:933: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:1074: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:1115: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:1121: warning: `cdecl' attribute directive ignored
lib/xmlparse.c:1135: warning: `cdecl' attribute directive ignored
...
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H   -I./lib -I. -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c
In file included from xmlwf/xmlwf.c:10:
./lib/expat.h:216: warning: `cdecl' attribute directive ignored
./lib/expat.h:220: warning: `cdecl' attribute directive ignored
./lib/expat.h:236: warning: `cdecl' attribute directive ignored
./lib/expat.h:240: warning: `cdecl' attribute directive ignored
...
xmlwf/xmlwf.c:551: warning: `cdecl' attribute directive ignored
xmlwf/xmlwf.c:557: warning: `cdecl' attribute directive ignored
xmlwf/xmlwf.c:593: warning: `cdecl' attribute directive ignored
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EX
PAT_CONFIG_H   -I./lib -I. -o xmlwf/xmlfile.o -c xmlwf/xmlfile.c
In file included from xmlwf/xmlfile.c:17:
./lib/expat.h:216: warning: `cdecl' attribute directive ignored
./lib/expat.h:220: warning: `cdecl' attribute directive ignored
./lib/expat.h:236: warning: `cdecl' attribute directive ignored
./lib/expat.h:240: warning: `cdecl' attribute directive ignored
./lib/expat.h:253: warning: `cdecl' attribute directive ignored
...

If I do a make check I get the following :

...
./lib/expat.h:951: warning: `cdecl' attribute directive ignored
./lib/expat.h:963: warning: `cdecl' attribute directive ignored
./lib/expat.h:985: warning: `cdecl' attribute directive ignored
/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 libexpat.la -lcheck
tests/runtests
Expat version: expat_1.95.4
Running suite(s): basic
68%: Checks: 47, Failures: 13, Errors: 2
tests/runtests.c:358:E:basic tests: (after this point) Received signal 11
tests/runtests.c:310:F:basic tests:
    not well-formed (invalid token) (line 1, offset 5)
    reported from tests/runtests.c, line 310
tests/runtests.c:413:F:basic tests: expected 4 lines, saw 7
tests/runtests.c:430:F:basic tests: expected 11 columns, saw 22
tests/runtests.c:751:F:basic tests:
    undefined entity (line 3, offset 0)
    reported from tests/runtests.c, line 751
tests/runtests.c:807:F:basic tests:
    undefined entity (line 2, offset 5)
    reported from tests/runtests.c, line 807
tests/runtests.c:892:F:basic tests:
    undefined entity (line 3, offset 5)
    reported from tests/runtests.c, line 892
tests/chardata.c:124:F:basic tests: wrong number of data characters: got 175,
ex
pected 13
tests/runtests.c:1125:E:XML namespaces: (after this point) Received signal 11
tests/runtests.c:1203:F:XML namespaces: Did not report re-setting namespace
URI
with prefix to ''.
tests/runtests.c:1216:F:XML namespaces: Did not report setting namespace URI
wit
h prefix to ''.
tests/runtests.c:1233:F:XML namespaces: Didn't report attr default setting NS
w/
 prefix to ''.
tests/runtests.c:1281:F:XML namespaces: did not report multiple attributes
with
same URI+name
tests/runtests.c:1291:F:XML namespaces: did not report unbound prefix on
attribu
te
tests/runtests.c:1301:F:XML namespaces: did not report unbound prefix on
element
make: *** [check] Error 1


Has anyone had this problem or can anyone help me fix this problem?

Thanks.


John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/ 
john.hockaday at ga.gov.au


More information about the Expat-discuss mailing list