Still cannot get ldap_r to be linked

Roger Thomas sniper at home.net.my
Tue Jul 25 15:13:08 CEST 2006


Quoting Alan DeKok <aland at nitros9.org>:

>   That's why the LDAP module isn't building.  There's some
> additional
> dependency that the configure script isn't finding.
> 
>   See if there's a "config.log" file in src/modules/rlm_ldap.  If
> so,
> it should say what went wrong.
> 
>   Alan DeKok.

There are tonnes of error in ~/freeradius-1.1.2/src/modules/rlm_ldap/config.log ! I think they are connected to my ldap libraries? But my slapd is running fine. I am running Horde's webmail. And Horde authenticate to ldap with no problem. There must be something else :(

The following is output from config.log; it's about 200 lines. Sorry.

--
Roger


-- start of text --
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:546: checking for gcc
configure:659: checking whether the C compiler (gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works
configure:675: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv  -lpthread 1>&5
configure:672: warning: return type defaults to `int'
configure:701: checking whether the C compiler (gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a cross-compiler
configure:706: checking whether we are using GNU C
configure:734: checking whether gcc accepts -g
configure:848: checking for pthread_create in -lpthread
configure:939: checking for ldap_init in -lldap_r
configure:956: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -L/usr/local/lib/ -lldap_r -lpthread -lnsl -lresolv  -lpthread 1>&5
/usr/local/lib//libldap_r.so: undefined reference to `ber_dup'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_remove_io'
/usr/local/lib//libldap_r.so: undefined reference to `ber_alloc_t'
/usr/local/lib//libldap_r.so: undefined reference to `ber_next_element'
/usr/local/lib//libldap_r.so: undefined reference to `ber_printf'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_free'
/usr/local/lib//libldap_r.so: undefined reference to `ber_free'
/usr/local/lib//libldap_r.so: undefined reference to `ber_memcalloc'
/usr/local/lib//libldap_r.so: undefined reference to `ber_strdup'
/usr/local/lib//libldap_r.so: undefined reference to `ber_first_element'
/usr/local/lib//libldap_r.so: undefined reference to `ber_bvfree'
/usr/local/lib//libldap_r.so: undefined reference to `ber_init'
/usr/local/lib//libldap_r.so: undefined reference to `ber_flush'
/usr/local/lib//libldap_r.so: undefined reference to `ber_pvt_log_print'
/usr/local/lib//libldap_r.so: undefined reference to `ber_memvfree'
/usr/local/lib//libldap_r.so: undefined reference to `ber_set_option'
/usr/local/lib//libldap_r.so: undefined reference to `ber_write'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_io_debug'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_alloc'
/usr/local/lib//libldap_r.so: undefined reference to `ber_skip_tag'
/usr/local/lib//libldap_r.so: undefined reference to `ber_memalloc'
/usr/local/lib//libldap_r.so: undefined reference to `ber_memrealloc'
/usr/local/lib//libldap_r.so: undefined reference to `ber_get_next'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_io_readahead'
/usr/local/lib//libldap_r.so: undefined reference to `ber_reset'
/usr/local/lib//libldap_r.so: undefined reference to `ber_peek_tag'
/usr/local/lib//libldap_r.so: undefined reference to `ber_bvecfree'
/usr/local/lib//libldap_r.so: undefined reference to `ber_memfree'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_ctrl'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_io_fd'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_io_tcp'
/usr/local/lib//libldap_r.so: undefined reference to `ber_flatten'
/usr/local/lib//libldap_r.so: undefined reference to `ber_sockbuf_add_io'
/usr/local/lib//libldap_r.so: undefined reference to `ber_get_int'
/usr/local/lib//libldap_r.so: undefined reference to `ber_log_dump'
/usr/local/lib//libldap_r.so: undefined reference to `ber_scanf'
/usr/local/lib//libldap_r.so: undefined reference to `ber_pvt_socket_set_nonblock'
collect2: ld returned 1 exit status
configure: failed program was:
#line 949 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
 ldap_init()
; return 0; }
configure:981: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lldap_r -lpthread -lnsl -lresolv  -lpthread 1>&5
/usr/local/lib/libldap_r.so: undefined reference to `ber_dup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_remove_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_alloc_t'
/usr/local/lib/libldap_r.so: undefined reference to `ber_next_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_printf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memcalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_strdup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_first_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_init'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flush'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_log_print'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_set_option'
/usr/local/lib/libldap_r.so: undefined reference to `ber_write'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_debug'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_alloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_skip_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memrealloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_next'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_readahead'
/usr/local/lib/libldap_r.so: undefined reference to `ber_reset'
/usr/local/lib/libldap_r.so: undefined reference to `ber_peek_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvecfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_ctrl'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_fd'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_tcp'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flatten'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_add_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_int'
/usr/local/lib/libldap_r.so: undefined reference to `ber_log_dump'
/usr/local/lib/libldap_r.so: undefined reference to `ber_scanf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_socket_set_nonblock'
collect2: ld returned 1 exit status
configure: failed program was:
#line 974 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
 ldap_init()
; return 0; }
configure:1058: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -L/usr/local/lib -lldap_r -lpthread -lnsl -lresolv  -lpthread 1>&5
/usr/local/lib/libldap_r.so: undefined reference to `ber_dup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_remove_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_alloc_t'
/usr/local/lib/libldap_r.so: undefined reference to `ber_next_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_printf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memcalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_strdup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_first_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_init'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flush'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_log_print'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_set_option'
/usr/local/lib/libldap_r.so: undefined reference to `ber_write'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_debug'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_alloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_skip_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memrealloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_next'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_readahead'
/usr/local/lib/libldap_r.so: undefined reference to `ber_reset'
/usr/local/lib/libldap_r.so: undefined reference to `ber_peek_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvecfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_ctrl'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_fd'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_tcp'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flatten'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_add_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_int'
/usr/local/lib/libldap_r.so: undefined reference to `ber_log_dump'
/usr/local/lib/libldap_r.so: undefined reference to `ber_scanf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_socket_set_nonblock'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1051 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
 ldap_init()
