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 "Nicole Bayerlein (JIRA)" <xe...@xml.apache.org> on 2010/02/10 14:34:27 UTC
[jira] Commented: (XERCESC-1889) Cannot build shared library from
xerces-c 3.0.1 (64bit) on AIX6.1 with xlC V9
[ https://issues.apache.org/jira/browse/XERCESC-1889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831983#action_12831983 ]
Nicole Bayerlein commented on XERCESC-1889:
-------------------------------------------
I had this problem with another software for AIX 6.1 and I tried GNU ld and GNU make, but it didn't work, then I looked into the configure script and found cases like:
# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
...
aix4* | aix5*)
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
test "$enable_shared" = yes && enable_static=no
fi
;;
esac
on AIX 6.1 $host_os seems to be only aix, so I added at the aix5 cases |aix and the result were shared libraries yes.
Look into your configure script if there are only cases for lower AIX versions.
> Cannot build shared library from xerces-c 3.0.1 (64bit) on AIX6.1 with xlC V9
> -----------------------------------------------------------------------------
>
> Key: XERCESC-1889
> URL: https://issues.apache.org/jira/browse/XERCESC-1889
> Project: Xerces-C++
> Issue Type: Bug
> Components: Build
> Affects Versions: 3.0.1
> Environment: OS: AIX 6.1
> Compiler: IBM XL C/C++ Enterprise Edition for AIX, V9.0
> Object Mode: 64 bit
> Reporter: Lin Shen
>
> when building xerces-c 3.0.1 (64bit) on AIX 6.1 with VisualAge 9, the static library was built easily; but the shared library cannot be built.
> The following is the details for configuration and build:
> export OBJECT_MODE=64
> Configure command:
> ./configure --prefix=/opt/manhattan64/xerces-c/3.0.1 --enable-shared=yes CXX=xlC_r CC=xlC_r CXXFLAGS=-q64 CFLAGS=-q64 |tee cfg.txt 2>&1
> Build command:
> gmake libxerces_c_la_LDFLAGS=-qmkshrobj
> The following is the partial output from configure log, cfg.txt:
> +58 checking for xlC_r option to produce PIC...
> +59 checking if xlC_r static flag -bnso -bI:/lib/syscalls.exp works... no
> +60 checking if xlC_r supports -c -o file.o... yes
> +61 checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
> +62 checking dynamic linker characteristics... no
> +63 checking how to hardcode library paths into programs... unsupported
> +64 checking whether stripping libraries is possible... no
> +65 checking if libtool supports shared libraries... no
> +66 checking whether to build shared libraries... no
> +67 checking whether to build static libraries... yes
> +68 configure: creating libtool
> +69 appending configuration tag "CXX" to libtool
> +70 checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
> +71 checking for xlC_r option to produce PIC...
> +72 checking if xlC_r static flag works... yes
> +73 checking if xlC_r supports -c -o file.o... yes
> +74 checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
> +75 checking dynamic linker characteristics... no
--
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-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org