You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/01 16:47:23 UTC
DO NOT REPLY [Bug 6791] New: -
Unknown STLport Version (none works)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6791>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6791
Unknown STLport Version (none works)
Summary: Unknown STLport Version (none works)
Product: XalanC
Version: 1.0.x
Platform: Sun
OS/Version: Other
Status: NEW
Severity: Blocker
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: daniel.wyss@swx.ch
Hello,
below listet ist my build environment for Xalan1.3.
Note: I cannot use /usr/local because it is read only (frozen directory tree).
/apl/gnu/sol58/autoconf/2.52
/apl/gnu/sol58/automake/1.5
/apl/gnu/sol58/binutils/2.11.2 (used to build the GNU environment but not for
Solaris builds)
/apl/gnu/sol58/cpan_perl_cc/5.6.1
/apl/gnu/sol58/gawk/3.1.0
/apl/gnu/sol58/gcc/2.95.3
/apl/gnu/sol58/gnupg/1.0.6
/apl/gnu/sol58/gzip/1.2.4a
/apl/gnu/sol58/m4/1.4
/apl/gnu/sol58/make/3.79.1
/apl/gnu/sol58/tar/1.13
/apl/gnu/sol58/xerces_cc/1.5.2
My host is sparc sun4u Ultra-2.
My SHELL is /usr/bin/ksh
For compiling i am using Solaris "binutils", not the GNU one
and Sun WorkShop 6 update 2 C/C++ 5.3 2001/05/15
Using this environment i perfectly managed to build and run Xerces-C++ 1.6
For Xalan1.3 i used STLport-4.5.3 which compiled without problems using the
makefile sunpro-v8plus.mak
since i found: "This makefile will work for SUN CC 5.9-5.3 (Forte6 Update 2)".
I didnt' use ICU because it is flagged optional in the release note.
Note: In the meantime (since my mail to 'xalan-dev@xml.apache.org' i have also
tried STLport-4.0 and 4.5.1
1) 4.0 cannot be compiled under Solaris2.8 and WorksShop 6 C/C++ 5.3.
2) 4.5.1 compiles fine combined with Xalan 1.3 leads to the same errors
like 4.5.3.
I both tried using my Xerces-C 1.6 version and your 1.6 version supplied with
Xalan 1.3.
They both behave the same. I carefully followed the INSTALL file for STLport.
When building Xalan i soon got the following error message:
gnu/sol58/xerces-c1_6_0-SolForCC/include/ -o /wwl/gnu/sol58/xml-
xalan/obj/XalanDOMString.o XalanDOM/XalanDOMString.cpp
"XalanDOM/XalanDOMString.cpp", line 665: Error: The function "strlen" must have
a prototype.
"XalanDOM/XalanDOMString.cpp", line 840: Error: wcstombs is not a member of
file level.
Error: Cannot continue processing because of prior errors.
Compilation aborted.
make: *** [/wwl/gnu/sol58/xml-xalan/obj/XalanDOMString.o] Error 1
I checked if the XERCESCROOT, XALANCROOT and STLPORT environment variables were
set correctly.
I looks as if it doesnt pickup the #include <cstdlib> include of the STLport
release.
I then added -H to the compiling command and got the include tree in the
attached
file includetree.txt. So the include files from STLport are included correctly.
XalanDOM/XalanDOMString.hpp
./XalanDOM/XalanDOMDefinitions.hpp
./Include/PlatformDefinitions.hpp
./Include/SolarisDefinitions.hpp
/wwl/gnu/sol58/STLport-4.5.3/stlport/vector
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_prolog.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_config.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl_user_config.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_config_compat.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_site_config.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/config/stlcomp.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/config/stl_sunpro.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/config/stl_solaris.h
/usr/include/sys/feature_tests.h
/usr/include/sys/isa_defs.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/config/stl_confix.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_algobase.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/cstddef
/apl/sunspro60/WS6U2/include/CC/../CC/std/cstddef
/usr/include/sys/feature_tests.h
/usr/include/iso/stddef_iso.h
/usr/include/sys/isa_defs.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/cstring
/apl/sunspro60/WS6U2/include/CC/../CC/std/cstring
/usr/include/sys/feature_tests.h
/usr/include/iso/string_iso.h
/usr/include/sys/feature_tests.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/using/cstring
/wwl/gnu/sol58/STLport-4.5.3/stlport/climits
/apl/sunspro60/WS6U2/include/CC/../CC/std/climits
/usr/include/sys/feature_tests.h
/usr/include/iso/limits_iso.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/cstdlib
/apl/sunspro60/WS6U2/include/CC/../CC/std/cstdlib
/usr/include/sys/feature_tests.h
/usr/include/iso/stdlib_iso.h
/usr/include/sys/feature_tests.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_pair.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_iterator_base.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/type_traits.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_vector.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_alloc.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/new
/apl/sunspro60/WS6U2/include/CC/../CC/new
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stddef.h
/usr/include/stddef.h
/usr/include/sys/isa_defs.h
/usr/include/iso/stddef_iso.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/exception
/apl/sunspro60/WS6U2/include/CC/../CC/exception
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_threads.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/ctime
/apl/sunspro60/WS6U2/include/CC/../CC/std/ctime
/usr/include/sys/feature_tests.h
/usr/include/iso/time_iso.h
/usr/include/sys/feature_tests.h
/usr/include/synch.h
/usr/include/sys/machlock.h
/usr/include/sys/types.h
/usr/include/sys/isa_defs.h
/usr/include/sys/feature_tests.h
/usr/include/sys/machtypes.h
/usr/include/sys/feature_tests.h
/usr/include/sys/int_types.h
/usr/include/sys/isa_defs.h
/usr/include/sys/select.h
/usr/include/sys/feature_tests.h
/usr/include/sys/time.h
/usr/include/sys/feature_tests.h
/usr/include/sys/types.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/time.h
/usr/include/time.h
/usr/include/sys/feature_tests.h
/usr/include/sys/types.h
/usr/include/iso/time_iso.h
/usr/include/sys/time_impl.h
/usr/include/sys/feature_tests.h
/usr/include/sys/select.h
/usr/include/sys/time_impl.h
/usr/include/sys/synch.h
/usr/include/sys/types.h
/usr/include/sys/int_types.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/cstdio
/apl/sunspro60/WS6U2/include/CC/../CC/std/cstdio
/usr/include/sys/feature_tests.h
/usr/include/iso/stdio_iso.h
/usr/include/sys/feature_tests.h
/usr/include/sys/va_list.h
/usr/include/stdio_tag.h
/usr/include/stdio_impl.h
/usr/include/sys/isa_defs.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/cwchar
/apl/sunspro60/WS6U2/include/CC/../CC/std/cwchar
/usr/include/sys/feature_tests.h
/usr/include/iso/wchar_iso.h
/usr/include/sys/feature_tests.h
/usr/include/stdio_tag.h
/usr/include/wchar_impl.h
/usr/include/sys/isa_defs.h
/usr/include/iso/time_iso.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/ctype.h
/usr/include/ctype.h
/usr/include/iso/ctype_iso.h
/usr/include/sys/feature_tests.h
/usr/include/sys/va_list.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_construct.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_iterator.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_uninitialized.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_range_errors.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_relops_cont.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_bvector.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_epilog.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_config_compat_post.h
./XalanDOM/XalanDOMException.hpp
./XalanDOM/XalanDOMDefinitions.hpp
/wwl/gnu/sol58/STLport-4.5.3/stlport/cassert
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_prolog.h
/apl/sunspro60/WS6U2/include/CC/../CC/std/cassert
/usr/include/sys/feature_tests.h
/usr/include/iso/assert_iso.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/stl/_epilog.h
/wwl/gnu/sol58/STLport-
4.5.3/stlport/stl/_config_compat_post.h
/wwl/gnu/sol58/STLport-4.5.3/stlport/cassert
./Include/XalanAutoPtr.hpp
./PlatformSupport/PlatformSupportDefinitions.hpp
./Include/PlatformDefinitions.hpp
"XalanDOM/XalanDOMString.cpp", line 665: Error: The function "strlen" must have
a prototype.
"XalanDOM/XalanDOMString.cpp", line 840: Error: wcstombs is not a member of
file level.
Error: Cannot continue processing because of prior errors.
Compilation aborted.
I then checked the XalanDOM/XalanDOMString.cpp file for includes and searched
in the STLPort file.
Beside some Xalan include files it imports <cstdlib> from STLPort but the
strlen function is defined in STL's <wchar.h>. I tried to work around by
including the Solaris header files. The build was proceeding but more
functions and types were missing: floor, ceil, time_t. I added <math.h>, and
<sys/time.h> Solars but at the end
the build was failing because of undefined _STL... symbols in the link. (I
guess using the Solaris includes was not correct).
Which version of STLport have you been using for sucessfully building Xalan1.3
for UNIX-Solaris?
Did you have to adapt include instructions in the Xalan files for the solaris
build?
kind regards
Daniel Wyss