Issue 128 - installation problems
Summary: installation problems
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-04-14 16:44 UTC by Sihem Amer-Yahia
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Sihem Amer-Yahia 1999-04-14 16:44:48 UTC
when installing openldap, i have the following problems 
using ; make depend

  cd tools; make -w depend
make[4]: Entering directory `/n/fs052/didi/OpenLDAP/ldap/servers/slapd/tools'
In file included from centipede.c:11:
../../../include/ac/unistd.h:36: getopt.h: No such file or directory
In file included from centipede.c:17:
../../../include/ldbm.h:32: db.h: No such file or directory
In file included from ldbmcat.c:9:
../../../include/ldbm.h:32: db.h: No such file or directory
In file included from ldbmtest.c:11:
../../../include/ac/unistd.h:36: getopt.h: No such file or directory
In file included from ../back-ldbm/back-ldbm.h:6,
                 from ldbmtest.c:24:
../../../include/ldbm.h:32: db.h: No such file or directory
In file included from sizecount.c:6:
../../../include/ac/unistd.h:36: getopt.h: No such file or directory
In file included from sizecount.c:8:
../../../include/ldbm.h:32: db.h: No such file or directory
In file included from ldif.c:8:
../../../include/ac/unistd.h:36: getopt.h: No such file or directory
In file included from ldif2id2children.c:9:
../../../include/ac/unistd.h:36: getopt.h: No such file or directory
In file included from ../back-ldbm/back-ldbm.h:6,
Comment 1 Kurt Zeilenga 1999-04-14 18:01:56 UTC
DETAILS?  OpenLDAP version?  Platform?  configure settings
(environment and command line)?

   Better details enable better answers...

My best guess is that you used a relative path for a directory
in your CPPFLAGS.  Make sure those -Idirectory (and -Ldirectory)
options use absolute paths (ie: start with a '/').

Kurt


Comment 2 Sihem Amer-Yahia 1999-04-14 18:10:23 UTC
about the environment variables :

didi_troy>echo $CFLAGS
-ansi

didi_troy>echo $CPPFLAGS
-I/n/fs052/didi/db-2.7.3/include

didi_troy>echo $LDFLAGS
-L/n/fs052/didi/db-2.7.3/libdb_java

about the command line :


Comment 3 Sihem Amer-Yahia 1999-04-14 18:21:37 UTC
thank you for your quick answer.

PLATFORM :
SunOS troy 5.5.1 Generic_103640-24 sun4u sparc SUNW,Ultra-1

i installed the Berkeley DB in /n/fs052/didi/db-2.7.3/
and i work here : /n/fs052/didi/OpenLdap/ldap

ABOUT THE ENVIRONMENT VARIABLES :

didi_troy>echo $LIBS
-lpthread -lposix4

didi_troy>echo $CFLAGS
-ansi

didi_troy>echo $CPPFLAGS
-I/n/fs052/didi/db-2.7.3/include

didi_troy>echo $LDFLAGS
-L/n/fs052/didi/db-2.7.3/libdb_java

ABOUT THE COMMAND LINE :
didi_troy>./configure --without-threads

ABOUT THE ERROR MESSAGE:
checking for Berkeley DB2... no
checking for Berkeley DB library... checking for dbopen... no
checking for dbopen in -ldb... no
no
checking for db_185.h... yes
checking for Berkeley DB... no
checking for GDBM library... checking for gdbm_open... no
checking for gdbm_open in -lgdbm... no
no
checking for gdbm.h... yes
checking for db... no
configure: warning: skipping automatic checking for NDBM, must be manually enabled.
configure: warning: could not find suitable LDBM backend
configure: error: select appropriate LDBM options or disable
Comment 4 Kurt Zeilenga 1999-04-14 18:29:42 UTC
Sihem Amer-Yahia wrote:
> didi_troy>echo $LDFLAGS
> -L/n/fs052/didi/db-2.7.3/libdb_java

libdb_java?  Try LDFLAGS="-L/n/fs052/didi/db-2.7.3/lib"


> ABOUT THE COMMAND LINE :
> didi_troy>./configure --without-threads
> 
> ABOUT THE ERROR MESSAGE:
> checking for Berkeley DB2... no
> checking for Berkeley DB library... checking for dbopen... no
> checking for dbopen in -ldb... no
> no
> checking for db_185.h... yes
> checking for Berkeley DB... no
> checking for GDBM library... checking for gdbm_open... no
> checking for gdbm_open in -lgdbm... no
> no
> checking for gdbm.h... yes
> checking for db... no
> configure: warning: skipping automatic checking for NDBM, must be manually enabled.
> configure: warning: could not find suitable LDBM backend
> configure: error: select appropriate LDBM options or disable

You must have 'make depend' using a prior, stale configuration.  If you
change your environment, you MUST do a 'make veryclean'
(or 'rm config.cache') before rerunning configure.

Kurt
Comment 5 Sihem Amer-Yahia 1999-04-14 18:37:58 UTC
>libdb_java?  Try LDFLAGS="-L/n/fs052/didi/db-2.7.3/lib"

i know but they don't have it in the distribution !

i'll send you e-mail as soon as i find about it

thx
sihem
Comment 6 Kurt Zeilenga 1999-04-14 18:40:30 UTC
Sihem Amer-Yahia wrote:
> 
> >libdb_java?  Try LDFLAGS="-L/n/fs052/didi/db-2.7.3/lib"
> 
> i know but they don't have it in the distribution !

Like OpenLDAP, Sleepycat BerkeleyDB is a source distribution.
You must build it!  They have installation instructions in
the distribution and on their web site <http://www.sleepycat.com/>.

Also, I noticed you used LIBS="-lpthread -lposix4" and --without-threads.
Seems kind of pointless to link in pthread libraries if you aren't going
to use them.

Kurt
Comment 7 Kurt Zeilenga 1999-04-14 19:31:58 UTC
changed notes
changed state Open to Closed
Comment 8 Sihem Amer-Yahia 1999-04-14 21:01:59 UTC
i fixed all the stupid first points i had to fix
now for testing :

didi_troy>cd tests/
didi_troy>make
ln: cannot create ./data: File exists
make: [all-local] Error 2 (ignored)
Initiating LDAP tests...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Starting test001-ldif2ldbm ...
running defines.sh .
Datadir is ./data
Cleaning up in ./test-db...
Running ldif2ldbm to build slapd database...
./scripts/test001-ldif2ldbm: ../servers/slapd/tools/ldif2ldbm: not found
ldif2ldbm failed!
>>>>> ./scripts/test001-ldif2ldbm failed (exit 1)
make: *** [all-local] Error 1
Comment 9 Sihem Amer-Yahia 1999-04-20 16:03:52 UTC
hi,
could you please tell me why do i have these
errors when installing openldap ?
(after the make command)
the only variables i set are : CPPFLAGSand LDFLAGS

thank you very much for your help
regards,
sihem amer-yahia

main.c:934: `MAIL500_TIMEOUT' undeclared (first use in this function)
main.c:936: `ld' undeclared (first use in this function)
main.c: In function `send_message':
main.c:1080: `MAIL500_SENDMAIL' undeclared (first use in this function)
main.c: In function `send_group':
main.c:1102: `MAIL500_SENDMAIL' undeclared (first use in this function)
main.c: In function `send_errors':
main.c:1162: `MAIL500_SENDMAIL' undeclared (first use in this function)
main.c: In function `do_noemail':
main.c:1306: `ld' undeclared (first use in this function)
main.c: In function `do_ambiguous':
main.c:1386: `ld' undeclared (first use in this function)
main.c: In function `isgroup':
main.c:1469: `ld' undeclared (first use in this function)
main.c: In function `unbind_and_exit':
main.c:1548: `ld' undeclared (first use in this function)
main.c: In function `has_attributes':
main.c:1595: `ld' undeclared (first use in this function)
main.c: In function `get_attributes_mail_dn':
main.c:1621: `ld' undeclared (first use in this function)
main.c:1628: `MAIL500_TIMEOUT' undeclared (first use in this function)
make[2]: *** [main.o] Error 1
In file included from rp500.c:36:
../../include/ldapconfig.h:28: parse error before `_LDAP_CONFIG_H'
rp500.c: In function `main':
rp500.c:61: `FILTERFILE' undeclared (first use in this function)
rp500.c:61: (Each undeclared identifier is reported only once
rp500.c:61: for each function it appears in.)
rp500.c:84: `debug' undeclared (first use in this function)
make[2]: *** [rp500.o] Error 1
In file included from main.c:20:
../../include/ldapconfig.h:28: parse error before `_LDAP_CONFIG_H'
In file included from main.c:21:
rcpt500.h:20: parse error before `}'
rcpt500.h:25: warning: `struct msginfo' declared inside parameter list
rcpt500.h:25: warning: its scope is only this definition or declaration,
rcpt500.h:25: warning: which is probably not what you want.
rcpt500.h:35: warning: `struct msginfo' declared inside parameter list
rcpt500.h:36: warning: `struct msginfo' declared inside parameter list
main.c:29: `RCPT500_SIZELIMIT' undeclared here (not in a function)
main.c:30: `RCPT500_RDNCOUNT' undeclared here (not in a function)
main.c:35: `FILTERFILE' undeclared here (not in a function)
main.c:36: `TEMPLATEFILE' undeclared here (not in a function)
main.c:37: `RCPT500_LISTLIMIT' undeclared here (not in a function)
main.c:37: size of array `reply' has non-integer type
main.c:43: warning: `struct msginfo' declared inside parameter list
main.c:45: warning: `struct msginfo' declared inside parameter list
main.c: In function `main':
main.c:56: storage size of `msg' isn't known
main.c: At top level:
main.c:174: warning: `struct msginfo' declared inside parameter list
main.c:175: conflicting types for `read_msg'
main.c:43: previous declaration of `read_msg'
main.c: In function `read_msg':
main.c:179: dereferencing pointer to incomplete type
main.c:179: dereferencing pointer to incomplete type
main.c:179: dereferencing pointer to incomplete type
main.c:194: dereferencing pointer to incomplete type
main.c:195: dereferencing pointer to incomplete type
main.c:197: dereferencing pointer to incomplete type
main.c:199: dereferencing pointer to incomplete type
main.c:200: dereferencing pointer to incomplete type
main.c:202: dereferencing pointer to incomplete type
main.c:204: dereferencing pointer to incomplete type
main.c:206: dereferencing pointer to incomplete type
main.c:208: dereferencing pointer to incomplete type
main.c:208: dereferencing pointer to incomplete type
main.c:221: dereferencing pointer to incomplete type
main.c:225: dereferencing pointer to incomplete type
main.c:229: dereferencing pointer to incomplete type
main.c: At top level:
main.c:271: warning: `struct msginfo' declared inside parameter list
main.c:272: conflicting types for `send_reply'
main.c:45: previous declaration of `send_reply'
main.c: In function `send_reply':
main.c:277: `RCPT500_PIPEMAILCMD' undeclared (first use in this function)
main.c:277: (Each undeclared identifier is reported only once
main.c:277: for each function it appears in.)
main.c:288: `RCPT500_FROM' undeclared (first use in this function)
main.c:292: dereferencing pointer to incomplete type
main.c:293: dereferencing pointer to incomplete type
main.c:300: dereferencing pointer to incomplete type
main.c:304: dereferencing pointer to incomplete type
main.c:306: dereferencing pointer to incomplete type
main.c:310: dereferencing pointer to incomplete type
main.c:310: dereferencing pointer to incomplete type
main.c:316: dereferencing pointer to incomplete type
make[2]: *** [main.o] Error 1
In file included from idl.c:10:
../../../include/ldapconfig.h:28: parse error before `_LDAP_CONFIG_H'
In file included from ../slap.h:6,
                 from idl.c:11:
/usr/include/stdlib.h:27: parse error before `}'
/usr/include/stdlib.h:27: warning: data definition has no type or storage class
/usr/include/stdlib.h:101: parse error before `div'
/usr/include/stdlib.h:101: warning: data definition has no type or storage class
idl.c: In function `idl_notin':
idl.c:933: `SLAPD_LDBM_MIN_MAXIDS' undeclared (first use in this function)idl.c:933: (Each undeclared identifier is reported only once
idl.c:933: for each function it appears in.)
make[7]: *** [idl.o] Error 1
make[6]: *** [all-local-srv] Error 2
make[5]: *** [all-common] Error 2
make[5]: *** No rule to make target `.backend', needed by `libbackends.a'.  Stop.
make[4]: *** [backendslib] Error 2
make[3]: *** [all-local-srv] Error 2
make[2]: *** [all-common] Error 2
In file included from slurp.h:32,
                 from admin.c:24:
../../include/ldapconfig.h:28: parse error before `_LDAP_CONFIG_H'
make[3]: *** [admin.o] Error 1
make[2]: *** [all-common] Error 2

Comment 10 Kurt Zeilenga 1999-04-20 17:17:01 UTC
changed notes
changed state Closed to Feedback
Comment 11 Kurt Zeilenga 1999-04-20 17:24:26 UTC
At 04:04 PM 4/20/99 GMT, sihem@research.att.com wrote:
>
>hi,
>could you please tell me why do i have these
>errors when installing openldap ?

Obviously cascading errors...

../../include/ldapconfig.h:28: parse error before `_LDAP_CONFIG_H'