; return 0; }
configure:1058: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -L/opt/lib -lldap_r -lpthread -lnsl -lresolv  -lpthread 1>&5
/usr/local/lib/libldap_r.so: undefined reference to `ber_dup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_remove_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_alloc_t'
/usr/local/lib/libldap_r.so: undefined reference to `ber_next_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_printf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_free'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memcalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_strdup'
/usr/local/lib/libldap_r.so: undefined reference to `ber_first_element'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_init'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flush'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_log_print'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memvfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_set_option'
/usr/local/lib/libldap_r.so: undefined reference to `ber_write'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_debug'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_alloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_skip_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memalloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memrealloc'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_next'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_readahead'
/usr/local/lib/libldap_r.so: undefined reference to `ber_reset'
/usr/local/lib/libldap_r.so: undefined reference to `ber_peek_tag'
/usr/local/lib/libldap_r.so: undefined reference to `ber_bvecfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_memfree'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_ctrl'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_fd'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_io_tcp'
/usr/local/lib/libldap_r.so: undefined reference to `ber_flatten'
/usr/local/lib/libldap_r.so: undefined reference to `ber_sockbuf_add_io'
/usr/local/lib/libldap_r.so: undefined reference to `ber_get_int'
/usr/local/lib/libldap_r.so: undefined reference to `ber_log_dump'
/usr/local/lib/libldap_r.so: undefined reference to `ber_scanf'
/usr/local/lib/libldap_r.so: undefined reference to `ber_pvt_socket_set_nonblock'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1051 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
 ldap_init()
; return 0; }
configure:1245: checking for ldap.h
configure:1263: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/local/include/  conftest.c 1>&5
configure: In function `main':
configure:1259: warning: unused variable `a'

-- end of text --


---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------



More information about the Freeradius-Users mailing list