You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Sandeep Shahane <Sa...@symantec.com> on 2006/07/28 15:58:02 UTC
Errors building xerces on AIX
Hi,
I am building xerces library on AIX (4.3.3, but later plan to also
build on 5.x versions) with runconfigure options as ./runConfigure -p
aix -c gcc -x g++ -d -C "--prefix=/usr/local/xerces". (I do not have
native AIX compiler.)
After building all .o files it gives error makeC++SharedLib not found. I
searched over the web for this error, and seems like it still uses
native xcl compiler that I dont have. So, now I want to override it with
equivalent g++ options. What do I need to do (is only changes
Makefile.incl sufficient, or did I miss anything else) ?
What are the appropriate g++ options that I need to specify 'coz the
options that i tried as below still gives errors
g++ -DAIX -shared -fPIC -Wl,-soname,libxerces-c.so -o
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
I tried modifying Makefile.incl in AIX section to make shared lib with
g++ -v --shared ${LDFLAGS} options that also didn't work.
Thanks and Regards,
Sandeep
RE: Errors building xerces on AIX
Posted by sandip shahane <sa...@yahoo.com>.
I used this Makefile.incl and linked newly built .o
files. But now getting some linker "Undefined symbol"
errors. there were few _pthread related errors that I
resolved using -mthreads option, but still getting
error as
ld: 0711-317 ERROR: Undefined symbol:
.pthread_mutexattr_setkind_np
I searched for this error to get following link.
http://marc2.theaimsgroup.com/?l=xerces-c-dev&m=101666939623756&w=2
that suggests using
pthread_mutexattr_settype (attr,
PTHREAD_MUTEX_RECURSIVE);
instead of
//pthread_mutexattr_setkind_np(attr,
MUTEX_RECURSIVE_NP);
And that solves my problem.
As both of the above funcitons do the same thing, I
think it works.
Please let me know if it can not be done for some
reason.
Thanks,
Sandeep Shahane
--- "Pluta, Edward" <Ed...@csgsystems.com>
wrote:
> What we did was to change the Makefile.incl to
> basically have the save
> options as a linux compile. I have attached our
> version of the
> Makefile.incl (not sure if it will come through or
> not). The only
> section that I believe we changed was the AIX
> options now has an IF for
> gcc, other wise it does what it did before. We used
> gcc 4.1.1 on AIX
> 5.2, but it should work for you as well.
>
> I was going to forward this to the development staff
> at one point but
> could not figure out where to send it. Does anyone
> know?
>
> Good luck.
>
> ________________________________
>
> From: Sandeep Shahane
> [mailto:Sandeep_Shahane@symantec.com]
> Sent: Friday, July 28, 2006 8:58 AM
> To: p-dev@xerces.apache.org
> Subject: Errors building xerces on AIX
>
>
> Hi,
> I am building xerces library on AIX (4.3.3, but
> later plan to also
> build on 5.x versions) with runconfigure options as
> ./runConfigure -p
> aix -c gcc -x g++ -d -C
> "--prefix=/usr/local/xerces". (I do not have
> native AIX compiler.)
>
> After building all .o files it gives error
> makeC++SharedLib not found. I
> searched over the web for this error, and seems like
> it still uses
> native xcl compiler that I dont have. So, now I want
> to override it with
> equivalent g++ options. What do I need to do (is
> only changes
> Makefile.incl sufficient, or did I miss anything
> else) ?
>
> What are the appropriate g++ options that I need to
> specify 'coz the
> options that i tried as below still gives errors
>
> g++ -DAIX -shared -fPIC -Wl,-soname,libxerces-c.so
> -o
>
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
>
> I tried modifying Makefile.incl in AIX section to
> make shared lib with
> g++ -v --shared ${LDFLAGS} options that also didn't
> work.
>
> Thanks and Regards,
> Sandeep
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail:
p-dev-help@xerces.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
using wstring?
Posted by sandip shahane <sa...@yahoo.com>.
Hello all,
Now that I have got compilable source code and
library available i am looking to write test code. One
thing i want to know is, is there any kind of wstring
support with xerces? My application is intended to use
wstring based class (It is must since all code base
that was earlier on windows is using wstring, and now
i want to port it to other platforms of UNIX). Also it
shall support I18 viz. foreign language character set
e.g. japanese etc... I have seen XMLString examples at
some places that does ::transcode(...) to and fro
XMLCh * to char * . What does this transcode(...) do?
If possible my strategy is to use this way to get char
* from xerces's XMLCh * and convert it back to wstring
using wcstombs and vice versa.
Has anybody done this way, any issues, or alternatives
because i think this is going to be too expensive.
Is there any better way? Or has anybody used any other
simpler way? If so, some sample code will be greatly
helpful.
Thanks,
Sandeep Shahane
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
"Pluta, Edward" <Ed...@csgsystems.com> wrote on 07/31/2006 12:12:36
PM:
> Glad it worked for you. :)
>
> I just realized this is the xerces-p list. If you intend to build
> xerces-p on AIX let me know; It's even more difficult (when using gcc),
> but I have most of my notes and updated files.
>
> Does anyone on this list know who to contact to submit patches for
> either xerces-c or xerces-p?
The best way to do this is to create a set of diffs against SVN and attach
them to a JIRA issue [1][2]. Depending on whether your patches are new
features you may also need to fill out a contributor license agreement
[3]. There's more on this in section 7 of the Xerces Charter at:
http://xerces.apache.org/charter.html.
> Regards.
> ed
>
> -----Original Message-----
> From: sandip shahane [mailto:sandipshahane@yahoo.com]
> Sent: Monday, July 31, 2006 10:36 AM
> To: p-dev@xerces.apache.org
> Subject: RE: Errors building xerces on AIX
>
> Thanks it did work with your suggestion. I also added explicit reference
> to pthreads library during link time that took care of errors.
> Thanks a lot,
> Sandeep Shahane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: p-dev-help@xerces.apache.org
Thanks.
[1] http://issues.apache.org/jira/browse/XERCESC
[2] http://issues.apache.org/jira/browse/XERCESP
[3] http://www.apache.org/licenses/icla.txt
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by "Pluta, Edward" <Ed...@csgsystems.com>.
Glad it worked for you. :)
I just realized this is the xerces-p list. If you intend to build
xerces-p on AIX let me know; It's even more difficult (when using gcc),
but I have most of my notes and updated files.
Does anyone on this list know who to contact to submit patches for
either xerces-c or xerces-p?
Regards.
ed
-----Original Message-----
From: sandip shahane [mailto:sandipshahane@yahoo.com]
Sent: Monday, July 31, 2006 10:36 AM
To: p-dev@xerces.apache.org
Subject: RE: Errors building xerces on AIX
Thanks it did work with your suggestion. I also added explicit reference
to pthreads library during link time that took care of errors.
Thanks a lot,
Sandeep Shahane
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by sandip shahane <sa...@yahoo.com>.
Thanks it did work with your suggestion. I also added
explicit reference to pthreads library during link
time that took care of errors.
Thanks a lot,
Sandeep Shahane
--- "Pluta, Edward" <Ed...@csgsystems.com>
wrote:
> I used the following env variables
>
> CFLAGS="-O2 -mcpu=powerpc"
> CXXFLAGS="$CFLAGS"
> (And of cousre whatever xerces requires)
>
> And command to build the package
>
> ./runConfigure -paix -cgcc -xg++ -b32
> -P/usr/local/xerces -rpthread
>
> Hopefully the -r pthread will fix your issue.
>
> -----Original Message-----
> From: sandip shahane
> [mailto:sandipshahane@yahoo.com]
> Sent: Sunday, July 30, 2006 9:56 AM
> To: p-dev@xerces.apache.org
> Subject: RE: Errors building xerces on AIX
>
> Doing this also I am still getting errors as
> ld: 0711-317 ERROR: Undefined symbol:
> .pthread_mutexattr_settype
>
> What is missing?
>
> --- "Pluta, Edward" <Ed...@csgsystems.com>
> wrote:
>
> > What we did was to change the Makefile.incl to
> basically have the save
>
> > options as a linux compile. I have attached our
> version of the
> > Makefile.incl (not sure if it will come through or
> not). The only
> > section that I believe we changed was the AIX
> options now has an IF
> > for gcc, other wise it does what it did before. We
> used gcc 4.1.1 on
> > AIX 5.2, but it should work for you as well.
> >
> > I was going to forward this to the development
> staff at one point but
> > could not figure out where to send it. Does anyone
> know?
> >
> > Good luck.
> >
> > ________________________________
> >
> > From: Sandeep Shahane
> > [mailto:Sandeep_Shahane@symantec.com]
> > Sent: Friday, July 28, 2006 8:58 AM
> > To: p-dev@xerces.apache.org
> > Subject: Errors building xerces on AIX
> >
> >
> > Hi,
> > I am building xerces library on AIX (4.3.3,
> but later plan to also
>
> > build on 5.x versions) with runconfigure options
> as ./runConfigure -p
> > aix -c gcc -x g++ -d -C
> "--prefix=/usr/local/xerces". (I do not have
> > native AIX compiler.)
> >
> > After building all .o files it gives error
> > makeC++SharedLib not found. I
> > searched over the web for this error, and seems
> like it still uses
> > native xcl compiler that I dont have. So, now I
> want to override it
> > with equivalent g++ options. What do I need to do
> (is only changes
> > Makefile.incl sufficient, or did I miss anything
> > else) ?
> >
> > What are the appropriate g++ options that I need
> to specify 'coz the
> > options that i tried as below still gives errors
> >
> > g++ -DAIX -shared -fPIC
> -Wl,-soname,libxerces-c.so
> > -o
> >
>
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
> >
> > I tried modifying Makefile.incl in AIX section to
> make shared lib with
> > g++ -v --shared ${LDFLAGS} options that also
> didn't
> > work.
> >
> > Thanks and Regards,
> > Sandeep
> >
> >
> > >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > p-dev-unsubscribe@xerces.apache.org
> > For additional commands, e-mail:
> p-dev-help@xerces.apache.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail:
> p-dev-help@xerces.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail:
> p-dev-help@xerces.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by "Pluta, Edward" <Ed...@csgsystems.com>.
I used the following env variables
CFLAGS="-O2 -mcpu=powerpc"
CXXFLAGS="$CFLAGS"
(And of cousre whatever xerces requires)
And command to build the package
./runConfigure -paix -cgcc -xg++ -b32 -P/usr/local/xerces -rpthread
Hopefully the -r pthread will fix your issue.
-----Original Message-----
From: sandip shahane [mailto:sandipshahane@yahoo.com]
Sent: Sunday, July 30, 2006 9:56 AM
To: p-dev@xerces.apache.org
Subject: RE: Errors building xerces on AIX
Doing this also I am still getting errors as
ld: 0711-317 ERROR: Undefined symbol:
.pthread_mutexattr_settype
What is missing?
--- "Pluta, Edward" <Ed...@csgsystems.com>
wrote:
> What we did was to change the Makefile.incl to basically have the save
> options as a linux compile. I have attached our version of the
> Makefile.incl (not sure if it will come through or not). The only
> section that I believe we changed was the AIX options now has an IF
> for gcc, other wise it does what it did before. We used gcc 4.1.1 on
> AIX 5.2, but it should work for you as well.
>
> I was going to forward this to the development staff at one point but
> could not figure out where to send it. Does anyone know?
>
> Good luck.
>
> ________________________________
>
> From: Sandeep Shahane
> [mailto:Sandeep_Shahane@symantec.com]
> Sent: Friday, July 28, 2006 8:58 AM
> To: p-dev@xerces.apache.org
> Subject: Errors building xerces on AIX
>
>
> Hi,
> I am building xerces library on AIX (4.3.3, but later plan to also
> build on 5.x versions) with runconfigure options as ./runConfigure -p
> aix -c gcc -x g++ -d -C "--prefix=/usr/local/xerces". (I do not have
> native AIX compiler.)
>
> After building all .o files it gives error
> makeC++SharedLib not found. I
> searched over the web for this error, and seems like it still uses
> native xcl compiler that I dont have. So, now I want to override it
> with equivalent g++ options. What do I need to do (is only changes
> Makefile.incl sufficient, or did I miss anything
> else) ?
>
> What are the appropriate g++ options that I need to specify 'coz the
> options that i tried as below still gives errors
>
> g++ -DAIX -shared -fPIC -Wl,-soname,libxerces-c.so
> -o
>
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
>
> I tried modifying Makefile.incl in AIX section to make shared lib with
> g++ -v --shared ${LDFLAGS} options that also didn't
> work.
>
> Thanks and Regards,
> Sandeep
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail:
p-dev-help@xerces.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by sandip shahane <sa...@yahoo.com>.
Doing this also I am still getting errors as
ld: 0711-317 ERROR: Undefined symbol:
.pthread_mutexattr_settype
What is missing?
--- "Pluta, Edward" <Ed...@csgsystems.com>
wrote:
> What we did was to change the Makefile.incl to
> basically have the save
> options as a linux compile. I have attached our
> version of the
> Makefile.incl (not sure if it will come through or
> not). The only
> section that I believe we changed was the AIX
> options now has an IF for
> gcc, other wise it does what it did before. We used
> gcc 4.1.1 on AIX
> 5.2, but it should work for you as well.
>
> I was going to forward this to the development staff
> at one point but
> could not figure out where to send it. Does anyone
> know?
>
> Good luck.
>
> ________________________________
>
> From: Sandeep Shahane
> [mailto:Sandeep_Shahane@symantec.com]
> Sent: Friday, July 28, 2006 8:58 AM
> To: p-dev@xerces.apache.org
> Subject: Errors building xerces on AIX
>
>
> Hi,
> I am building xerces library on AIX (4.3.3, but
> later plan to also
> build on 5.x versions) with runconfigure options as
> ./runConfigure -p
> aix -c gcc -x g++ -d -C
> "--prefix=/usr/local/xerces". (I do not have
> native AIX compiler.)
>
> After building all .o files it gives error
> makeC++SharedLib not found. I
> searched over the web for this error, and seems like
> it still uses
> native xcl compiler that I dont have. So, now I want
> to override it with
> equivalent g++ options. What do I need to do (is
> only changes
> Makefile.incl sufficient, or did I miss anything
> else) ?
>
> What are the appropriate g++ options that I need to
> specify 'coz the
> options that i tried as below still gives errors
>
> g++ -DAIX -shared -fPIC -Wl,-soname,libxerces-c.so
> -o
>
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
>
> I tried modifying Makefile.incl in AIX section to
> make shared lib with
> g++ -v --shared ${LDFLAGS} options that also didn't
> work.
>
> Thanks and Regards,
> Sandeep
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> p-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail:
p-dev-help@xerces.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
RE: Errors building xerces on AIX
Posted by "Pluta, Edward" <Ed...@csgsystems.com>.
What we did was to change the Makefile.incl to basically have the save
options as a linux compile. I have attached our version of the
Makefile.incl (not sure if it will come through or not). The only
section that I believe we changed was the AIX options now has an IF for
gcc, other wise it does what it did before. We used gcc 4.1.1 on AIX
5.2, but it should work for you as well.
I was going to forward this to the development staff at one point but
could not figure out where to send it. Does anyone know?
Good luck.
________________________________
From: Sandeep Shahane [mailto:Sandeep_Shahane@symantec.com]
Sent: Friday, July 28, 2006 8:58 AM
To: p-dev@xerces.apache.org
Subject: Errors building xerces on AIX
Hi,
I am building xerces library on AIX (4.3.3, but later plan to also
build on 5.x versions) with runconfigure options as ./runConfigure -p
aix -c gcc -x g++ -d -C "--prefix=/usr/local/xerces". (I do not have
native AIX compiler.)
After building all .o files it gives error makeC++SharedLib not found. I
searched over the web for this error, and seems like it still uses
native xcl compiler that I dont have. So, now I want to override it with
equivalent g++ options. What do I need to do (is only changes
Makefile.incl sufficient, or did I miss anything else) ?
What are the appropriate g++ options that I need to specify 'coz the
options that i tried as below still gives errors
g++ -DAIX -shared -fPIC -Wl,-soname,libxerces-c.so -o
/home/mpai/xerces/xerces-c-src_2_7_0/lib/libxerces-c.so
I tried modifying Makefile.incl in AIX section to make shared lib with
g++ -v --shared ${LDFLAGS} options that also didn't work.
Thanks and Regards,
Sandeep