Did you make changes to ldapconfig.h.edit (or ldapconfig.h)?
If so, check your edits.

>(after the make command)
>the only variables i set are : CPPFLAGSand LDFLAGS

What did you set them to?

Kurt
Comment 12 Sihem Amer-Yahia 1999-04-20 18:26:16 UTC
thanks for answering,

the set of errors i have begin like that : 

testavl.c: In function `main':
testavl.c:28: warning: passing arg 2 of `avl_free' from incompatible pointer typelibtool: link: warning: `-version-info' is ignored while linking programslibtool: link: warning: `-version-info' is ignored while linking programs
libtool: link: warning: `-version-info' is ignored while linking programs

env variables :

didi_troy>setenv CPPFLAGS -I/n/fs052/didi/db-2.7.3/BerkeleyDB/include
didi_troy>setenv LDFLAGS -L/n/fs052/didi/db-2.7.3/BerkeleyDB/lib

this is the content of my ldapconfig.h.edit file :

ifndef _LDAP_CONFIG_H
define _LDAP_CONFIG_H

/*
 * config.h for LDAP -- edit this file to customize LDAP client behavior.
 * NO platform-specific definitions should be placed in this file.
 * Note that this IS USED by the LDAP or LBER libraries.
 */

/*
 * SHARED DEFINITIONS - things you should change
 */
