Xalan C Build query

View: New views
7 Messages — Rating Filter:   Alert me  

Xalan C Build query

by Debasis Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I am building the Xalan c code on linux that fails with the error below.

 

g++ -DLINUX -fPIC  -DXALAN_INMEM_MSG_LOADER -Wl,-rpath,/nanfs02/home/dray/linux/install/icu/lz_linux/lib  \

  -L/nanfs02/home/dray/linux/install/xerces_icu/lib -lxerces-c ../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o ../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o ../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o ../../../../bin/MsgCreator

../../../../obj/MsgFileOutputStream.o(.text+0x6f2): In function `XalanFileOutputStream::write(char const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'

../../../../obj/MsgFileOutputStream.o(.text+0x6fc): In function `XalanFileOutputStream::write(char const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLString::transcode(char const*, xercesc_3_0::MemoryManager*)'

../../../../obj/MsgFileOutputStream.o(.text+0x71b): In function `XalanFileOutputStream::write(char const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLString::release(unsigned short**, xercesc_3_0::MemoryManager*)'

../../../../obj/MsgFileOutputStream.o(.text+0x742): In function `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'

../../../../obj/MsgFileOutputStream.o(.text+0x74c): In function `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLString::transcode(unsigned short const*, xercesc_3_0::MemoryManager*)'

../../../../obj/MsgFileOutputStream.o(.text+0x76b): In function `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':

: undefined reference to `xercesc_3_0::XMLString::release(char**, xercesc_3_0::MemoryManager*)'

../../../../obj/ICUResHandler.o(.text+0x402): In function `ICUResHandler::endElement(unsigned short const*, unsigned short const*, unsigned short const*)':

: undefined reference to `xercesc_3_0::XMLString::compareString(unsigned short const*, unsigned short const*)'

../../../../obj/ICUResHandler.o(.text+0x448): In function `ICUResHandler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_3_0::Attributes const&)':

 

I have configured using ./runConfigure -p linux -c gcc -x g++ -P /nanfs02/home/dray/linux/install/xalan_icu/ --enable-static

And set ICU and XALANC paths etc.

 

Could someone please advise?

 

Thanks in advance.

 

Debasis

 

 


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

Re: Xalan C Build query

by David Bertoni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Debasis Ray wrote:

> Hi,
>
> I am building the Xalan c code on linux that fails with the error below.
>
> g++ -DLINUX -fPIC  -DXALAN_INMEM_MSG_LOADER
> -Wl,-rpath,/nanfs02/home/dray/linux/install/icu/lz_linux/lib  \
>   -L/nanfs02/home/dray/linux/install/xerces_icu/lib -lxerces-c
> ../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o
> ../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o
> ../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o
> ../../../../bin/MsgCreator
> ../../../../obj/MsgFileOutputStream.o(.text+0x6f2): In function
> `XalanFileOutputStream::write(char const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> ../../../../obj/MsgFileOutputStream.o(.text+0x6fc): In function
> `XalanFileOutputStream::write(char const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLString::transcode(char const*,
> xercesc_3_0::MemoryManager*)'
> ../../../../obj/MsgFileOutputStream.o(.text+0x71b): In function
> `XalanFileOutputStream::write(char const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLString::release(unsigned
> short**, xercesc_3_0::MemoryManager*)'
> ../../../../obj/MsgFileOutputStream.o(.text+0x742): In function
> `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> ../../../../obj/MsgFileOutputStream.o(.text+0x74c): In function
> `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLString::transcode(unsigned
> short const*, xercesc_3_0::MemoryManager*)'
> ../../../../obj/MsgFileOutputStream.o(.text+0x76b): In function
> `XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':
> : undefined reference to `xercesc_3_0::XMLString::release(char**,
> xercesc_3_0::MemoryManager*)'
> ../../../../obj/ICUResHandler.o(.text+0x402): In function
> `ICUResHandler::endElement(unsigned short const*, unsigned short const*,
> unsigned short const*)':
> : undefined reference to `xercesc_3_0::XMLString::compareString(unsigned
> short const*, unsigned short const*)'
> ../../../../obj/ICUResHandler.o(.text+0x448): In function
> `ICUResHandler::startElement(unsigned short const*, unsigned short
> const*, unsigned short const*, xercesc_3_0::Attributes const&)':
>
> I have configured using ./runConfigure -p linux -c gcc -x g++ -P
> /nanfs02/home/dray/linux/install/xalan_icu/ --enable-static
For what it's worth, you're unlikely to be able to build successfully
with static libraries.

I have some questions:

1. What version of Xalan-C are you using?  The only way to build with
Xerces-C 3.0 is to use the latest code from the Subversion repository.

2. How did you build Xerces-C?

3. What Linux distribution and what version of GCC are you using?

4. What output do you get when you run the following command on the
Xerces-C library you built:

nm libxerces-c-3.0.so | grep compareString | c++filt

On my Linux distribution, I get:

0000000000193790 T xercesc_3_0::XMLString::compareString(char const*,
char const*)
0000000000194090 T xercesc_3_0::XMLString::compareString(unsigned short
const*, unsigned short const*)

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


RE: Xalan C Build query

by Debasis Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dave,
Thanks for your reply. I have provided my env details below.
Would appreciate your comments.
Cheers

For what it's worth, you're unlikely to be able to build successfully
with static libraries.

I have some questions:

1. What version of Xalan-C are you using?  The only way to build with
Xerces-C 3.0 is to use the latest code from the Subversion
repository.[DR]  I got the latest source "Xalan-C_1_10_0-src.tar"

2. How did you build Xerces-C?
[DR] ./configure --prefix=/nanfs02/home/dray/linux/install/xerces_icu
--with-icu=/nanfs02/home/dray/linux/install/icu/lz_linux
--disable-shared --disable-network

3. What Linux distribution and what version of GCC are you using?
[DR]
[dray@lndus186 install]$ uname -a
Linux lndus186 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
i686 i386 GNU/Linux
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-56)

