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

Problems compiling 2.0.7



Hi, I have problems getting 207 compiled. When I run Make I get:
erkeleyDB.3.2/lib -o dtest dtest.o -llber -lresolv
dtest.o: In function `main':
dtest.o(.text+0x2a): undefined reference to `ber_set_option'
dtest.o(.text+0x51): undefined reference to `ber_sockbuf_alloc'
dtest.o(.text+0x74): undefined reference to `ber_sockbuf_io_fd'
dtest.o(.text+0x7e): undefined reference to `ber_sockbuf_add_io'
dtest.o(.text+0x167): undefined reference to `ber_sockbuf_free'
collect2: ld returned 1 exit status
make[2]: *** [dtest] Error 1
make[2]: Leaving directory `/usr/src/openldap-2.0.7/libraries/liblber'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/openldap-2.0.7/libraries'
make: *** [all-common] Error 1

What am I doing wrong? I'm running a RH7 system w/ the latest glibc's from
the Beta. Here's my config:
CC="gcc" \
CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib" \
CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -marc
h=pentiumpro -fomit-frame-pointer -fno-exceptions -D_REENTRANT -L/usr/lib" \
./configure \
--prefix=/usr \
--libexecdir=/usr/sbin \
--bindir=/usr/sbin \
--sysconfdir=/etc \
--with-cyrus-sasl \
--enable-spasswd \
--enable-crypt \
--enable-shared \
--with-tls \
--with-gnu-ld \


I'd be happy for anything that helps!

Tarjei