[xmlsec] xmlsec: compilation on IBM AIX 4.3 , core dump

Aleksey Sanin aleksey at aleksey.com
Wed Jun 4 19:20:23 PDT 2003


Great! Thanks for information! I did a quick search and it seems that 
it's a common
thing to add -D_ALL_SOURCE in AIX case from configure.in. I did the same 
(see
attached patch). Now you don't need to specify it manually.

And I guess I know what is the problem with shared libraries. In xmlsec 
there are
several constant strings declared in one shared library (xmlsec) and 
used in another
libraries (xmlsec-crypto). On Windows I workaround this problem by just 
linking
strings.c with all shared libraries. Probably the same should be done 
for AIX and
probably for all other platforms. An additional couple dozens KBs is not 
worth
the time spent on it. I need to think about that but it seems more or 
less trivial to do.

Aleksey


doug_mail at pop.hotpop.com wrote:

>It looks like there are some link problems on AIX when using shared
>libraries. Not quite sure what configure is doing that causes problems.
>
>The following configure options worked to build on AIX 4.3.
>
>#libxml2-2.5.7
>#!/bin/sh
>env CC=xlc_r CFLAGS=-D_ALL_SOURCE \
>  ./configure \
>    --with-iconv=no \
>    --without-python 
>
>#openssl-0.9.7b
>#!/bin/sh
>./config 
>
>#xmlsec1-1.0.1
>#!/bin/sh
>env -i PATH=/bin:/usr/bin \
>       CC=xlc_r \
>       CFLAGS="-g -D_ALL_SOURCE" \
>  ./configure \
>    --disable-shared 
>
>
>
>--------------------------------------------------------------------
>mail2web - Check your email from the web at
>http://mail2web.com/ .
>
>  
>
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/gnome/xmlsec/configure.in,v
retrieving revision 1.69
diff -u -r1.69 configure.in
--- configure.in	3 Jun 2003 07:10:43 -0000	1.69
+++ configure.in	5 Jun 2003 02:12:42 -0000
@@ -80,6 +80,16 @@
 
 
 dnl ==========================================================================
+dnl Perform host specific configuration
+dnl ==========================================================================
+case "${host}" in
+    *aix* )
+	CFLAGS="${CFLAGS} -D_ALL_SOURCE"
+	;;
+esac
+
+
+dnl ==========================================================================
 dnl check do we have size_t and its size, 
 dnl TODO: will need to replace this and the xmlSecSize define with 
 dnl typedef on next ABI refresh


More information about the xmlsec mailing list