Hi,

I tried that. I changed the XALANCROOT to a Windows path form and
did the changes you suggest.
I still had to create a link for the xerces lib otherwise I got
an error that the linker is unable to find libxerces-c.
I set a link from cygwins libxerces-c25.ddl.a to libxerces-c.dll.a
Now I got linker errors:
g++ -O -DNDEBUG     -fno-elide-constructors -Wall -DCYGWIN -D_REENTRANT
-DXALAN_INMEM_MSG_LOADER -c -IC:\cygwin\usr\src\xml-xalan\c/src
-IC:\cygwin\usr\src\xml-xalan\c/include -I../../../../nls/include -I/src/ 
-I/include/xercesc -I/include/  -o ../../../../obj/NLSHandler.o 
C:\cygwin\usr\src\xml-xalan\c/src/xalanc/Utils/MsgCreator/NLSHandler.cpp^M
g++ -O -DNDEBUG     -fno-elide-constructors -Wall -DCYGWIN -D_REENTRANT
-DXALAN_INMEM_MSG_LOADER -c -IC:\cygwin\usr\src\xml-xalan\c/src
-IC:\cygwin\usr\src\xml-xalan\c/include -I../../../../nls/include -I/src/ 
-I/include/xercesc -I/include/  -o ../../../../obj/SAX2Handler.o 
C:\cygwin\usr\src\xml-xalan\c/src/xalanc/Utils/MsgCreator/SAX2Handler.cpp^M
g++ -DCYGWIN  -DXALAN_INMEM_MSG_LOADER   \^M
  -L/lib
-lxerces-c ../../../../obj/MsgFileOutputStream.o 
../../../../obj/ICUResHandler.o ../../../../obj/InMemHandler.o 
../../../../obj/MsgCreator.o ../../../../obj/NLSHandler.o 
../../../../obj/SAX2Handler.o
-o ../../../../bin/MsgCreator -L/lib -lxerces-c^M
Info: resolving xercesc_2_5::XMLUni::fgXercescDefaultLocale       by
linking to __imp___ZN11xercesc_2_56XMLUni22fgXercescDefaultLocaleE
(auto-import)
Info: resolving xercesc_2_5::XMLPlatformUtils::fgMemoryManager
by linking to
__imp___ZN11xercesc_2_516XMLPlatformUtils15fgMemoryManagerE (auto-import)
Info: resolving xercesc_2_5::XMLUni::fgSAX2CoreValidation       by
linking to __imp___ZN11xercesc_2_56XMLUni20fgSAX2CoreValidationE
(auto-import)
Info: resolving xercesc_2_5::XMLUni::fgXercesDynamic       by linking
to __imp___ZN11xercesc_2_56XMLUni15fgXercesDynamicE (auto-import)
Info: resolving xercesc_2_5::XMLUni::fgSAX2CoreNameSpaces       by
linking to __imp___ZN11xercesc_2_56XMLUni20fgSAX2CoreNameSpacesE
(auto-import)
Info: resolving xercesc_2_5::XMLUni::fgXercesSchema       by linking to
__imp___ZN11xercesc_2_56XMLUni14fgXercesSchemaE (auto-import)
Info: resolving xercesc_2_5::XMLUni::fgXercesSchemaFullChecking
by linking to
__imp___ZN11xercesc_2_56XMLUni26fgXercesSchemaFullCheckingE (auto-import)
Info: resolving xercesc_2_5::XMLUni::fgSAX2CoreNameSpacePrefixes
by linking to
__imp___ZN11xercesc_2_56XMLUni27fgSAX2CoreNameSpacePrefixesE (auto-import)
make.exe[3]: Leaving directory
`C:/cygwin/usr/src/xml-xalan/c/src/xalanc/Utils/MsgCreator'^M
../../../bin/MsgCreator
C:/cygwin/usr/src/xml-xalan/c/src/xalanc/NLS/en_US/XalanMsg_en_US.xlf
-TYPE inmem -LOCALE en_US^M
make.exe[2]: *** [../../../nls/include/LocalMsgData.hpp] Error 128^M
make.exe[2]: Leaving directory
`C:/cygwin/usr/src/xml-xalan/c/src/xalanc/Utils'^M
make.exe[1]: *** [locale] Error 2^M
make.exe[1]: Leaving directory
`C:/cygwin/usr/src/xml-xalan/c/src/xalanc'^M
C:\cygwin\bin\make.exe: *** [all] Error 2^M

New try with a new link for xerces. libxerces-c.ddl.a pointed now to
the 2.7-er xerces lib I installed as binary. But I got again linker
errors.

g++ -DCYGWIN  -DXALAN_INMEM_MSG_LOADER   \
  -L/lib
-lxerces-c ../../../../obj/MsgFileOutputStream.o ../../../../obj/ICURes
Handler.o ../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o ../../../.
./obj/NLSHandler.o ../../../../obj/SAX2Handler.o
-o ../../../../bin/MsgCreator -
L/lib -lxerces-c
../../../../obj/MsgFileOutputStream.o:MsgFileOutputStream.cpp:(.text+0x505):
und
efined reference to `xercesc_2_5::XMLString::transcode(char const*)'

Seems hard to compile Xalan by myself.
Still any hints ?

Thomas

Am Fri, 29 Sep 2006 15:37:05 +0100
schrieb "Bob Cowdery" <[EMAIL PROTECTED]>:

> Thomas
> 
> I had this same problem on a different build. For me the solution was
> to use mingw32-make.exe from MinGW tools and rename and replace the
> one in CygWin. If you have DOS paths anywhere in the build system the
> make in CygWin will not understand them.
> 
> Hope that helps.
> 
> \Bob
> 
> -----Original Message-----
> From: Thomas Porschberg [mailto:[EMAIL PROTECTED]
> Sent: 29 September 2006 15:10
> To: xalan-c-users@xml.apache.org
> Subject: building xalan on cygwin
> 
> 
> Hi,
> I try to build Xalan from Xalan-C_1_10_0-src.tar on cygwin.
> (The Windows binary is not first choice for me because 
> is does not understand UNIX paths)
> 
> I set XALANCROOT, ran 
> ./runConfigure -p cygwin -c gcc -x g++
> 
> Looks fine.
> 
> But if I start make I get:
> 
> $ make
> make -C src/xalanc all
> make[1]: Entering directory `/usr/src/xml-xalan/c/src/xalanc'
> Preparing the directory structure for a build ...
> mkdir -p ../../obj
> mkdir -p ../../lib
> mkdir -p ../../bin
> make -C Utils prepare
> make[2]: Entering directory `/usr/src/xml-xalan/c/src/xalanc/Utils'
> Makefile:71: *** multiple target patterns.  Stop.
> make[2]: Leaving directory `/usr/src/xml-xalan/c/src/xalanc/Utils'
> make[1]: *** [prepare] Error 2
> make[1]: Leaving directory `/usr/src/xml-xalan/c/src/xalanc'
> make: *** [all] Error 2
> 
> Any help is appreciated.
> 
> Thomas
> 


-- 

Reply via email to