[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: AIX 4.3.3 build problem - crash when calling liblber function s from libldap_r (openldap 2.0.23)

You can use either xlC or gcc but you have to configure it with
--enable-shared=no/--disable-shared on AIX.  I don't recall the exact reason
why (you can probably search old mail threads) but it has something to do
with how the shared libraries are created.  That's compiled using AIX's ld,
as, etc.  I haven't tried to build shared libraries with GNU binutils.
Might want to give that a try if you really want shared libraries.


-----Original Message-----
From: Tim Murphy [mailto:tmurphy@micromuse.com]
Sent: Wednesday, May 15, 2002 9:57 AM
To: openldap-software@OpenLDAP.org
Subject: AIX 4.3.3 build problem - crash when calling liblber functions
from libldap_r (openldap 2.0.23)


I wonder if anyone has had this problem before:

I successfully compiled openldap 2.0.23 with cyrus sasl (linked 
statically for various reasons) and open-ssl (linked dynamically).

What I find is that the first time a function in libldap or libldap_r 
calls anything in liblber, my application segfaults.  This happens after 
the function call has happened (gdb reports that the crash is in 
function X in liblber) but before the first statement in that function 
is executed.

I created an empty test function in liblber just to make sure that the 
issue was with the function call - even calling this empty function 
causes a segfault.

I am not sure what to look for - could be some kind of calling 
convention problem or something like that.   If anyone has had a similar 
problem I'd be glad to know.

I need to use the AIX C compiler and using gcc doesn't help anyway.