[Fedora-directory-users] trying to build

Richard Megginson rmeggins at redhat.com
Fri Oct 13 14:41:02 UTC 2006


Jo De Troy wrote:
> Hi Rich,
>
> here's the error message
>
> gmake[3]: Entering directory 
> `/home/ldap/ds102/ldapserver/ldap/servers/slapd'
> gmake BUILD_OPT=1 NO_JAVA=1 -f libmakefile -w all
> gmake[4]: Entering directory 
> `/home/ldap/ds102/ldapserver/ldap/servers/slapd'
> /usr/bin/gcc -c -Wall -DNO_DBM -DLINUX -DLINUX2_2 -DLINUX2_4 -fPIC
> -D_REENTRANT                      -DNO_NODELOCK  -DNO_LIBLCACHE
> -DXP_UNIX -DLinux -O2 -DMCC_HTTPD -DNS_DOMESTIC -D
> NET_SSL -DCLIENT_AUTH -DSERVER_BUILD -DNSPR20  -DNS_DS -DSPAPI20
> -DBUILD_NUM=\"2                     006.286.146\" -DUPGRADEDB -DLINUX
> -DLINUX2_0 -DLINUX2_2 -DLinux -DLDAP_DEBUG
> -DLDAP_REFERRALS     -DLDAP_LDBM -DLDAP_LDIF -DLDBM_USE_DBBTREE
> -DSLAPD_PA                     SSWD_SHA1 -DLDAP_SSLIO_HOOKS
> -D__DBINTERFACE_PRIVATE -DNO_LIBLCACHE  -DNS_DIRECT
> ORY -O  -I../../../ldap/include
> -I../../../built/RHEL4_x86_gcc3_OPT.OBJ/include
> -I../../../../db-4.2.52.NC/built -I. -I../../../lib -fpic
> -I../../../include -I                     ../../../include
> -I../../../../mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/inclu
>             de -I../../../../mozilla/dist/public/dbm
> -I../../../../mozilla/dist/public/nss -
> I../../../../mozilla/dist/public/svrcore
> -I../../../../mozilla/dist/public/ldap
> -I/usr/include/sasl pw.c -o
> ../../../built/RHEL4_x86_gcc3_OPT.OBJ/servers/obj/pw
>  .o
> pw.c:1640: error: syntax error before "ber_int_t"
> pw.c: In function `slapi_pwpolicy_make_response_control':
> pw.c:1641: error: number of arguments doesn't match prototype
> slapi-plugin.h:823: error: prototype declaration
> pw.c:1670: error: `seconds' undeclared (first use in this function)
> pw.c:1670: error: (Each undeclared identifier is reported only once
> pw.c:1670: error: for each function it appears in.)
> pw.c:1670: error: `logins' undeclared (first use in this function)
> pw.c:1682: error: `error' undeclared (first use in this function)
> pw.c:1700: error: `pb' undeclared (first use in this function)
> gmake[4]: *** [../../../built/RHEL4_x86_gcc3_OPT.OBJ/servers/obj/pw.o] 
> Error 1
> gmake[4]: Leaving directory 
> `/home/ldap/ds102/ldapserver/ldap/servers/slapd'
> gmake[3]: *** [libslapd] Error 2
> gmake[3]: Leaving directory 
> `/home/ldap/ds102/ldapserver/ldap/servers/slapd'
> gmake[2]: *** [_slapd] Error 2
> gmake[2]: Leaving directory `/home/ldap/ds102/ldapserver/ldap/servers'
> gmake[1]: *** [ldapprogs] Error 2
> gmake[1]: Leaving directory `/home/ldap/ds102/ldapserver/ldap'
> gmake: *** [buildDirectory] Error 2

Yep.  This version has been ported to use the new Mozilla LDAP C SDK 
which uses the LDAP "standard" API ber types instead of int, long, etc.

You could try to build the new mozldap - 
http://wiki.mozilla.org/LDAP_C_SDK - but you might be better off 
checking the CVS revisions for the files you are interested in and using 
an earlier revision.  That is, use cvs log on the files in question to 
figure out which revision contains the fixes you want, then use cvs 
checkout -r or cvs update -r to grab the revision you want.

I apologize that this is such a pain.  You've caught us at a bad time.  
The source code is being reorganized to make it easier to build, which 
unfortunately makes it harder to build in the old way.  We are making 
progress.  If you check fedora-directory-commits or 
fedora-directory-devel there are lots of beneficial changes going in.

> [root at svr ldapserver]#
>
> -- 
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20061013/797ad07b/attachment.bin>


More information about the Fedora-directory-users mailing list