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 "kanch@gmx.net" <pk...@gmx.net> on 2003/10/10 06:30:37 UTC

Reg Xalan compilation error with -AA switch in hpux

Hello all,

Xerces is built with -AA switch with aCC as
./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
(Because -AA is not default for PA-aCC)

FYI, aCC - 3.37.01 on HP-UX 11.11

Stastus -> build & test - success

While trying Xalan, with
# ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
Note: i passed -l & -z as -AA (as xerces build with -AA switch, need to
link )
#gmake
:
:
while compiling "XPathEnvSupportDefault.cpp" .....and "KeyTable.cpp"
Error occurs as

Error 849: Exact position unknown; near

["/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSup
portDefault.cpp", line 115]. # External
    symbol too long, truncated from 4012 to 4000 bytes,

__ne__4__rwXTQ2_3std4pairXTCQ2_10xalanc_1_614XalanDOMStringTQ2_3std3mapXTQ2_
10xalanc_1_614XalanDOMStringTPCQ2_10xalanc_1
    _68Funct...

So what i did is removed -AA from the compilation line

aCC +DA1.1 -AA -g      +DAportable   +Z -DHPUX -D_THREAD_SAFE
+p -mt -Aa  -c -I/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src -
:
xalan/c/obj/XPathEnvSupportDefault.o
/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSuppo
rtDefault.cpp

to

aCC +DA1.1 -g      +DAportable   +Z -DHPUX -D_THREAD_SAFE
+p -mt -Aa  -c -I/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src -
:
xalan/c/obj/XPathEnvSupportDefault.o
/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSuppo
rtDefault.cpp


same thing fro other .cpp file.

then
#gmake

But i know all .o files are required to build xalan library. As i expected
run time error occurs as
# ../../bin/Xalan
/usr/lib/dld.sl: Unresolved symbol: [Vtable]key:__dt__9exceptionFv (data)
from /disk1/release2/xalanc/1.6/Source/xml-xalan/c/lib/libxalan-c.sl.16
/usr/lib/dld.sl: Unresolved symbol: __tcerr (data)  from
/disk1/release2/xalanc/1.6/Source/xml-xalan/c/lib/libxalan-c.sl.16
/usr/lib/dld.sl: Unresolved symbol: typeid__XT9exception_ (data)  from
/disk1/release2/xalanc/1.6/Source/xml-xalan/c/lib/libxalan-c.sl.16
Abort(coredump)
# ll ../../bin/

I want to make Xalan(those 2 files ) with -AA.

How to do? any idea?

Thanks and Regards,
-kanchana


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003


Re: Reg Xalan compilation error with -AA switch in hpux

Posted by "kanch@gmx.net" <pk...@gmx.net>.
Hello David,

Thanks for the mail.
I'm not using debug option now. I tired as

export LDFLAGS="-Wl,+nodefaultrpath -AA"
export CFLAGS="-AA"
env CC=cc CXX=aCC ./configure

and edited Makefile as
1)
CXX = aCC
to
CXX = aCC +DA1.1
2)
#=============== HPUX SPECIFIC OPTIONS =========================

ifeq ($(PLATFORM), HPUX)

#  PLATFORM_CXX_COMPILE_OPTIONS = +p -mt -Aa
# to
  PLATFORM_CXX_COMPILE_OPTIONS = +p -mt -AA
  ALLLIBS = ${LIBS}


Same pbl, those 2 files(XPathEnvSupportDefault.cpp & KeyTable.cpp) won't
compile with -AA, so i did -Aa for those 2 , so it leads to runtime error as

# ../../bin/Xalan
/usr/lib/dld.sl: Unresolved symbol: [Vtable]key:__dt__9exceptionFv (data)
from /Source/xml-xalan/c/lib/libxalan-c.sl.16
/usr/lib/dld.sl: Unresolved symbol: __tcerr (data)  from
/Source/xml-xalan/c/lib/libxalan-c.sl.16
/usr/lib/dld.sl: Unresolved symbol: typeid__XT9exception_ (data)  from
/Source/xml-xalan/c/lib/libxalan-c.sl.16

I'm using Xalan  1.6.

Plz help me to solve this problem.

