[ 
https://issues.apache.org/jira/browse/XERCESC-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802346#action_12802346
 ] 

Boris Kolpackov commented on XERCESC-1904:
------------------------------------------

To fix 3.0.1 you will need to install a fairly recent versions of autotools 
(automake, autoconf, and libtool) and run  the reconf script in the root 
directory of the Xerces-C++ distribution (you can do it on a machine other than 
your AIX box). 

Regarding optimization, I am not sure what is the default debug/optimize 
setting for XLC in autotools. I know for g++ it is -g -O2. But you can always 
override this on the configure command line:

./configure CFLAGS=-O2 CXXFLAGS=-O2

I tend to think that the core dump with optimization enabled is a bug in XLC.


> Cannot build shared library from xerces-c 3.0.1 on AIX6.1 with xlC V10.1
> ------------------------------------------------------------------------
>
>                 Key: XERCESC-1904
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1904
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.0.1
>         Environment: OS : AIX 6.1 TL3 SP1
> Compiler: IBM XL C/C++ Enterprise Edition for AIX, V10.1
>            Reporter: Gauthier Helin
>            Priority: Blocker
>         Attachments: config.log, config.log_3.1.0
>
>
> Hello,
> I cannot build the xerces 3.0.1 shared library on AIX 6.1 with xlC 10.1. It 
> always produce the static library even if I specify --enable-shared=yes.
> I tried may different ./configure and gmake options without any success.
> here is some output of the ./configure which shows that it thinks that the 
> linker does not support shared libs :
> checking if xlc_r supports -c -o file.o... yes
> checking whether the xlc_r linker (/usr/bin/ld) supports shared libraries... 
> no
> checking dynamic linker characteristics... no
> checking how to hardcode library paths into programs... unsupported
> checking whether stripping libraries is possible... no
> checking if libtool supports shared libraries... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... 
> no
> checking for xlC_r option to produce PIC... 
> checking if xlC_r static flag  works... yes
> checking if xlC_r supports -c -o file.o... yes
> checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... 
> no
> checking dynamic linker characteristics... no
> (cached) (cached) checking how to hardcode library paths into programs... 
> unsupported
> appending configuration tag "F77" to libtool
> checking whether xlc_r and cc understand -c and -o together... yes
> the command line used was :
> ./configure --prefix=$PREFIX CXX=xlC_r CC=xlc_r --enable-shared=yes
> gmake libxerces_c_la_LDFLAGS=-qmkshrobj
> This was working fine on AIX 5.3 with xlC 7
> Thanks a lot for any help.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to