define DEFAULT_DIRSEP		"/"
define DEFAULT_BINDIR		"/n/fs052/didi/OpenLDAP/ldap"
define DEFAULT_SBINDIR		"/n/fs052/didi/OpenLDAP/ldap"
define DEFAULT_DATADIR		"/n/fs052/didi/OpenLDAP/ldap"
define DEFAULT_SYSCONFDIR	"/n/fs052/didi/OpenLDAP/ldap"
define DEFAULT_LIBEXECDIR	"/n/fs052/didi/OpenLDAP/ldap"
define DEFAULT_RUNDIR		"/n/fs052/didi/OpenLDAP/ldap"

/*define DEFAULT_LDAP_CONF_FILE "/n/fs052/didi/OpenLDAP/ldap/include/ldapconfig.h.edit"*/
define DEFAULT_LDAP_USERRC_FILE "ldaprc"
define DEFAULT_LDAP_ENV_PREFIX "LDAP"


/*********************************************************************
 *                                                                   *
 * You probably do not need to edit anything below this point        *
 *                                                                   *
 *********************************************************************/
Comment 13 Kurt Zeilenga 1999-04-20 18:55:42 UTC
Sihem Amer-Yahia wrote:
> this is the content of my ldapconfig.h.edit file :
> ifndef _LDAP_CONFIG_H
> define _LDAP_CONFIG_H