Thanks and Regards,
-kanchana
>
>
>
>
> Hi,
>
> Our version of aCC is:
>
>    aCC: HP ANSI C++ B3910B A.03.37
>
> I just built the latest CVS code without any problems using the AA option,
> but I'm not using the debug flag.  This might be a compiler bug, or just a
> limitation on the symbol length of the compiler when debug is enabled.
You
> might try building those two files without debug to see what happens.
>
> I'm not sure why you need debug symbols for the entire library, but that
> can result in a _very_ large library.  I usually build a select group of
> modules with symbols, if I'm going to debug something.
>
> Dave
>
>
>
>
>                       "kanch@gmx.net"
>                       <pkkanchana              To:
<xa...@xml.apache.org>
>                                                cc:
>                       10/09/2003 09:30         Subject: Reg Xalan
compilation error with -AA switch in hpux
>                       PM
>
>
>
>
> Hello all,
>
> Xerces is built with -AA switch with aCC as
> ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
> (Because -AA is not default for PA-aCC)
>
> FYI, aCC - 3.37.01 on HP-UX 11.11
>
> Stastus -> build & test - success
>
> While trying Xalan, with
> # ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
> Note: i passed -l & -z as -AA (as xerces build with -AA switch, need to
> link )
> #gmake
> :
> :
> while compiling "XPathEnvSupportDefault.cpp" .....and "KeyTable.cpp"
> Error occurs as
>
> Error 849: Exact position unknown; near
>
>
["/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSup
>
> portDefault.cpp", line 115]. # External
>     symbol too long, truncated from 4012 to 4000 bytes,
>
>
__ne__4__rwXTQ2_3std4pairXTCQ2_10xalanc_1_614XalanDOMStringTQ2_3std3mapXTQ2_
>
> 10xalanc_1_614XalanDOMStringTPCQ2_10xalanc_1
>     _68Funct...
>
> ..
>
> How to do? any idea?
>
> Thanks and Regards,
> -kanchana
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003


Re: Reg Xalan compilation error with -AA switch in hpux - Completed

Posted by "kanch@gmx.net" <pk...@gmx.net>.
Hello David,

This is just for your information. Thanks for your mail.

I've successfully compiled Xalan with -AA switch in HP-UX.

The problem is due to debug option enabled.
i.e
when i turn debug option (-g) ON, it disables the optiomization, so it
causes the error at that 2 .cpp files.
Either we need to pass -O to that .cpp files or diable debug option.

So i tried by disabling debug option during configure itself.

Now it works fine.

Thanks and Regards,
-kanchana


>
>
>
>
> Hi,
>
> Our version of aCC is:
>
>    aCC: HP ANSI C++ B3910B A.03.37
>
> I just built the latest CVS code without any problems using the AA option,
> but I'm not using the debug flag.  This might be a compiler bug, or just a
> limitation on the symbol length of the compiler when debug is enabled.
You
> might try building those two files without debug to see what happens.
>
> I'm not sure why you need debug symbols for the entire library, but that
> can result in a _very_ large library.  I usually build a select group of
> modules with symbols, if I'm going to debug something.
>
> Dave
>
>
>
>
>                       "kanch@gmx.net"
>                       <pkkanchana              To:
<xa...@xml.apache.org>
>                                                cc:
>                       10/09/2003 09:30         Subject: Reg Xalan
compilation error with -AA switch in hpux
>                       PM
>
>
>
>
> Hello all,
>
> Xerces is built with -AA switch with aCC as
> ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
> (Because -AA is not default for PA-aCC)
>
> FYI, aCC - 3.37.01 on HP-UX 11.11
>
> Stastus -> build & test - success
>
> While trying Xalan, with
> # ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
> Note: i passed -l & -z as -AA (as xerces build with -AA switch, need to
> link )
> #gmake
> :
> :
> while compiling "XPathEnvSupportDefault.cpp" .....and "KeyTable.cpp"
> Error occurs as
>
> Error 849: Exact position unknown; near
>
>
["/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSup
>
> portDefault.cpp", line 115]. # External
>     symbol too long, truncated from 4012 to 4000 bytes,
>
>
__ne__4__rwXTQ2_3std4pairXTCQ2_10xalanc_1_614XalanDOMStringTQ2_3std3mapXTQ2_
>
> 10xalanc_1_614XalanDOMStringTPCQ2_10xalanc_1
>     _68Funct...
>
> ..
>
> How to do? any idea?
>
> Thanks and Regards,
> -kanchana
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003


Re: Reg Xalan compilation error with -AA switch in hpux

Posted by da...@us.ibm.com.



Hi,

Our version of aCC is:

   aCC: HP ANSI C++ B3910B A.03.37

I just built the latest CVS code without any problems using the AA option,
but I'm not using the debug flag.  This might be a compiler bug, or just a
limitation on the symbol length of the compiler when debug is enabled.  You
might try building those two files without debug to see what happens.

I'm not sure why you need debug symbols for the entire library, but that
can result in a _very_ large library.  I usually build a select group of
modules with symbols, if I'm going to debug something.

Dave



                                                                                                                                                  
                      "kanch@gmx.net"                                                                                                             
                      <pkkanchana              To:      <xa...@xml.apache.org>                                                            
                                               cc:                                                                                                
                      10/09/2003 09:30         Subject: Reg Xalan compilation error with -AA switch in hpux                                       
                      PM                                                                                                                          
                                                                                                                                                  



Hello all,

Xerces is built with -AA switch with aCC as
./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
(Because -AA is not default for PA-aCC)

FYI, aCC - 3.37.01 on HP-UX 11.11

Stastus -> build & test - success

While trying Xalan, with
# ./runConfigure -p hp-11 -c cc -x aCC -r pthread -d -b 32 -l -AA -z -AA
Note: i passed -l & -z as -AA (as xerces build with -AA switch, need to
link )
#gmake
:
:
while compiling "XPathEnvSupportDefault.cpp" .....and "KeyTable.cpp"
Error occurs as

Error 849: Exact position unknown; near

["/disk1/release2/xalanc/1.6/Source/xml-xalan/c/src/xalanc/XPath/XPathEnvSup

portDefault.cpp", line 115]. # External
    symbol too long, truncated from 4012 to 4000 bytes,

__ne__4__rwXTQ2_3std4pairXTCQ2_10xalanc_1_614XalanDOMStringTQ2_3std3mapXTQ2_

10xalanc_1_614XalanDOMStringTPCQ2_10xalanc_1
    _68Funct...

..

How to do? any idea?

Thanks and Regards,
-kanchana


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003