[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
AIX build adventures
- To: OpenLDAP-software@OpenLDAP.org
- Subject: AIX build adventures
- From: "Jürgen" Weber <jugewe@yahoo.com.br>
- Date: Tue, 24 Jan 2006 14:03:12 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XX6yJGqEZJJHckOjG8HCaPfeMgO9vhW9Fk0pK25BS4hRhH/eX8w5PZ+uXJH1uf6dW9yHaX98U4AqJ6ijPsuUFK4nm4ZW3i+Uez6HzhPbzxkk/Dt8t8DgpC50HH/7eet1HMX3n2RihXuJQMncQo+cMexOiMPLmt9xAyGVqtzoJ8c= ;
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