Where are the octothorpe (#) characters!  They are needed before the C
preprocessor directives!

As I pointed out early, you really 'should not change' this ldapconfig.h.edit.
Copy ldapconfig.h.edit from the distribution.  Do not edit ldapconfig.h.edit!
Use configure to specify alternative installation directions.  This can be done
individually (see ./configure --help) or by using an alternative prefix.
(example: ./configure --prefix=/n/fs052/didi/OpenLDAP/ldap).

Kurt
Comment 14 Sihem Amer-Yahia 1999-04-20 19:28:54 UTC
i did exactly what you said.
the ldapconfig.h.edit i have is the default one.
i launched the installation with :
example: ./configure --prefix=/n/fs052/didi/OpenLDAP/ldap

and i obtained (after the make command) that :

testavl.c: In function `main':
testavl.c:28: warning: passing arg 2 of `avl_free' from incompatible pointer type
libtool: link: warning: `-version-info' is ignored while linking programs
libtool: link: warning: `-version-info' is ignored while linking programs
libtool: link: warning: `-version-info' is ignored while linking programs
libtool: link: warning: `-version-info' is ignored while linking programs
libtool: link: warning: `-version-info' is ignored while linking programs
replica.c: In function `start_replica_thread':
replica.c:59: warning: passing arg 2 of `ldap_pvt_thread_create' makes integer from pointer without a cast

i can suppose that these are only warnings => no errors

thank you
sihem


Comment 15 Kurt Zeilenga 1999-04-20 19:40:58 UTC
Sihem Amer-Yahia wrote:
> i can suppose that these are only warnings => no errors

These are benign and will be cleaned up in the next release.
Comment 16 Kurt Zeilenga 1999-04-20 23:04:03 UTC
changed notes
changed state Feedback to Closed
Comment 17 Sihem Amer-Yahia 1999-05-04 15:03:01 UTC
hi,
i'm trying to launch the openldap server i installed.
i did the following ;


didi_troy>cd servers/
didi_troy>ll
total 56
drwxr-xr-x   5 didi     didi          89 May  4 10:51 .
drwxr-xr-x  19 didi     didi        4096 May  4 10:51 ..
-rw-r--r--   1 didi     didi        5429 May  4 10:51 Makefile
-rw-r--r--   1 didi     didi         183 Oct 24  1998 Makefile.in
drwxr-xr-x   2 didi     didi        4096 May  4 10:51 ldapd
drwxr-xr-x   7 didi     didi        4096 May  4 10:51 slapd
drwxr-xr-x   2 didi     didi        4096 May  4 10:51 slurpd
didi_troy>cd ldapd/
didi_troy>ll
total 424
drwxr-xr-x   2 didi     didi        4096 May  4 10:51 .
drwxr-xr-x   5 didi     didi          89 May  4 10:51 ..
-rw-r--r--   1 didi     didi        7013 May  4 10:51 Makefile
-rw-r--r--   1 didi     didi        1340 Jan 13 20:02 Makefile.in
-rw-r--r--   1 didi     didi         576 Aug  8  1998 Version.c
-rw-r--r--   1 didi     didi        1593 Nov  5 16:10 abandon.c
-rw-r--r--   1 didi     didi        2939 Nov 16 18:24 add.c
-rw-r--r--   1 didi     didi        5799 Nov 16 18:24 association.c
-rw-r--r--   1 didi     didi        6725 Nov 16 18:24 bind.c
-rw-r--r--   1 didi     didi        8067 Nov 16 18:24 certificate.c
-rw-r--r--   1 didi     didi        3584 Nov 16 18:24 common.h
-rw-r--r--   1 didi     didi        3200 Nov 16 18:24 compare.c
-rw-r--r--   1 didi     didi        2743 Nov 16 18:24 delete.c
-rw-r--r--   1 didi     didi        4398 Nov 16 18:24 error.c
-rw-r--r--   1 didi     didi        3343 Nov 16 18:24 kerberos.c
-rw-r--r--   1 didi     didi        8808 Aug  8  1998 ldap.py
-rw-r--r--   1 didi     didi       16531 Jan 23 17:20 main.c
-rw-r--r--   1 didi     didi        3751 Nov  5 16:10 message.c
-rw-r--r--   1 didi     didi       16067 Nov 16 18:24 modify.c
-rw-r--r--   1 didi     didi        2903 Nov 16 18:24 modrdn.c
-rw-r--r--   1 didi     didi        5138 Nov 16 18:24 proto-ldapd.h
-rw-r--r--   1 didi     didi       12191 Nov 16 18:24 request.c
-rw-r--r--   1 didi     didi        9004 Nov 16 18:24 result.c
-rw-r--r--   1 didi     didi       17158 Nov 16 18:24 search.c
-rw-r--r--   1 didi     didi       23500 Mar  2 13:30 syntax.c
-rw-r--r--   1 didi     didi        3820 Nov 16 18:24 util.c
didi_troy>make
run configure with --enable-ldapd to build ldapd

=> i re-installed openldap completely with the same parameters and
adding --enable-ldapd

but it still gives me the same error message

do you have any idea of what's going on ?

thx a lot

sihem
Comment 18 Sihem Amer-Yahia 1999-05-04 21:07:56 UTC
hi,
i'd like to be sure of one thing :
it seems that you do not provide in openldap
distribution the code of the routines :
ldap_search, ldap_result, ...
am i right ?
if yes, do you know of any way to get the code
i'd like to study the way search queries on
ldap data are evaluated
thank you very much for your help
regards,
sihem
Comment 19 OpenLDAP project 2014-08-01 21:06:07 UTC
Provided help.