Article View: fj.net.ldap
Article #401compile error ldap3.3 in Redhat Linux6.0
From: DonS, Choi
Date: Tue, 22 Jun 1999 00:00
Date: Tue, 22 Jun 1999 00:00
170 lines
7533 bytes
7533 bytes
Hi,
I'm newbie in LDAP
I tried to install LDAP in Redhat Linux 6.0
Before install , I downloaded Berkeley B+Tree DB and test it.
It works fine.
But I installed ldap3.3 and typed "make", Some Errors are occured.
I only modified like this in Make-common, ldapconfig.h.edit file
=============== Make-common =======================
.......
MAKESLAPD= yes
#
# remove the defines for backends you don't want to enable
SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
#
# If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
# to specify which low-level database package to use. There are
# four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
#
# berkeley db btree package
LDBMBACKEND=-DLDBM_USE_DBBTREE
LDBMINCLUDE=-I/usr/local/BerkeleyDB/include
LDBMLIB=-L/usr/local/BerkeleyDB/lib -ldb
.....
======================================================
================ ldapconfig.h.edit ======================
.....
#define LDAPHOST "localhost"
/* default place to start searching */
/* #define DEFAULT_BASE "o=Your Organization Name, c=US" */ /* by
choi-donsun */
#define DEFAULT_BASE "o=E & E, c=KR"
......
======================================================
[root@lux ldap-3.3]# make
.........
...........
cd libldbm; make -w all
make[2]: Entering directory `/home/dschoi/ldap-3.3/libraries/libldbm'
gcc -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -DLDAP_
LDBo
ldbm.c: In function `ldbm_open':
ldbm.c:129: `BTREEINFO' undeclared (first use in this function)
ldbm.c:129: (Each undeclared identifier is reported only once
ldbm.c:129: for each function it appears in.)
ldbm.c:129: parse error before `binfo'
ldbm.c:130: `HASHINFO' undeclared (first use in this function)
ldbm.c:133: `hinfo' undeclared (first use in this function)
ldbm.c:137: `binfo' undeclared (first use in this function)
ldbm.c:143: warning: assignment makes pointer from integer without a cast
ldbm.c: In function `ldbm_close':
ldbm.c:150: too few arguments to function
ldbm.c: In function `ldbm_fetch':
ldbm.c:189: warning: passing arg 2 from incompatible pointer type
ldbm.c:189: too few arguments to function
ldbm.c: In function `ldbm_store':
ldbm.c:204: warning: passing arg 2 from incompatible pointer type
ldbm.c:204: warning: passing arg 4 makes pointer from integer without a cast
ldbm.c:204: too few arguments to function
ldbm.c: In function `ldbm_delete':
..........
..........
.........
cd ud; make -w all
make[2]: Entering directory `/home/dschoi/ldap-3.3/clients/ud'
gcc -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -DLDAP
_LDo
main.c: In function `initialize_client':
main.c:672: storage size of `win' isn't known
main.c:678: `TIOCGWINSZ' undeclared (first use in this function)
main.c:678: (Each undeclared identifier is reported only once
main.c:678: for each function it appears in.)
main.c: In function `chwinsz':
main.c:713: storage size of `win' isn't known
main.c:716: `TIOCGWINSZ' undeclared (first use in this function)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/dschoi/ldap-3.3/clients/ud'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dschoi/ldap-3.3/clients'
..........
..........
.........
cd back-ldbm; make -w all
make[4]: Entering directory `/home/dschoi/ldap-3.3/servers/slapd/back-ldbm'
make[5]: Entering directory `/home/dschoi/ldap-3.3/servers/slapd/back-ldbm'
gcc -I. -I.. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRA
LS o
gcc -I. -I.. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRA
LS o
gcc -I. -I.. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRA
LS o
gcc -I. -I.. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRA
LS o
gcc -I. -I.. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRA
LS o
dbcache.c:18: conflicting types for `sys_errlist'
/usr/include/stdio.h:553: previous declaration of `sys_errlist'
make[5]: *** [dbcache.o] Error 1
make[5]: Leaving directory `/home/dschoi/ldap-3.3/servers/slapd/back-ldbm'
make[4]: [all] Error 2 (ignored)
make[4]: Leaving directory `/home/dschoi/ldap-3.3/servers/slapd/back-ldbm'
..............
..............
..............
make[3]: Entering directory `/home/dschoi/ldap-3.3/servers/slapd'
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
daemon.c:30: conflicting types for `sys_errlist'
/usr/include/stdio.h:553: previous declaration of `sys_errlist'
make[3]: *** [daemon.o] Error 1
make[3]: Entering directory `/home/dschoi/ldap-3.3/servers/slapd/tools'
uncomment the HAVEISODE=yes line in the Make-common file to build edb2ldif
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
gcc -I. -I../../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS
-Do
../result.c:16: conflicting types for `sys_errlist'
/usr/include/stdio.h:553: previous declaration of `sys_errlist'
make[3]: *** [../result.o] Error 1
make[3]: Leaving directory `/home/dschoi/ldap-3.3/servers/slapd/tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dschoi/ldap-3.3/servers/slapd'
cd slurpd; make -w all
make[2]: Entering directory `/home/dschoi/ldap-3.3/servers/slurpd'
make[3]: Entering directory `/home/dschoi/ldap-3.3/servers/slurpd'
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
gcc -I. -I../../include -Dlinux -DLDAP_DEBUG -DLDAP_REFERRALS -
DLDo
fm.c:58: conflicting types for `sys_errlist'
/usr/include/stdio.h:553: previous declaration of `sys_errlist'
make[3]: *** [fm.o] Error 1
make[3]: Leaving directory `/home/dschoi/ldap-3.3/servers/slurpd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dschoi/ldap-3.3/servers/slurpd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dschoi/ldap-3.3/servers'
..............
...............
Thanks advance.
Technical Details
Message-ID:
<7kn636$fmo$1@news.nuri.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103627,461906c7af4fa277,start X-Google-Attributes: gid103627,public From: "DonS, Choi" <dschoi@ene.co.kr> Subject: compile error ldap3.3 in Redhat Linux6.0 Date: 1999/06/22 Message-ID: <7kn636$fmo$1@news.nuri.net> X-Deja-AN: 492387507 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: news.nuri.net 930028454 16088 210.122.204.77 (22 Jun 1999 05:14:14 GMT) Organization: Inet Internet Services X-MSMail-Priority: Normal NNTP-Posting-Date: 22 Jun 1999 05:14:14 GMT Newsgroups: fj.net.ldap