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

AIX build adventures



AIX build adventures

Hi everybody,

I tried to build openldap-2.3.18 on AIX 5.2 (gcc). 

But I only was successful with --with-threads=no

The trick was to

export CPPFLAGS="-I/oss/BerkeleyDB.4.3/include"
export LIBPATH=/oss/BerkeleyDB.4.3/lib 

and especially

export LDFLAGS="-L/oss/BerkeleyDB.4.3/lib -ldb
-lpthread"

Seems BerkeleyDB needs libpthread (which is switched
off by --with-threads)


With threads I got a segmentation violation. I guess
configure did something wrong, because when I
commented out the #ifdef'd lines in threads.c the
segmentation violation happened only later, so it
seems it has something todo with
LDAP_THREAD_HAVE_TPOOL.


apache@tio:/oss/openldap/libexec dbx slapd
Type 'help' for help.
warning: The core file is truncated.  You may need to
increasethe ulimit
for file and coredump, or free some space on the
filesystem.
[using memory image in core]
reading symbolic information ...
warning: Unable to access address 0xf11d9d94 from core
pthdb_session.c, 526: 1 PTHDB_CALLBACK (callback
failed)
pthreaded.c, 1800: PTHDB_CALLBACK (callback failed)

Segmentation fault in glink.pthread_self at 0xd0d70d44
0xd0d70d44 (pthread_self+0x8) 800c0000        lwz  
r0,0x0(r12)
(dbx) where
warning: Unable to access address 0xf11d9d94 from core
pthdb_session.c, 526: 1 PTHDB_CALLBACK (callback
failed)
pthreaded.c, 1800: PTHDB_CALLBACK (callback failed)
glink.pthread_self() at 0xd0d70d44
ldap_pvt_thread_self(), line 360 in "thr_posix.c"
ldap_int_thread_pool_startup(), line 103 in "tpool.c"
ldap_pvt_thread_initialize(), line 49 in "threads.c"
main(??, ??) at 0x1000065c
(dbx)



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com