On 10/22/13 05:27 PM, Quanah Gibson-Mount wrote:
Configure & build.
Execute the test suite (via make test) after it is built.
Built on Solaris 10 SPARC, 64-bit with Studio 12.1, config like so:
CC=/opt/sunstudio12.1/bin/cc ; export CC CFLAGS="-g -xs -KPIC -xarch=v9" ; export CFLAGS LTCFLAGS='-g -xs -KPIC -xarch=v9'; export LTCFLAGS LDFLAGS="-R${LDAPDIR}/lib -L${LDAPDIR}/lib -R/opt/csw/lib/sparcv9 -L/opt/csw/lib/sparcv9" ; export LDFLAGS CPPFLAGS="-I${LDAPDIR}/include -I/opt/csw/include" ; export CPPFLAGS
./configure --prefix=${LDAPDIR} \ --libexecdir=${LDAPDIR}/sbin --localstatedir=/var/run --datadir=/var/openldap/data \ --sysconfdir=/etc/opt/openldap/etc --mandir=${LDAPDIR}/man --with-subdir=no \ --disable-rlookups --with-tls=openssl \ --enable-slapd --enable-crypt --with-cyrus-sasl=no --enable-debug \ --enable-dynamic --enable-modules \ --enable-backends=mod --enable-overlays=mod --enable-sql=no \ --enable-perl=no --enable-ndb=no --enable-shell=no --enable-hdb=no --enable-bdb=no
I'm getting this:
Den:/home/hume/src/openldap-OPENLDAP_REL_ENG_2_4-a75e57d/tests> make mdb Initiating LDAP tests for MDB... Cleaning up test run directory leftover from previous run. Running ./scripts/all for mdb... >>>>> Executing all LDAP tests for mdb >>>>> Starting test000-rootdse for mdb... running defines.sh Starting slapd on TCP/IP port 9011... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... 5938 Abort - core dumped Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ^C
Den:/home/hume/src/openldap-OPENLDAP_REL_ENG_2_4-a75e57d/tests> pstack core core 'core' of 5938: /home/hume/src/openldap-OPENLDAP_REL_ENG_2_4-a75e57d/servers/slapd/.li ffffffff7d2da094 _lwp_kill (6, 0, ffffffff7d2b8e14, ffffffffffffffff, ffffffff7d43c000, 0) + 8 ffffffff7d24afb0 abort (1, 1d8, 0, 1f115c, 0, 0) + 118 ffffffff7d24b254 _assert (ffffffff7ca562a0, ffffffff7ca56188, 11f4, 0, 1f0e14, ffffffff7f736420) + 74 ffffffff7ca42958 mdb_page_get (1004b71f0, 300000003, 1005e8728, 0, ffffffff7f736c60, 821) + 250 ffffffff7ca431cc mdb_page_search (1005e86e0, 0, 4, ffffffff7ca45af0, 0, ffffffff7f736540) + 2bc ffffffff7ca454fc mdb_cursor_first (1005e86e0, ffffffff7fffe938, ffffffff7fffe928, ffffffff7ca0bcbc, ffffffff7d43c000, 2000) + 8c ffffffff7ca46230 mdb_cursor_get (1005e86e0, ffffffff7fffe938, ffffffff7fffe928, 0, 100467930, 0) + 740 ffffffff7ca0bcbc mdb_db_open (1003a74e0, ffffffff7fffebbc, 10017ee60, 1003a68e0, 0, 0) + dc4 0000000100061f14 backend_startup_one (1003a74e0, ffffffff7fffebbc, 23, 2, ffffffff7d2ad2dc, 23) + 204 00000001000626e4 backend_startup (0, 1, 100184c28, ffffffff7ffff401, 0, 0) + 61c 00000001000a0ce4 slap_startup (0, 1800, 0, ffffffff7d448044, ffffffff7d43c000, ffffffff7d44d5d8) + e4 0000000100017f00 main (8, ffffffff7ffff008, ffffffff7ffff050, ffffffff7d24b800, ffffffff7df00280, ffffffff7ec00200) + 21a8 00000001000153bc _start (0, 0, 0, 0, 0, 0) + 17c
I'm installing GCC 4.8 now to see if it behaves differently when built with that. After that I'll try a different Solaris box (this one is a toybox, and getting a bit long in the tooth besides).