4. What output do you get when you run the following command on the
Xerces-C library you built:

[DR]
[dray@lndus186 lib]$ nm libxerces-c.a | grep compareString | c++filt
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
00000408 T xercesc_3_0::XMLString::compareString(char const*, char
const*)
0000133c T xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)
         U xercesc_3_0::XMLString::compareString(unsigned short const*,
unsigned short const*)

nm libxerces-c-3.0.so | grep compareString | c++filt

On my Linux distribution, I get:

0000000000193790 T xercesc_3_0::XMLString::compareString(char const*,
char const*)
0000000000194090 T xercesc_3_0::XMLString::compareString(unsigned short
const*, unsigned short const*)

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


Re: Xalan C Build query

by David Bertoni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Debasis Ray wrote:

> Hi Dave,
> Thanks for your reply. I have provided my env details below.
> Would appreciate your comments.
> Cheers
>
> For what it's worth, you're unlikely to be able to build successfully
> with static libraries.
>
> I have some questions:
>
> 1. What version of Xalan-C are you using?  The only way to build with
> Xerces-C 3.0 is to use the latest code from the Subversion
> repository.[DR]  I got the latest source "Xalan-C_1_10_0-src.tar"
You're going to need to check out the head of the SVN repository to get
a clean build.

>
> 2. How did you build Xerces-C?
> [DR] ./configure --prefix=/nanfs02/home/dray/linux/install/xerces_icu
> --with-icu=/nanfs02/home/dray/linux/install/icu/lz_linux
> --disable-shared --disable-network
>
> 3. What Linux distribution and what version of GCC are you using?
> [DR]
> [dray@lndus186 install]$ uname -a
> Linux lndus186 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
> i686 i386 GNU/Linux
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-56)
>
> 4. What output do you get when you run the following command on the
> Xerces-C library you built:
>
> [DR]
> [dray@lndus186 lib]$ nm libxerces-c.a | grep compareString | c++filt
>          U xercesc_3_0::XMLString::compareString(unsigned short const*,
> unsigned short const*)
>          U xercesc_3_0::XMLString::compareString(unsigned short const*,
> unsigned short const*)
> 00000408 T xercesc_3_0::XMLString::compareString(char const*, char
> const*)
> 0000133c T xercesc_3_0::XMLString::compareString(unsigned short const*,
> unsigned short const*)
Well, that's definition for compareString. I don't know why the linker
isn't finding it.

