You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Kathiravan <ka...@visolve.com> on 2003/12/05 07:47:25 UTC
Re: Ernesto, Error during gmake in samples dir (Reduced to few numbers, thanx to you)
Hi Ernesto,
I did as you said, that is i added the -AA to that HP specific option, and rerun the script but it gave the error message.
So i cleaned files using gmake distclean and run the fresh
$runConfigure -p hp-11 -x aCC -c cc -r pthread -b 32 -z -AA
command in both source. Now source doesn't show any error as previously, but samples shows some unsatisfied symbole as follow (Thank god, itreduced to few symbols than previous one, thanx for you suggestion), the error is as follows
$ gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint
aCC -AA -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrint.cpp
Warning: 1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -AA -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrintHandlers.cpp
aCC -AA -Wl,+s -Wl,+b,. -L/opt/aCC/lib -L/usr/ccs/lib -lpthread /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o /home/kav/xerces-c-src_2_3_0/bin/SAXPrint -L/home/kav/xerces-c-src_2_3_0/lib -lxerces-c
/usr/ccs/bin/ld: Unsatisfied symbols:
xercesc_2_3::SAXParseException::getColumnNumber() const (code)
typeid<xercesc_2_3::SAXParseException> (data)
xercesc_2_3::SAXParseException::getLineNumber() const (code)
xercesc_2_3::SAXParseException::~SAXParseException() (code)
xercesc_2_3::SAXParseException::SAXParseException(const xercesc_2_3::SAXParseException &)%1 (code)
xercesc_2_3::SAXParseException::getSystemId() const (code)
gmake[1]: *** [/home/kav/xerces-c-src_2_3_0/bin/SAXPrint] Error 1
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
gmake: *** [saxprint] Error 2
I couldn't understand it. Really thanks to your unlimited helping attitude friend.
-Kathir.V
----- Original Message -----
From: Garcia Del Moral Gonzalez, Ernesto
To: xerces-c-dev@xml.apache.org
Cc: Kathiravan
Sent: Friday, December 05, 2003 6:27 PM
Subject: RE: Ernesto, Error during gmake in samples dir
Hi again,
I ran into this same trouble a few days ago. The problem is because aCC needs the -AA flag in the begining of the command, almost right behind the "aCC" itself. To achieve this you can edit the Makefile.incl in the samples dir and under the HPUX specific options add the flag. It should look something like this:
#================= HP SPECIFIC OPTIONS ===========================
ifeq (${PLATFORM}, HPUX)
ifeq (${COMPILER}, aCC)
CMP = -c +DAportable $(CXXFLAGS) -D_HP_UX -DHPaCC -w +z -D_RWSTD_MULTI_THREAD -D_REENTRANT
CC = aCC -AA
LINK = ${CC} -Wl,+s -Wl,+b,. ${LDFLAGS}
PLATFORM_LIB_LINK_OPTIONS=-L/opt/aCC/lib -L/usr/ccs/lib -lpthread
SHLIBSUFFIX=.sl
else
ifneq (${DEBUG}, 1)
CXXFLAGS = -w +O1
endif
APPL_NAME = $(notdir $(shell pwd))
TEMPLATESDIR = $(XERCESCROOT)/bin/obj/$(APPL_NAME)/ptrepository
COMMON_CMP = $(CXXFLAGS) -D_HP_UX -DHPCC +DAportable -w +eh +z -z \
-ptr$(TEMPLATESDIR)
CMP = -c $(COMMON_CMP)
CC = CC
LINK = ${CC} $(COMMON_CMP) -Wl,+s -Wl,+b,. ${LDFLAGS}
PLATFORM_LIB_LINK_OPTIONS=-L/opt/CC/lib -L/usr/lib
SHLIBSUFFIX=.sl
endif
endif
rerun the runConfigure script with the options you've used before and rebuild the samples. For instance, the output for the SAXPrint build should look like this (approx)
aCC -AA -I. -I/home/egarciam/desllo/xerces/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -D_RWSTD_MULTI_THREAD -D_REENTRANT -o /home/egarciam/desllo/xerces/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/egarciam/desllo/xerces/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrint.cpp
Warning: 1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -AA -I. -I/home/egarciam/desllo/xerces/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -D_RWSTD_MULTI_THREAD -D_REENTRANT -o /home/egarciam/desllo/xerces/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o /home/egarciam/desllo/xerces/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrintHandlers.cpp
Checkout the -AA appearing twice. I have no explanation to this but it worked for me.
Regards
-----Mensaje original-----
De: Kathiravan [mailto:kathiravan@visolve.com]
Enviado el: viernes, 05 de diciembre de 2003 13:15
Para: xerces-c-dev@xml.apache.org
Asunto: Ernesto, Error during gmake in samples dir
Hi Ernesto,
As you said, i have cleaned all files using
$gmake distclean
in both source and samples directory and run the same configure command ($runConfigure -p hp-11 -x aCC -c cc -r pthread -b 32 -z -AA) in both source and samples. In the source i didn't receive any error message, but while building samples i received error in gmake which is as follow,
$ gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrint.cpp
Warning: 1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrintHandlers.cpp
aCC -Wl,+s -Wl,+b,. -L/opt/aCC/lib -L/usr/ccs/lib -lpthread /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o /home/kav/xerces-c-src_2_3_0/bin/SAXPrint -L/home/kav/xerces-c-src_2_3_0/lib -lxerces-c
/usr/ccs/bin/ld: Unsatisfied symbols:
std::cout (data)
xercesc_2_3::SAXParseException::getColumnNumber() const (code)
std::__rw_exception::_C_assign(const char *,unsigned long) (code)
__rw::__rw_digit_writer_base::_C_digitize(long double) (code)
__rw::__rw_digit_writer_base::_C_digitize(double) (code)
__rw::__rw_numpunct_impl<char>::_C_ivals (data)
std::__rw_std_streams (data)
std::ios_base::Init::Init()%1 (code)
std::cerr (data)
__rw::__rw_digit_writer_base::_C_calc_groups(int,const char *) (code)
std::ios_base::_C_unsafe_clear(int,int) (code)
typeid<xercesc_2_3::SAXParseException> (data)
xercesc_2_3::SAXParseException::getLineNumber() const (code)
__rw::__rw_digit_writer_base::_C_digitize(unsigned long,bool,const char *) (code)
std::ios_base::_C_fire_event(std::ios_base::event,bool) (code)
std::ctype_byname<char>::ctype_byname(const char *,unsigned long) (code)
xercesc_2_3::SAXParseException::~SAXParseException() (code)
Class tables [Vtable] dependent on key function: "std::exception::~exception()" (data)
typeid<std::exception> (data)
__rw::__rw_digit_writer_base::_C_digitize(unsigned long long,bool) (code)
std::ctype<char>::ctype(const std::ctype_base::mask *,bool,unsigned long) (code)
std::exception::~exception() (code)
std::ctype<char>::_C_initfacet(const std::locale &) (code)
static __rw::__rw_numpunct_impl_base::_C_get_named_init_(const char *) (code)
std::__rw_exception::_C_vformat(int,double *) (code)
std::ctype<char>::id (data)
xercesc_2_3::SAXParseException::SAXParseException(const xercesc_2_3::SAXParseException &)%1 (code)
xercesc_2_3::SAXParseException::getSystemId() const (code)
std::ios_base::_C_sync_with_stdio (data)
std::locale::_C_make_facet(const std::locale::id &,bool,int,__rw::__rw_facet_base *(*)(int,const char *,unsigned long)) const (code)
std::ctype<char>::_C_classic_table (data)
std::codecvt_byname<wchar_t,char,mbstate_t>::do_out(mbstate_t &,const wchar_t *,const wchar_t *,const wchar_t *&,char *,char *,char *&) const (code)
_HPMutexWrapper::~_HPMutexWrapper() (code)
__rw::__rw_digit_writer_base::_C_digitize(const void *) (code)
std::codecvt_byname<wchar_t,char,mbstate_t>::do_in(mbstate_t &,const char *,const char *,const char *&,wchar_t *,wchar_t *,wchar_t *&) const (code)
std::basic_string<char,std::char_traits<char>,std::allocator<char>>::__nullref (data)
std::ios_base::Init::~Init() (code)
gmake[1]: *** [/home/kav/xerces-c-src_2_3_0/bin/SAXPrint] Error 1
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
gmake: *** [saxprint] Error 2
$ codecvt_bynamecodecvt_bynamecodecvt_byname
$ gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
Building SAX2Print
gmake -C SAX2Print
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAX2Print'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2Print.o /home/kav/xerces-c-src_2_3_0/samples/SAX2Print/SAX2Print.cpp
Warning: 1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O -DXML_USE_PTHREADS -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2PrintHandlers.o /home/kav/xerces-c-src_2_3_0/samples/SAX2Print/SAX2PrintHandlers.cpp
aCC -Wl,+s -Wl,+b,. -L/opt/aCC/lib -L/usr/ccs/lib -lpthread /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2Print.o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2PrintHandlers.o -o /home/kav/xerces-c-src_2_3_0/bin/SAX2Print -L/home/kav/xerces-c-src_2_3_0/lib -lxerces-c
/usr/ccs/bin/ld: Unsatisfied symbols:
std::cout (data)
xercesc_2_3::SAXParseException::getColumnNumber() const (code)
std::__rw_exception::_C_assign(const char *,unsigned long) (code)
__rw::__rw_digit_writer_base::_C_digitize(long double) (code)
__rw::__rw_digit_writer_base::_C_digitize(double) (code)
__rw::__rw_numpunct_impl<char>::_C_ivals (data)
std::__rw_std_streams (data)
std::ios_base::Init::Init()%1 (code)
std::cerr (data)
__rw::__rw_digit_writer_base::_C_calc_groups(int,const char *) (code)
std::ios_base::_C_unsafe_clear(int,int) (code)
typeid<xercesc_2_3::SAXParseException> (data)
xercesc_2_3::SAXParseException::getLineNumber() const (code)
__rw::__rw_digit_writer_base::_C_digitize(unsigned long,bool,const char *) (code)
std::ios_base::_C_fire_event(std::ios_base::event,bool) (code)
std::ctype_byname<char>::ctype_byname(const char *,unsigned long) (code)
xercesc_2_3::SAXParseException::~SAXParseException() (code)
Class tables [Vtable] dependent on key function: "std::exception::~exception()" (data)
typeid<std::exception> (data)
__rw::__rw_digit_writer_base::_C_digitize(unsigned long long,bool) (code)
std::ctype<char>::ctype(const std::ctype_base::mask *,bool,unsigned long) (code)
std::exception::~exception() (code)
std::ctype<char>::_C_initfacet(const std::locale &) (code)
static __rw::__rw_numpunct_impl_base::_C_get_named_init_(const char *) (code)
std::__rw_exception::_C_vformat(int,double *) (code)
std::ctype<char>::id (data)
xercesc_2_3::SAXParseException::SAXParseException(const xercesc_2_3::SAXParseException &)%1 (code)
xercesc_2_3::SAXParseException::getSystemId() const (code)
std::ios_base::_C_sync_with_stdio (data)
std::locale::_C_make_facet(const std::locale::id &,bool,int,__rw::__rw_facet_base *(*)(int,const char *,unsigned long)) const (code)
std::ctype<char>::_C_classic_table (data)
std::codecvt_byname<wchar_t,char,mbstate_t>::do_out(mbstate_t &,const wchar_t *,const wchar_t *,const wchar_t *&,char *,char *,char *&) const (code)
_HPMutexWrapper::~_HPMutexWrapper() (code)
__rw::__rw_digit_writer_base::_C_digitize(const void *) (code)
std::codecvt_byname<wchar_t,char,mbstate_t>::do_in(mbstate_t &,const char *,const char *,const char *&,wchar_t *,wchar_t *,wchar_t *&) const (code)
std::basic_string<char,std::char_traits<char>,std::allocator<char>>::__nullref (data)
std::ios_base::Init::~Init() (code)
gmake[1]: *** [/home/kav/xerces-c-src_2_3_0/bin/SAX2Print] Error 1
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAX2Print'
gmake: *** [sax2print] Error 2
Could you please analze this one.
-Kathir.V
_____________________________________________________________
Uni2 Telecomunicaciones, S.A.U.
Aviso legal:
Este mensaje electrónico está dirigido únicamente a la(s) dirección(es) indicadas anteriormente; el carácter confidencial, personal e intransferible del mismo está protegido legalmente. Cualquier revelación, uso o reenvío no autorizado, completo o en parte, está prohibido.
Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que lo ha enviado y borre el mensaje original junto con sus ficheros anexos sin leerlo ni grabarlo, total o parcialmente.
Gracias