Building python-ldap from CVS against OpenLDAP 1.2.11/12

Michael Ströder michael at stroeder.com
Mon Jun 25 12:53:27 CEST 2001


HI!

Could someone with autoconf knowledge please have a look into the
config.log attached? I simply do not understand why this won't work.

I guess it mainly fails because of this:
/usr/local/openldap1/lib/libldap.so: undefined reference to
`__dn_expand'
/usr/local/openldap1/lib/libldap.so: undefined reference to
`__res_search'
/usr/local/openldap1/lib/libldap.so: undefined reference to
`_getshort'

Ciao, Michael.
-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:601: checking for gcc
configure:714: checking whether the C compiler (gcc  ) works
configure:730: gcc -o conftest    conftest.c  1>&5
configure:756: checking whether the C compiler (gcc  ) is a cross-compiler
configure:761: checking whether we are using GNU C
configure:770: gcc -E conftest.c
configure:789: checking whether gcc accepts -g
configure:862: checking python version
configure:872: checking python install prefix
configure:925: checking for socket
configure:953: gcc -o conftest -g -O2   conftest.c  1>&5
configure:925: checking for gethostbyname
configure:953: gcc -o conftest -g -O2   conftest.c  1>&5
configure:925: checking for inet_addr
configure:953: gcc -o conftest -g -O2   conftest.c  1>&5
configure:925: checking for inet_ntoa
configure:953: gcc -o conftest -g -O2   conftest.c  1>&5
configure:925: checking for connect
configure:953: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1027: checking for fmod
configure:1055: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccdo41Kp.o: In function `main':
/home/michael/Proj/python/ldap/python-ldap-CVS/python-ldap/configure:1049: undefined reference to `fmod'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1032 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fmod(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char fmod();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fmod) || defined (__stub___fmod)
choke me
#else
fmod();
#endif

; return 0; }
configure:1082: checking for fmod in -lm
configure:1101: gcc -o conftest -g -O2   conftest.c -lm   1>&5
configure:1027: checking for floor
configure:1055: gcc -o conftest -g -O2   conftest.c  -lm 1>&5
configure:1353: checking for library containing ber_free
configure:1371: gcc -o conftest -g -O2 -I/usr/local/openldap1/include  -L/usr/local/openldap1/lib  conftest.c  -lm 1>&5
/tmp/ccjLYVKm.o: In function `main':
/home/michael/Proj/python/ldap/python-ldap-CVS/python-ldap/configure:1367: undefined reference to `ber_free'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1360 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ber_free();

int main() {
ber_free()
; return 0; }
configure:1393: gcc -o conftest -g -O2 -I/usr/local/openldap1/include  -L/usr/local/openldap1/lib  conftest.c -llber   -lm 1>&5
configure:1415: checking for library containing ldap_open
configure:1433: gcc -o conftest -g -O2 -I/usr/local/openldap1/include  -L/usr/local/openldap1/lib  conftest.c -llber  -lm 1>&5
/tmp/ccR5dNE7.o: In function `main':
/home/michael/Proj/python/ldap/python-ldap-CVS/python-ldap/configure:1429: undefined reference to `ldap_open'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1422 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ldap_open();

int main() {
ldap_open()
; return 0; }
configure:1455: gcc -o conftest -g -O2 -I/usr/local/openldap1/include  -L/usr/local/openldap1/lib  conftest.c -lldap  -llber  -lm 1>&5
/usr/local/openldap1/lib/libldap.so: undefined reference to `__dn_expand'
/usr/local/openldap1/lib/libldap.so: undefined reference to `__res_search'
/usr/local/openldap1/lib/libldap.so: undefined reference to `_getshort'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1444 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ldap_open();

int main() {
ldap_open()
; return 0; }
configure:1476: checking for ldap_open
configure:1504: gcc -o conftest -g -O2 -I/usr/local/openldap1/include  -L/usr/local/openldap1/lib  conftest.c -llber  -lm 1>&5
/tmp/ccEdInrV.o: In function `main':
/home/michael/Proj/python/ldap/python-ldap-CVS/python-ldap/configure:1498: undefined reference to `ldap_open'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1481 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_open(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ldap_open();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ldap_open) || defined (__stub___ldap_open)
choke me
#else
ldap_open();
#endif

; return 0; }


More information about the python-ldap mailing list