[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
compile error on src.rpm
I tried to compile the source-rpm of 2.0.11 on RedHat-6.2. But it stops
on this (I picked out where is is going wrong):
root@server1/usr/src/redhat/BUILD/openldap-2.0.11/libraries/liblber>cc
-I/usr/kerberos/include -O2 -march=i386 -mcpu=i686 -D_REENTRANT -fPIC
-I../../include -I../../include -I/usr/kerberos/include -L.
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/libavl
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/liblber
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/libldap
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/libldap_r
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/libldbm
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/libldif
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/liblunicode
-L/usr/src/redhat/BUILD/openldap-2.0.11/libraries/liblutil
-L/usr/kerberos/lib -o dtest dtest.o -llber -lnsl -lresolv -ldl
dtest.o: In function `main':
dtest.o(.text+0x6b): undefined reference to `ber_set_option'
dtest.o(.text+0x91): undefined reference to `ber_sockbuf_alloc'
dtest.o(.text+0xba): undefined reference to `ber_sockbuf_io_fd'
dtest.o(.text+0xc7): undefined reference to `ber_sockbuf_add_io'
dtest.o(.text+0x1bf): undefined reference to `ber_sockbuf_free'
collect2: ld returned 1 exit status
The normal 2.0.12 tarball compiles without problems (./configure
--prefix=/usr --enable-wrappers --disable-slurpd). I fear it is one of
the switches in the source rpm:
configure_flags='
--enable-ldbm
--enable-passwd
--with-ldbm-api=gdbm
--enable-shell
--enable-local --enable-cldap --disable-rlookups
--with-kerberos=k5
--enable-kbind
--with-tls
--with-cyrus-sasl
--enable-wrappers
--enable-cleartext
--enable-crypt
--enable-kpasswd
--enable-spasswd
--libexecdir=%{_sbindir}
--localstatedir=%{_var}/run'
%configure ${configure_flags} --without-slapd --with-slurpd
--without-ldapd --with-threads --disable-shared --enable-static
Anyone a hint?
I know that 2.0.12 compiles without problems (so I will finally have a
working slapd), but I'd like to know why the source-rpm exits with this
error.
Richard.
--
___________________________________________________________________
Unix is very simple, but it takes a genius to understand the
simplicity (Dennis Ritchie)
+------------------------------------------------------------------+
| Richard Lucassen, Utrecht, Linux 2.4.9 RedHat 6.2 |
| The Netherlands i686/300MHz/256MB |
| Public key: http://www.xs4all.nl/~pe1bbf/pubkey.asc |
+------------------------------------------------------------------+