I would suggest you not try to use static libraries, since Xalan-C won't
build as a static library anyway.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


RE: Xalan C Build query

by Debasis Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave,
I got bit further while using the static library. Now I got some
compilation errors!

g++ -O2 -DNDEBUG     -fno-elide-constructors -Wall -fPIC -DLINUX
-D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c
-I/nanfs02/home/dray/linux/install/xml-xalan/c/src
-I/nanfs02/home/dray/linux/install/xml-xalan/c/include
-I../../../../nls/include
-I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/src/
-I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/include/xercesc
-I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/include/  -o
../../../../obj/XalanMsgLib.o
/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
b/XalanMsgLib.cpp
/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
b/XalanMsgLib.cpp:25: syntax
   error before `namespace'
/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
b/XalanMsgLib.cpp: In
   static member function `static const XalanDOMChar*
   xalanc_1_10::XalanMsgContainer::getMessage(unsigned int)':
/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
b/XalanMsgLib.cpp:68: `
   s_errString' undeclared (first use this function)
/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
b/XalanMsgLib.cpp:68: (Each
   undeclared identifier is reported only once for each function it
appears
   in.)
gmake[3]: *** [../../../../obj/XalanMsgLib.o] Error 1
gmake[3]: Leaving directory
`/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgL
ib'
gmake[2]: *** [../../../lib/libxalanMsg.so.110.0] Error 2
gmake[2]: Leaving directory
`/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils'
gmake[1]: *** [locale] Error 2
gmake[1]: Leaving directory
`/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2

Would you have any clue?
Thanks


I would suggest you not try to use static libraries, since Xalan-C won't

build as a static library anyway.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


Re: Xalan C Build query

by David Bertoni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Debasis Ray wrote:

> Dave,
> I got bit further while using the static library. Now I got some
> compilation errors!
>
> g++ -O2 -DNDEBUG     -fno-elide-constructors -Wall -fPIC -DLINUX
> -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c
> -I/nanfs02/home/dray/linux/install/xml-xalan/c/src
> -I/nanfs02/home/dray/linux/install/xml-xalan/c/include
> -I../../../../nls/include
> -I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/src/
> -I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/include/xercesc
> -I/nanfs02/home/dray/linux/dan/xerces-c-3.0.1/install/include/  -o
> ../../../../obj/XalanMsgLib.o
> /nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
> b/XalanMsgLib.cpp
> /nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
> b/XalanMsgLib.cpp:25: syntax
>    error before `namespace'
> /nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
> b/XalanMsgLib.cpp: In
>    static member function `static const XalanDOMChar*
>    xalanc_1_10::XalanMsgContainer::getMessage(unsigned int)':
> /nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
> b/XalanMsgLib.cpp:68: `
>    s_errString' undeclared (first use this function)
> /nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgLi
> b/XalanMsgLib.cpp:68: (Each
>    undeclared identifier is reported only once for each function it
> appears
>    in.)
> gmake[3]: *** [../../../../obj/XalanMsgLib.o] Error 1
> gmake[3]: Leaving directory
> `/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils/XalanMsgL
> ib'
> gmake[2]: *** [../../../lib/libxalanMsg.so.110.0] Error 2
> gmake[2]: Leaving directory
> `/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc/Utils'
> gmake[1]: *** [locale] Error 2
> gmake[1]: Leaving directory
> `/nanfs02/home/dray/linux/install/xml-xalan/c/src/xalanc'
> gmake: *** [all] Error 2
>
> Would you have any clue?
Yes, the message source file wasn't properly generated.

As I've stated before, you cannot use Xalan-C 1.10 sources with Xerces-C
3.0, because the Xerces-C APIs were changed and the changes are not
backward compatible. You can either get the latest source code from the
Subversion repository, or you can build with Xerces-C 2.8.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


RE: Xalan C Build query

by Debasis Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much Dave, all sorted now.


Yes, the message source file wasn't properly generated.

As I've stated before, you cannot use Xalan-C 1.10 sources with Xerces-C

3.0, because the Xerces-C APIs were changed and the changes are not
backward compatible. You can either get the latest source code from the
Subversion repository, or you can build with Xerces-C 2.8.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@...
For additional commands, e-mail: xalan-dev-help@...