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

Re: make test fails with Segmentation fault - openldap 2.1.16



Hi,

try this :

link your BerkeleyDB libs to /lib
(libdb-4.0.so) or (libdb-4.1.so)

Regards,

Cécile.


Quoting Franz Ehrengruber <franz@iptelenet.com>:

> Hello List Members,
> 
> I'm having problems with the latest version of openldap-2.1.16. 'make test'
> 
> fails with 18959 Segmentation fault. This is a rather long message showing 
> the output associated with the build commands, except for 'make depend' and
> 
> 'make'. I hope the information below is useful for someone to point me in the
> 
> right direction. Please help - Thank you.
> 
> Franz J. Ehrengruber
> IP.Telenet
> 
> 
> 1)System: Linux SuSE 8.1
> 
> 2)env CPPFLAGS="-I/usr/local/BerkeleyDB4.1/include"
> -------------------------------------------------
> LESSKEY=/etc/lesskey.bin
> MANPATH=/usr/share/man:/usr/local/man:/usr/X11R6/man:/opt/gnome/man
> INFODIR=/usr/local/info:/usr/share/info:/usr/info
> NNTPSERVER=news
> KDE_MULTIHEAD=false
> HOSTNAME=dyna
> XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
> SHELL=/bin/bash
> TERM=xterm
> HOST=dyna
> XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched
> PROFILEREAD=true
> GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc:/root/.gtkrc-kde
> GNOME_PATH=:/opt/gnome:/usr
> GS_LIB=/share/fonts
> KDEHOME=/root/.kde
> XSESSION_IS_UP=yes
> USER=root
> JRE_HOME=/usr/lib/java/jre
>
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
> OPENWINHOME=/usr/openwin
> XNLSPATH=/usr/X11R6/lib/X11/nls
> HOSTTYPE=i386
> KDEROOTHOME=/root/.kde
> SESSION_MANAGER=local/dyna:/tmp/.ICE-unix/24214
> PAGER=less
> LD_HWCAP_MASK=0x20000000
> KONSOLE_DCOP=DCOPRef(konsole-24841,konsole)
> MINICOM=-c on
>
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin
> GNOMEDIR=/opt/gnome
> CPU=i686
> JAVA_BINDIR=/usr/lib/java/jre/bin
> KONSOLE_DCOP_SESSION=DCOPRef(konsole-24841,session-1)
> PWD=/root/openldap-2.1.16
> INPUTRC=/etc/inputrc
> JAVA_HOME=/usr/lib/java/jre
> TEXINPUTS=:/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
> HOME=/root
> SHLVL=2
> OSTYPE=linux
> LESS_ADVANCED_PREPROCESSOR=no
> RC_LC_COLLATE=POSIX
> no_proxy=localhost
> LS_OPTIONS=-a -N --color=tty -T 0
> WINDOWMANAGER=/usr/X11R6/bin/kde
> LOGNAME=root
> MACHTYPE=i686-suse-linux
> LESS=-M -I
> RC_LANG=en_US
> PRINTER=lp
> LC_CTYPE=en_US
> LESSOPEN=lessopen.sh %s
> USE_FAM=
> INFOPATH=/usr/local/info:/usr/share/info:/usr/info
> DISPLAY=:0.0
> LESSCLOSE=lessclose.sh %s %s
> COLORTERM=
> JAVA_ROOT=/usr/lib/java
> _=/usr/bin/env
> OLDPWD=/root
> CPPFLAGS=-I/usr/local/BerkeleyDB4.1/include
> 
> 3) LDFLAGS="-L/usr/local/BerkeleyDB4.1/lib" ./configure --without-ldbm
> ----------------------------------------------------------------------
> Copyright 1998-2003 The OpenLDAP Foundation,  All Rights Reserved.
>         Restrictions apply, see COPYRIGHT and LICENSE files.
> Configuring OpenLDAP 2.1.16-Release ...
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for mawk... no
> checking for gawk... gawk
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gnutar... no
> checking for gtar... no
> checking for tar... tar
> checking configure arguments... done
> checking for a BSD compatible install... /usr/bin/install -c
> checking for cc... cc
> checking for ar... ar
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking for EMX OS/2 environment... no
> checking how to run the C preprocessor... cc -E
> checking for gcc... (cached) cc
> checking whether the C compiler (cc   -L/usr/local/BerkeleyDB4.1/lib)
> works... 
> yes
> checking whether the C compiler (cc   -L/usr/local/BerkeleyDB4.1/lib) is a 
> cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether cc accepts -g... yes
> checking for ld used by GCC... /usr/i486-suse-linux/bin/ld
> checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
> checking for /usr/i486-suse-linux/bin/ld option to reload object files...
> -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking for a sed that does not truncate output... /usr/bin/sed
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking for object suffix... o
> checking for executable suffix... no
> checking command to parse /usr/bin/nm -B output... ok
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for cc option to produce PIC... -fPIC
> checking if cc PIC flag -fPIC works... yes
> checking if cc static flag -static works... yes
> checking if cc supports -c -o file.o... yes
> checking if cc supports -c -o file.lo... yes
> checking if cc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/i486-suse-linux/bin/ld) supports shared 
> libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for shl_load... no
> checking for shl_load in -ldld... no
> checking for dlopen... no
> checking for dlopen in -ldl... yes
> checking whether a program can dlopen itself... yes
> checking whether a statically linked program can dlopen itself... no
> checking whether -lc should be explicitly linked in... no
> creating libtool
> checking whether ln works... yes
> checking whether ln -s works... (cached) yes
> checking how to run the C preprocessor... cc -E
> checking for Cygwin environment... (cached) no
> checking for mingw32 environment... (cached) no
> checking for executable suffix... (cached) no
> checking for object suffix... (cached) o
> checking for be_app in -lbe... no
> checking for cc option to accept ANSI C... none needed
> checking for cc depend flag... -M
> checking for afopen in -ls... no
> checking for EBCDIC... no
> checking for ANSI C header files... yes
> checking for dirent.h that defines DIR... yes
> checking for opendir in -ldir... no
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking POSIX termios... yes
> checking whether use of TIOCGWINSZ requires sys/ioctl.h... yes
> checking for arpa/inet.h... yes
> checking for arpa/nameser.h... yes
> checking for assert.h... yes
> checking for conio.h... no
> checking for crypt.h... yes
> checking for direct.h... no
> checking for errno.h... yes
> checking for fcntl.h... yes
> checking for filio.h... no
> checking for getopt.h... yes
> checking for grp.h... yes
> checking for io.h... no
> checking for libutil.h... no
> checking for limits.h... yes
> checking for locale.h... yes
> checking for netinet/tcp.h... yes
> checking for malloc.h... yes
> checking for memory.h... yes
> checking for psap.h... no
> checking for pwd.h... yes
> checking for process.h... no
> checking for resolv.h... yes
> checking for sgtty.h... yes
> checking for shadow.h... yes
> checking for stddef.h... yes
> checking for string.h... yes
> checking for strings.h... yes
> checking for sysexits.h... yes
> checking for sys/file.h... yes
> checking for sys/filio.h... no
> checking for sys/errno.h... yes
> checking for sys/ioctl.h... yes
> checking for sys/param.h... yes
> checking for sys/resource.h... yes
> checking for sys/select.h... yes
> checking for sys/socket.h... yes
> checking for sys/stat.h... yes
> checking for sys/syslog.h... yes
> checking for sys/time.h... yes
> checking for sys/types.h... yes
> checking for sys/ucred.h... no
> checking for sys/uio.h... yes
> checking for syslog.h... yes
> checking for termios.h... yes
> checking for unistd.h... yes
> checking for winsock.h... no
> checking for winsock2.h... no
> checking for dlopen... (cached) no
> checking for dlopen in -ldl... (cached) yes
> checking for sigset in -lV3... no
> checking for winsock... no
> checking for socket... yes
> checking for select... yes
> checking types of arguments for select()... int,fd_set *,struct timeval *
> checking for regex.h... yes
> checking for library containing regfree... none required
> checking for compatible POSIX regex... yes
> checking for sys/uuid.h... no
> checking to see if -lrpcrt4 is needed for win32 UUID support... no
> checking for res_query... no
> checking for __res_query... no
> checking for res_query in -lbind... no
> checking for __res_query in -lbind... no
> checking for res_query in -lresolv... yes
> checking for getaddrinfo... yes
> checking for getnameinfo... yes
> checking for gai_strerror... yes
> checking for inet_ntop... yes
> checking INET6_ADDRSTRLEN... yes
> checking struct sockaddr_storage... yes
> checking for sys/un.h... yes
> checking for openssl/ssl.h... yes
> checking for ssl.h... no
> checking for SSLeay_add_ssl_algorithms in -lssl... no
> checking for SSL_library_init in -lssl... yes
> checking for _beginthread... no
> checking for pthread.h... yes
> checking POSIX thread version... 10
> checking for LinuxThreads pthread.h... yes
> checking for GNU Pth pthread.h... no
> checking for sched.h... yes
> checking for pthread_create in default libraries... no
> checking for pthread link with -kthread... no
> checking for pthread link with -pthread... yes
> checking for sched_yield... yes
> checking for pthread_yield... yes
> checking for thr_yield... no
> checking for pthread_kill... yes
> checking for pthread_rwlock_destroy... yes
> checking for pthread_detach with <pthread.h>... yes
> checking for pthread_setconcurrency... yes
> checking for pthread_getconcurrency... yes
> checking for thr_setconcurrency... no
> checking for thr_getconcurrency... no
> checking for pthread_kill_other_threads_np... yes
> checking for LinuxThreads implementation... yes
> checking for LinuxThreads consistency... yes
> checking if pthread_create() works... yes
> checking if select yields when using pthreads... yes
> checking for thread specific errno... yes
> checking for thread specific h_errno... yes
> checking for ctime_r... yes
> checking for gethostbyname_r... yes
> checking for gethostbyaddr_r... yes
> checking number of arguments of ctime_r... 2
> checking number of arguments of gethostbyname_r... 6
> checking number of arguments of gethostbyaddr_r... 8
> checking for db.h... yes
> checking for Berkeley DB link (default)... no
> checking for Berkeley DB link (-ldb41)... no
> checking for Berkeley DB link (-ldb-41)... no
> checking for Berkeley DB link (-ldb-4.1)... yes
> checking for Berkeley DB thread support... yes
> checking Berkeley DB version for BDB backend... yes
> checking for openlog... yes
> checking for termcap.h... no
> checking for ncurses.h... no
> checking for tputs in -ltermcap... no
> checking for initscr in -lncurses... no
> checking for sasl/sasl.h... no
> checking for sasl.h... yes
> checking for sasl_client_init in -lsasl2... no
> checking for sasl_client_init in -lsasl... yes
> checking Cyrus SASL library version... yes
> checking for sasl_version... no
> checking fetch(3) library... no
> checking for readline/readline.h... no
> checking for readline/history.h... no
> checking for setproctitle... no
> checking for setproctitle in -lutil... no
> checking for ANSI C header files... (cached) disable
> checking for mode_t... yes
> checking for off_t... yes
> checking for pid_t... yes
> checking for ptrdiff_t... yes
> checking return type of signal handlers... void
> checking for size_t... yes
> checking for ssize_t... yes
> checking for caddr_t... yes
> checking for socklen_t... yes
> checking for member st_blksize in aggregate type struct stat... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for uid_t in sys/types.h... yes
> checking for sig_atomic_t... yes
> checking struct passwd for pw_gecos... yes
> checking struct passwd for pw_passwd... yes
> checking if toupper() requires islower()... no
> checking for working const... yes
> checking if compiler understands volatile... yes
> checking whether byte ordering is bigendian... no
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking for 8-bit clean memcmp... yes
> checking for strftime... yes
> checking for inet_aton()... yes
> checking for _spawnlp... no
> checking for _snprintf... no
> checking for _vsnprintf... no
> checking for vprintf... yes
> checking for snprintf... yes
> checking for vsnprintf... yes
> checking for bcopy... yes
> checking for closesocket... no
> checking for chroot... yes
> checking for endgrent... yes
> checking for endpwent... yes
> checking for fcntl... yes
> checking for flock... yes
> checking for fstat... yes
> checking for getdtablesize... yes
> checking for getgrgid... yes
> checking for gethostname... yes
> checking for getpass... yes
> checking for getpassphrase... no
> checking for getpwuid... yes
> checking for getpwnam... yes
> checking for getspnam... yes
> checking for gettimeofday... yes
> checking for initgroups... yes
> checking for lockf... yes
> checking for memcpy... yes
> checking for memmove... yes
> checking for mkstemp... yes
> checking for mktemp... yes
> checking for pipe... yes
> checking for read... yes
> checking for recv... yes
> checking for recvfrom... yes
> checking for setpwfile... no
> checking for setgid... yes
> checking for setegid... yes
> checking for setsid... yes
> checking for setuid... yes
> checking for seteuid... yes
> checking for sigaction... yes
> checking for signal... yes
> checking for sigset... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strpbrk... yes
> checking for strrchr... yes
> checking for strsep... yes
> checking for strstr... yes
> checking for strtol... yes
> checking for strtoul... yes
> checking for strspn... yes
> checking for sysconf... yes
> checking for usleep... yes
> checking for waitpid... yes
> checking for wait4... yes
> checking for write... yes
> checking for send... yes
> checking for sendmsg... yes
> checking for sendto... yes
> checking for getopt... yes
> checking for getpeereid... no
> checking for msg_accrights in msghdr... no
> checking declaration of sys_errlist... yes
> creating ./config.status
> creating Makefile
> creating doc/Makefile
> creating doc/man/Makefile
> creating doc/man/man1/Makefile
> creating doc/man/man3/Makefile
> creating doc/man/man5/Makefile
> creating doc/man/man8/Makefile
> creating clients/Makefile
> creating clients/tools/Makefile
> creating include/Makefile
> creating libraries/Makefile
> creating libraries/libavl/Makefile
> creating libraries/liblber/Makefile
> creating libraries/libldap/Makefile
> creating libraries/libldap_r/Makefile
> creating libraries/libldbm/Makefile
> creating libraries/libldif/Makefile
> creating libraries/liblunicode/Makefile
> creating libraries/liblutil/Makefile
> creating libraries/librewrite/Makefile
> creating servers/Makefile
> creating servers/slapd/Makefile
> creating servers/slapd/back-bdb/Makefile
> creating servers/slapd/back-dnssrv/Makefile
> creating servers/slapd/back-ldap/Makefile
> creating servers/slapd/back-ldbm/Makefile
> creating servers/slapd/back-meta/Makefile
> creating servers/slapd/back-monitor/Makefile
> creating servers/slapd/back-null/Makefile
> creating servers/slapd/back-passwd/Makefile
> creating servers/slapd/back-perl/Makefile
> creating servers/slapd/back-shell/Makefile
> creating servers/slapd/back-sql/Makefile
> creating servers/slapd/shell-backends/Makefile
> creating servers/slapd/tools/Makefile
> creating servers/slurpd/Makefile
> creating tests/Makefile
> creating tests/progs/Makefile
> creating include/portable.h
> include/portable.h is unchanged
> creating include/ldap_features.h
> include/ldap_features.h is unchanged
> creating include/lber_types.h
> include/lber_types.h is unchanged
> Please run "make depend" to build dependencies
> .
> .
> 4) make depend - no errors
> .
> .
> 5) make - no errors
> .
> .
> 
> 6) make test
> ---------
> cd tests; make test
> make[1]: Entering directory `/root/openldap-2.1.16/tests'
> ln: `./data': cannot overwrite directory
> make[1]: [test-bdb] Error 1 (ignored)
> ln: `./schema': File exists
> make[1]: [test-bdb] Error 1 (ignored)
> ln: `ucdata/liblunicode': File exists
> make[1]: [test-bdb] Error 1 (ignored)
> Initiating LDAP tests for BDB...
> >>>>> Executing all LDAP tests...
> >>>>> Test Directory: .
> >>>>> Backend: bdb
> >>>>> Starting test000-rootdse ...
> running defines.sh
> Datadir is ./data
> Cleaning up in ./test-db...
> Starting slapd on TCP/IP port 9009...
> Using ldapsearch to retrieve the root DSE...
> Waiting 5 seconds for slapd to start...
> ./scripts/test000-rootdse: line 49: 18959 Segmentation fault      $SLAPD -f
> 
> $DBCONF -h $MASTERURI -d $LVL $TIMING >$MASTERLOG 2>&1
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> ./scripts/test000-rootdse: line 57: kill: (18959) - No such process
> ldap_bind: Can't contact LDAP server (81)
> >>>>> Test failed
> >>>>> ./scripts/test000-rootdse failed (exit 1)
> make[1]: *** [test-bdb] Error 1
> make[1]: Leaving directory `/root/openldap-2.1.16/tests'
> make: *** [test] Error 2
> 
> 7) master.log
> -------------
> @(#) $OpenLDAP: slapd 2.1.16 (Sat Mar 29 00:36:50 GMT 2003) $
>         root@dyna:/root/openldap-2.1.16/servers/slapd
> daemon_init: ldap://localhost:9009/
> daemon_init: listen on ldap://localhost:9009/
> daemon_init: 1 listeners to open...
> ldap_url_parse_ext(ldap://localhost:9009/)
> daemon: initialized ldap://localhost:9009/
> daemon_init: 2 listeners opened
> slapd init: initiated server.
> 
> 8) ldd /usr/local/libexec/slapd
> -------------------------------
>         libsasl.so.7 => /usr/lib/libsasl.so.7 (0x40021000)
>         libpam.so.0 => /lib/libpam.so.0 (0x40034000)
>         libdb-4.1.so => /usr/lib/libdb-4.1.so (0x4003c000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x400e5000)
>         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40116000)
>         libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4011e000)
>         libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4014e000)
>         libresolv.so.2 => /lib/libresolv.so.2 (0x40224000)
>         libdl.so.2 => /lib/libdl.so.2 (0x40236000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x40239000)
>         libc.so.6 => /lib/libc.so.6 (0x4024e000)
>         libdb-4.0.so => /usr/lib/libdb-4.0.so (0x4036c000)
>         libgssapi.so.1 => /usr/lib/libgssapi.so.1 (0x40412000)
>         libkrb5.so.17 => /usr/lib/libkrb5.so.17 (0x4041e000)
>         libasn1.so.5 => /usr/lib/libasn1.so.5 (0x40455000)
>         libroken.so.9 => /usr/lib/libroken.so.9 (0x40477000)
>         libcom_err.so.1 => /usr/lib/libcom_err.so.1 (0x40489000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> 
> 




-------------------------------------------------
Mail sent through GFI Mailserver1.0
info: ava@gfi.be