I'm trying to build the latest tdom from its cvs and tcl 8.5
from its cvs. I'm seeing some peculiar things. Again, since I don't
know of a better place to report problems or observations, I'll report
them here.
(Platform: SPARC Solaris 9, using Sun's C compiler, and tdom with
configure options \"'--prefix=/projects/sprs_lwv/tcl85'
'--enable-shared' '--enable-symbols' '--enable-stubs' '--enable-64bit'
'--disable-tdomalloc' '--enable-dtd' '--enable-ns' 'CC=cc'\"
)
1. I am seeing this warning
cc -DPACKAGE_NAME=\"tdom\" -DPACKAGE_TARNAME=\"tdom\"
-DPACKAGE_VERSION=\"0.8.1\
" -DPACKAGE_STRING=\"tdom\ 0.8.1\" -DPACKAGE_BUGREPORT=\"\"
-DSTDC_HEADERS=1 -DH
AVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE
_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1
-DWORDS_BIG
ENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_MEMMOVE=1
-DHAVE_BCOPY=1
-DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-D_THREAD_SAFE=
1 -DTCL_THREADS=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-DTCL_WIDE_INT_IS_
LONG=1 -DUSE_TCL_STUBS=1 -DXML_DTD=1 -DXML_NS=1
-DTDOM_NO_UNKNOWN_CMD=1 -DUSE_NO
RMAL_ALLOCATOR=1 -I../generic -I../expat
-I"/vol/tclsrcsol/tcl85/tcl/generic"
-xarch=v9 -g -KPIC -c `echo ../expat/xmlparse.c` -o xmlparse.o
"../expat/xmlparse.c", line 1485: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1489: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1492: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1524: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1572: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1578: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1586: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1719: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1725: warning: enum type mismatch: op "="
"../expat/xmlparse.c", line 1733: warning: enum type mismatch: op "="
2. I next see this warning
cc -DPACKAGE_NAME=\"tdom\" -DPACKAGE_TARNAME=\"tdom\"
-DPACKAGE_VERSION=\"0.8.1\
" -DPACKAGE_STRING=\"tdom\ 0.8.1\" -DPACKAGE_BUGREPORT=\"\"
-DSTDC_HEADERS=1 -DH
AVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE
_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1
-DWORDS_BIG
ENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_MEMMOVE=1
-DHAVE_BCOPY=1
-DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-D_THREAD_SAFE=
1 -DTCL_THREADS=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-DTCL_WIDE_INT_IS_
LONG=1 -DUSE_TCL_STUBS=1 -DXML_DTD=1 -DXML_NS=1
-DTDOM_NO_UNKNOWN_CMD=1 -DUSE_NO
RMAL_ALLOCATOR=1 -I../generic -I../expat
-I"/vol/tclsrcsol/tcl85/tcl/generic"
-xarch=v9 -g -KPIC -c `echo ../generic/dom.c` -o dom.o
"../generic/dom.c", line 1817: warning: argument #3 is incompatible
with prototy
pe:
prototype: pointer to int : "unknown", line 0
argument : pointer to unsigned long
"../generic/dom.c", line 2111: warning: argument #2 is incompatible
with prototy
pe:
prototype: pointer to int : "unknown", line 0
argument : pointer to unsigned long
3. I then see this warning:
cc -DPACKAGE_NAME=\"tdom\" -DPACKAGE_TARNAME=\"tdom\"
-DPACKAGE_VERSION=\"0.8.1\
" -DPACKAGE_STRING=\"tdom\ 0.8.1\" -DPACKAGE_BUGREPORT=\"\"
-DSTDC_HEADERS=1 -DH
AVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE
_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1
-DWORDS_BIG
ENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_MEMMOVE=1
-DHAVE_BCOPY=1
-DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-D_THREAD_SAFE=
1 -DTCL_THREADS=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
-DTCL_WIDE_INT_IS_
LONG=1 -DUSE_TCL_STUBS=1 -DXML_DTD=1 -DXML_NS=1
-DTDOM_NO_UNKNOWN_CMD=1 -DUSE_NO
RMAL_ALLOCATOR=1 -I../generic -I../expat
-I"/vol/tclsrcsol/tcl85/tcl/generic"
-xarch=v9 -g -KPIC -c `echo ../generic/tdomStubInit.c` -o
tdomStubInit.o
"../generic/tdomStubInit.c", line 27: warning: initialization type
mismatch
4. The code all compiles and a library is built. The test suite shows
these 21 failures:
dom.test
==== dom-2.10 parse method: -paramentityparsing default is 'always' FAILED
==== Contents of test case:
set doc [dom parse -externalentitycommand extRefResolver {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
<root/>
}]
set root [$doc documentElement]
set result [$root @lang]
$doc delete
set result
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: The -externalentitycommand script has to return a Tcl
list with
3 elements.
Syntax: {string|channel|filename, <baseurl>, <data>}
while executing
"dom parse -externalentitycommand extRefResolver {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
<root/>
}"
invoked from within
"set doc [dom parse -externalentitycommand extRefResolver {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
<root/>
}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== dom-2.10 FAILED
==== dom-2.11 parse method: explicit -paramentityparsing always FAILED
==== Contents of test case:
set doc [dom parse -externalentitycommand extRefResolver
-paramentityparsin
g always {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
<root/>
}]
set root [$doc documentElement]
set result [$root @lang]
$doc delete
set result
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: The -externalentitycommand script has to return a Tcl
list with
3 elements.
Syntax: {string|channel|filename, <baseurl>, <data>}
while executing
"dom parse -externalentitycommand extRefResolver -paramentityparsing
always {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
<roo..."
invoked from within
"set doc [dom parse -externalentitycommand extRefResolver
-paramentityparsing a
lways {
<!DOCTYPE root PUBLIC "DOMCMDTEST" "dummysystemID">
..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== dom-2.11 FAILED
(and a few more of the same type of error for other dom tests
i18n.test
==== i18n-1.2 parse utf-8 channel FAILED
==== Contents of test case:
set fd [open [file join [pwd] [file dir [info script]]
data/i18n_1.xml]]
fconfigure $fd -encoding utf-8
set doc [dom parse -channel $fd]
close $fd
set root [$doc documentElement]
set text [$root text]
$doc delete
string compare $text
"\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438
\u0439"
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error "no element found" at line 1 character 15
while executing
"dom parse -channel $fd"
invoked from within
"set doc [dom parse -channel $fd]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== i18n-1.2 FAILED