[Expat-bugs] [ expat-Bugs-1033923 ] building expat 1.95.8 on Solaris using Sun's compiler

SourceForge.net noreply at sourceforge.net
Fri Jan 28 05:49:58 CET 2005


Bugs item #1033923, was opened at 2004-09-24 05:46
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1033923&group_id=10127

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Dimitri Papadopoulos (papadopo)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: building expat 1.95.8 on Solaris using Sun's compiler

Initial Comment:
Hi,

I'm building expat 1.95.8 on Solaris 8 using the Sun
ONE Studio 7 compiler.

The build succeeds, although I see some warnings that
need to be fixed:
"lib/xmlparse.c", line 1572: warning: enum type
mismatch: op "="
"lib/xmlparse.c", line 1578: warning: enum type
mismatch: op "="
"lib/xmlparse.c", line 1586: warning: enum type
mismatch: op "="
"lib/xmlparse.c", line 1719: warning: enum type
mismatch: op "="
"lib/xmlparse.c", line 1725: warning: enum type
mismatch: op "="
"lib/xmlparse.c", line 1733: warning: enum type
mismatch: op "="

The problem is that variable "result" has type
"XML_Error" while the constants in the right part of
the "=" operator have type "XML_Status".


Otherwise I can confirm bug #1000112 where
expat_external.h is not installed.


Finally 'make run-xmltest' fails. Here is the complete log:

wget --output-document=tests/xmlts.zip         http://www.w3.org/XML/Test/xmlts20020606.zip
--11:30:34--  http://www.w3.org/XML/Test/xmlts20020606.zip
           => `tests/xmlts.zip'
Resolving www.w3.org... 128.30.52.25, 133.27.228.207,
18.7.14.127, ...
Connecting to www.w3.org[128.30.52.25]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,551,683 [application/zip]

100%[====================================>] 1,551,683 
  195.26K/s    ETA 00:00

11:30:43 (181.12 KB/s) - `tests/xmlts.zip' saved
[1551683/1551683]

cd tests && unzip -q xmlts.zip
tests/xmltest.sh
tests/xmltest.sh:
/tmp/expat-1.95.8/tests/XML-Test-Suite/xmlconf/ibm/valid/P*/:
does not exist
gmake: *** [run-xmltest] Error 1


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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2005-01-27 23:49

Message:
Logged In: YES 
user_id=3066

This seems fixed to me, and no one has complained about it
using the CVS version of Expat.

If there's any further problem with this in the CVS version
or the coming Expat 1.95.9, please file a new bug report
with detailed information on the error and the environment
the test is run in.


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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2004-09-29 22:36

Message:
Logged In: YES 
user_id=3066

I've modified the script to address the shell portability
problems; if it's possible to test the CVS version, please
do so and report your results.

tests/xmltest.sh  1.4


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

Comment By: Dimitri Papadopoulos (papadopo)
Date: 2004-09-27 06:05

Message:
Logged In: YES 
user_id=52414

The problem is with the following code:

##########################
# well-formed test cases #
##########################

cd "$TS/xmlconf"
for xmldir in ibm/valid/P*/               ibm/invalid/P*/               xmltest/valid/ext-sa/               xmltest/valid/not-sa/               xmltest/invalid/               xmltest/invalid/not-sa/               xmltest/valid/sa/               sun/valid/               sun/invalid/ ; do


Indeed the directories are there:
	$ ls -d tests/XML-Test-Suite/xmlconf/ibm/valid/P*/
	tests/XML-Test-Suite/xmlconf/ibm/valid/P01/
	[...]
	tests/XML-Test-Suite/xmlconf/ibm/valid/P89/
	$ 
but the "for" loop should be written as:
	for xmldir in ibm/valid/P* 	              ibm/invalid/P* 	              xmltest/valid/ext-sa 	              xmltest/valid/not-sa 	              xmltest/invalid 	              xmltest/invalid/not-sa 	              xmltest/valid/sa 	              sun/valid 	              sun/invalid ; do
instead of:
	for xmldir in ibm/valid/P*/ 	              ibm/invalid/P*/ 	              xmltest/valid/ext-sa/ 	              xmltest/valid/not-sa/ 	              xmltest/invalid/ 	              xmltest/invalid/not-sa/ 	              xmltest/valid/sa/ 	              sun/valid/ 	              sun/invalid/ ; do
The trailing "/" is wrong, it just happens to work under bash.


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

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-09-24 11:03

Message:
Logged In: YES 
user_id=290026

This may have to do with slight differences in how
shell scripts work on different platforms. 
I'll assign this to Fred, as he is more knowledgeable on Unix.

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

Comment By: Dimitri Papadopoulos (papadopo)
Date: 2004-09-24 09:51

Message:
Logged In: YES 
user_id=52414

The directories seem to be there and wget seems to have
downloaded xmlts20020606.zip.

It rather looks like a bug in tests/xmltest.sh.


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

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-09-24 09:24

Message:
Logged In: YES 
user_id=290026

You may be right - I wasn't aware that the XML_Test-Suite
gets downloaded. Can you find  the downloaded directories?
Maybe it has changed - the test scripts are only tested
with a specific release of the test suite.

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

Comment By: Dimitri Papadopoulos (papadopo)
Date: 2004-09-24 09:14

Message:
Logged In: YES 
user_id=52414

No, I haven't installed XML-Test-Suite manually.

Isn't it supposed to be downloaded and installed
automatically? It does seem to be downloaded automatically,
using wget. See log.


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

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-09-24 09:00

Message:
Logged In: YES 
user_id=290026

I think the warning is fixed in CVS. 
For running the tests - did you download and install the
XML-Test-Suite?

Karl

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

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


More information about the Expat-bugs mailing list