You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Ken <ke...@gmail.com> on 2005/07/13 09:10:54 UTC
xalan on HP-UX
Hi,
I downloaded for HP-UX Xalan-C_1_9_0-hpux_11i-acc_a03.tar.gz and tried
to link my app with it on a machine having HP-UX B.11.11 U, but I
always get the following error :
"Mismatched ABI (not an ELF file) for -lxalan"
and the same error for xerces.
I first created a link to libxalan-c.sl.19.0, named libxalan.sl and a
corresponding one to libxerces-c.sl.26.0
I'm using aCC: HP ANSI C++ B3910B A.03.37.
Here're the command lines, if of any help :
/opt/aCC/bin/aCC -c -w -ext +DA2.0W -AA -mt -g0 +d +Z +p -DHPUX -D_DEBUG -I ./i
nclude/ -I /opt/aCC/include_std/ -I ../xerces/include/ -I
../xalan/include/ src/main.cpp -o obj/main.o
/opt/aCC/bin/aCC -L /usr/lib -L /opt/aCC/lib -L ../bin/ +DA2.0W -AA
-g0 -Wl,+s,+n,-a,shared -o ../bin/app -lrt -lpthread -lstd_v2
-lCsup_v2 -lxalan -lxerces ./obj/main.o
=> ld: Mismatched ABI (not an ELF file) for -lxalan
Any suggestions ?
Tx,
Ken
Re: xalan on HP-UX
Posted by da...@us.ibm.com.
> aCC -O -DNDEBUG -DXML_BITSTOBUILD_64 +DA2.0W +Z -DHPUX
-D_THREAD_SAFE +W8
> 49 -mt -AA -ext -Wc,-koenig_lookup,on -Wc,-ansi_for_scope,on
-DXALAN_INMEM_MSG_L
> OADER -c -I/ken/xalan/src -I/ken/xalan/include -I../../nls/include
> -I/ken/xerces/src/ -I/ken/xerces/include/xercesc
> -I/ken/xerces/include/ -o ../../obj/XalanDOMStringCache.o
> /ken/xalan/src/xalanc/PlatformSupport/XalanDOMStringCache.c
> pp
> Error 20:
> "/ken/xalan/src/xalanc/PlatformSup port/ReusableArenaBlock.hpp",
> line 31 # '<type name>' expected before '>'.
> template<bool> struct CompileTimeError;
> ^
> gmake[1]: *** [../../obj/XalanDOMStringCache.o] Error 2
> gmake[1]: Leaving directory `/ken/xalan/src/xalanc'
> gmake: *** [all] Error 2
You can upgrade your compiler (this is a compiler bug), upgrade to the
latest CVS source code, or just temporarily remove the code that
implements the static assert by:
1. Removing all definitions of the CompileTimeError struct.
2. Definining the macro XALAN_STATIC_ASSERT to expand to an empty string:
#define XALAN_STATIC_ASSERT(expr)
Dave
Re: xalan on HP-UX
Posted by Ken <ke...@gmail.com>.
The ^ is misplaced in the message from me due to copy/paste.
it should be like this
---snip---
template<bool> struct CompileTimeError;
^
---snip---
On 7/14/05, Ken <ke...@gmail.com> wrote:
> Hi Dave,
>
> I did that with the following results :
> - xerces built Ok
> - xalan has the following error (regardless of the added -AA and -ext
> options, as I tried it without these flags too) :
>
> aCC -O -DNDEBUG -DXML_BITSTOBUILD_64 +DA2.0W +Z -DHPUX -D_THREAD_SAFE +W8
> 49 -mt -AA -ext -Wc,-koenig_lookup,on -Wc,-ansi_for_scope,on -DXALAN_INMEM_MSG_L
> OADER -c -I/ken/xalan/src -I/ken/xalan/include -I../../nls/include
> -I/ken/xerces/src/ -I/ken/xerces/include/xercesc
> -I/ken/xerces/include/ -o ../../obj/XalanDOMStringCache.o
> /ken/xalan/src/xalanc/PlatformSupport/XalanDOMStringCache.c
> pp
> Error 20:
> "/ken/xalan/src/xalanc/PlatformSup port/ReusableArenaBlock.hpp",
> line 31 # '<type name>' expected before '>'.
> template<bool> struct CompileTimeError;
> ^
> gmake[1]: *** [../../obj/XalanDOMStringCache.o] Error 2
> gmake[1]: Leaving directory `/ken/xalan/src/xalanc'
> gmake: *** [all] Error 2
>
> Is there any solution for this error ?
>
> Thanks,
> Ken
>
> On 7/14/05, david_n_bertoni@us.ibm.com <da...@us.ibm.com> wrote:
> > > I downloaded the 64 bit versions of xerces and xalan and now I don't
> > > get the errors below, but I do get other warnings (I don't know how
> > > serious these are, can I run my app without them ?) :
> >
> > No, you can't.
> >
> > > Does anyone have a solution of what I can do to get rid of these
> > warnings ?
> > ...
> > > /opt/aCC/bin/aCC -c -w -ext +DA2.0W -AA -mt -g0 +d +Z +p -DHPUX -D_DEBUG
> > -I ./i
> > > nclude/ -I /opt/aCC/include_std/ -I ../xerces/include/ -I
> > > ../xalan/include/ src/main.cpp -o obj/main.o
> >
> > You're building with the -AA option, while we build without it (-Aa).
> > Since the two options are not compatible, you'll have to build Xalan and
> > Xerces from the source distributions and add the -AA option.
> >
> > Dave
> >
>
Re: xalan on HP-UX
Posted by Ken <ke...@gmail.com>.
Hi Dave,
I did that with the following results :
- xerces built Ok
- xalan has the following error (regardless of the added -AA and -ext
options, as I tried it without these flags too) :
aCC -O -DNDEBUG -DXML_BITSTOBUILD_64 +DA2.0W +Z -DHPUX -D_THREAD_SAFE +W8
49 -mt -AA -ext -Wc,-koenig_lookup,on -Wc,-ansi_for_scope,on -DXALAN_INMEM_MSG_L
OADER -c -I/ken/xalan/src -I/ken/xalan/include -I../../nls/include
-I/ken/xerces/src/ -I/ken/xerces/include/xercesc
-I/ken/xerces/include/ -o ../../obj/XalanDOMStringCache.o
/ken/xalan/src/xalanc/PlatformSupport/XalanDOMStringCache.c
pp
Error 20:
"/ken/xalan/src/xalanc/PlatformSup port/ReusableArenaBlock.hpp",
line 31 # '<type name>' expected before '>'.
template<bool> struct CompileTimeError;
^
gmake[1]: *** [../../obj/XalanDOMStringCache.o] Error 2
gmake[1]: Leaving directory `/ken/xalan/src/xalanc'
gmake: *** [all] Error 2
Is there any solution for this error ?
Thanks,
Ken
On 7/14/05, david_n_bertoni@us.ibm.com <da...@us.ibm.com> wrote:
> > I downloaded the 64 bit versions of xerces and xalan and now I don't
> > get the errors below, but I do get other warnings (I don't know how
> > serious these are, can I run my app without them ?) :
>
> No, you can't.
>
> > Does anyone have a solution of what I can do to get rid of these
> warnings ?
> ...
> > /opt/aCC/bin/aCC -c -w -ext +DA2.0W -AA -mt -g0 +d +Z +p -DHPUX -D_DEBUG
> -I ./i
> > nclude/ -I /opt/aCC/include_std/ -I ../xerces/include/ -I
> > ../xalan/include/ src/main.cpp -o obj/main.o
>
> You're building with the -AA option, while we build without it (-Aa).
> Since the two options are not compatible, you'll have to build Xalan and
> Xerces from the source distributions and add the -AA option.
>
> Dave
>
Re: xalan on HP-UX
Posted by da...@us.ibm.com.
> I downloaded the 64 bit versions of xerces and xalan and now I don't
> get the errors below, but I do get other warnings (I don't know how
> serious these are, can I run my app without them ?) :
No, you can't.
> Does anyone have a solution of what I can do to get rid of these
warnings ?
...
> /opt/aCC/bin/aCC -c -w -ext +DA2.0W -AA -mt -g0 +d +Z +p -DHPUX -D_DEBUG
-I ./i
> nclude/ -I /opt/aCC/include_std/ -I ../xerces/include/ -I
> ../xalan/include/ src/main.cpp -o obj/main.o
You're building with the -AA option, while we build without it (-Aa).
Since the two options are not compatible, you'll have to build Xalan and
Xerces from the source distributions and add the -AA option.
Dave
Re: xalan on HP-UX
Posted by Ken <ke...@gmail.com>.
Hi again,
I downloaded the 64 bit versions of xerces and xalan and now I don't
get the errors below, but I do get other warnings (I don't know how
serious these are, can I run my app without them ?) :
ld: (Warning) Unsatisfied symbol "static HPMutexWrapper::unlock(void *)" in file
../bin//libxalan.sl
ld: (Warning) Unsatisfied symbol "Class tables [Vtable] dependent on key functio
n: "exception::~exception()"" in file ../bin//libxalan.sl
ld: (Warning) Unsatisfied symbol "typeid<exception>" in file ../bin//libxalan.sl
ld: (Warning) Unsatisfied symbol "exception::~exception()" in file ../bin//libxa
lan.sl
ld: (Warning) Unsatisfied symbol "HPMutexWrapper::~HPMutexWrapper()" in file ../
bin//libxalan.sl
ld: (Warning) Unsatisfied symbol "HPMutexWrapper::init()" in file ../bin//libxal
an.sl
ld: (Warning) Unsatisfied symbol "static HPMutexWrapper::lock(void *)" in file .
./bin//libxalan.sl
Does anyone have a solution of what I can do to get rid of these warnings ?
Thanks,
Ken
On 7/13/05, Ken <ke...@gmail.com> wrote:
> Hi,
>
> I downloaded for HP-UX Xalan-C_1_9_0-hpux_11i-acc_a03.tar.gz and tried
> to link my app with it on a machine having HP-UX B.11.11 U, but I
> always get the following error :
>
> "Mismatched ABI (not an ELF file) for -lxalan"
>
> and the same error for xerces.
>
> I first created a link to libxalan-c.sl.19.0, named libxalan.sl and a
> corresponding one to libxerces-c.sl.26.0
>
> I'm using aCC: HP ANSI C++ B3910B A.03.37.
>
> Here're the command lines, if of any help :
>
> /opt/aCC/bin/aCC -c -w -ext +DA2.0W -AA -mt -g0 +d +Z +p -DHPUX -D_DEBUG -I ./i
> nclude/ -I /opt/aCC/include_std/ -I ../xerces/include/ -I
> ../xalan/include/ src/main.cpp -o obj/main.o
>
> /opt/aCC/bin/aCC -L /usr/lib -L /opt/aCC/lib -L ../bin/ +DA2.0W -AA
> -g0 -Wl,+s,+n,-a,shared -o ../bin/app -lrt -lpthread -lstd_v2
> -lCsup_v2 -lxalan -lxerces ./obj/main.o
>
> => ld: Mismatched ABI (not an ELF file) for -lxalan
>
> Any suggestions ?
>
> Tx,
> Ken
>