Make problem: Makefile target missing in "Modules" directory

Arnaud Fausse arnaud.fausse1 at libertysurf.fr
Wed Sep 26 03:26:16 CEST 2001


Hi,

I would like to use the LDAP_Python library and I downloaded the sources.
My platform is x86 Linux Mandrake 8.0.
I built the full OpenLDAP 2.0.11 package without difficulties, same for LDAP- 
3.3. By the way, I use Python 2.0.
I try to build the Python-Ldap in my home directory (name '/home/poussin')
I run the configure command: ./configure ...with tokens for lib and include 
locations.
Configuration script seems OK, but 'make' fails on the 'Modules' part where 
there is no target. (same effect being root or not).
Below you find:
- the console display
- the config log as attached doc.
Can you help me ?
Did I miss something obvious ?
Is there anyboday who can help me ?
Thanks in advance for your help
Arnaud
-------------------------------
console log

[poussin at wang python-ldap-1.10alpha3]$ ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
(cached) checking python version... (cached) 2.0
checking python install prefix... (cached) /usr
checking for /tmp/ldap-pfx... no
checking for socket... (cached) yes
checking for gethostbyname... (cached) yes
checking for inet_addr... (cached) yes
checking for inet_ntoa... (cached) yes
checking for connect... (cached) yes
checking for fmod... (cached) no
checking for fmod in -lm... (cached) yes
checking for floor... (cached) yes
checking for krb_mk_req... (cached) no
checking for krb_mk_req in -lkrb... (cached) no
checking for des_setkey... (cached) no
checking for des_setkey in -ldes... (cached) no
checking for library containing ber_free... (cached) -llber
checking for library containing ldap_open... (cached) -lldap
checking for ldap_open... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ldap.h... (cached) yes
checking for lber.h... (cached) yes
checking number of arguments to ldap_set_rebind_proc()... (cached) 2
checking for ldap_kerberos_bind_s... (cached) no
checking for ldap_kerberos_bind1... (cached) no
checking for ldap_kerberos_bind1_s... (cached) no
checking for ldap_kerberos_bind2... (cached) no
checking for ldap_kerberos_bind2_s... (cached) no
checking for ldap_enable_cache... (cached) yes
checking for ldap_disable_cache... (cached) yes
checking for ldap_set_cache_options... (cached) yes
checking for ldap_destroy_cache... (cached) yes
checking for ldap_flush_cache... (cached) yes
checking for ldap_uncache_entry... (cached) yes
checking for ldap_uncache_request... (cached) yes
checking whether the LDAP type is opaque... (cached) yes
checking for ldap_modrdn2_s... (cached) yes
checking for ldap_modrdn2... (cached) yes
checking for ldap_init_templates... (cached) yes
checking for disptmpl.h... (cached) yes
checking python makefile... ./Misc/Makefile.python-1.4
creating ./config.status
creating Modules/Setup
creating Makefile
creating Modules/config.h
Modules/config.h is unchanged
bootstrapping makefile
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
        VERSION=$VERSION \
        installdir=$installdir \
        exec_installdir=$exec_installdir \
        Makefile
make[1]: Entering directory 
`/home/poussin/python/python-ldap-1.10alpha3/Modules'
make[1]: *** No rule to make target `/usr/lib/python2.0/config/Makefile', 
needed by `sedscript'.  Stop.
make[1]: Leaving directory 
`/home/poussin/python/python-ldap-1.10alpha3/Modules'make: *** [boot] Error 2
[poussin at wang python-ldap-1.10alpha3]$
-------------- 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:827: checking for python
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/ccGWSUSA.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/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:1136: checking for krb_mk_req
configure:1164: gcc -o conftest -g -O2   conftest.c  -lm 1>&5
/tmp/cckAtyNl.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1158: undefined reference to `krb_mk_req'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1141 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char krb_mk_req(); 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 krb_mk_req();

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_krb_mk_req) || defined (__stub___krb_mk_req)
choke me
#else
krb_mk_req();
#endif

; return 0; }
configure:1190: checking for krb_mk_req in -lkrb
configure:1209: gcc -o conftest -g -O2   conftest.c -lkrb   -lm 1>&5
/usr/bin/ld: cannot find -lkrb
collect2: ld returned 1 exit status
configure: failed program was:
#line 1198 "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 krb_mk_req();

int main() {
krb_mk_req()
; return 0; }
configure:1233: checking for des_setkey
configure:1261: gcc -o conftest -g -O2   conftest.c  -lm 1>&5
/tmp/ccMKB5Ag.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1255: undefined reference to `des_setkey'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1238 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char des_setkey(); 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 des_setkey();

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_des_setkey) || defined (__stub___des_setkey)
choke me
#else
des_setkey();
#endif

; return 0; }
configure:1287: checking for des_setkey in -ldes
configure:1306: gcc -o conftest -g -O2   conftest.c -ldes   -lm 1>&5
/usr/bin/ld: cannot find -ldes
collect2: ld returned 1 exit status
configure: failed program was:
#line 1295 "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 des_setkey();

int main() {
des_setkey()
; return 0; }
configure:1353: checking for library containing ber_free
configure:1371: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c  -lm 1>&5
/tmp/ccbq1MWm.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/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/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -llber   -lm 1>&5
configure:1415: checking for library containing ldap_open
configure:1433: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -llber  -lm 1>&5
/tmp/ccYdFuKr.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/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/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap  -llber  -lm 1>&5
configure:1476: checking for ldap_open
configure:1504: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1525: checking how to run the C preprocessor
configure:1546: gcc -E -I/home/poussin/ldap-3.3/include  conftest.c >/dev/null 2>conftest.out
configure:1606: checking for ldap.h
configure:1616: gcc -E -I/home/poussin/ldap-3.3/include  conftest.c >/dev/null 2>conftest.out
configure:1640: checking for lber.h
configure:1650: gcc -E -I/home/poussin/ldap-3.3/include  conftest.c >/dev/null 2>conftest.out
configure:1675: checking number of arguments to ldap_set_rebind_proc()
configure:1688: gcc -c -g -O2 -I/home/poussin/ldap-3.3/include  conftest.c 1>&5
configure:1714: checking for ldap_kerberos_bind_s
configure:1742: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
/tmp/ccxsOz0J.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1736: undefined reference to `ldap_kerberos_bind_s'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1719 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_kerberos_bind_s(); 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_kerberos_bind_s();

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_kerberos_bind_s) || defined (__stub___ldap_kerberos_bind_s)
choke me
#else
ldap_kerberos_bind_s();
#endif

; return 0; }
configure:1714: checking for ldap_kerberos_bind1
configure:1742: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
/tmp/ccXmynxo.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1736: undefined reference to `ldap_kerberos_bind1'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1719 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_kerberos_bind1(); 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_kerberos_bind1();

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_kerberos_bind1) || defined (__stub___ldap_kerberos_bind1)
choke me
#else
ldap_kerberos_bind1();
#endif

; return 0; }
configure:1714: checking for ldap_kerberos_bind1_s
configure:1742: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
/tmp/ccfvtyV2.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1736: undefined reference to `ldap_kerberos_bind1_s'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1719 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_kerberos_bind1_s(); 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_kerberos_bind1_s();

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_kerberos_bind1_s) || defined (__stub___ldap_kerberos_bind1_s)
choke me
#else
ldap_kerberos_bind1_s();
#endif

; return 0; }
configure:1714: checking for ldap_kerberos_bind2
configure:1742: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
/tmp/ccb0RtYJ.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1736: undefined reference to `ldap_kerberos_bind2'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1719 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_kerberos_bind2(); 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_kerberos_bind2();

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_kerberos_bind2) || defined (__stub___ldap_kerberos_bind2)
choke me
#else
ldap_kerberos_bind2();
#endif

; return 0; }
configure:1714: checking for ldap_kerberos_bind2_s
configure:1742: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
/tmp/ccJSOPNq.o: In function `main':
/home/poussin/python-ldap-1.10alpha3/configure:1736: undefined reference to `ldap_kerberos_bind2_s'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1719 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_kerberos_bind2_s(); 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_kerberos_bind2_s();

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_kerberos_bind2_s) || defined (__stub___ldap_kerberos_bind2_s)
choke me
#else
ldap_kerberos_bind2_s();
#endif

; return 0; }
configure:1773: checking for ldap_enable_cache
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_disable_cache
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_set_cache_options
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_destroy_cache
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_flush_cache
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_uncache_entry
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1773: checking for ldap_uncache_request
configure:1801: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1827: checking whether the LDAP type is opaque
configure:1840: gcc -c -g -O2 -I/home/poussin/ldap-3.3/include  conftest.c 1>&5
configure:1864: checking for ldap_modrdn2_s
configure:1892: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1864: checking for ldap_modrdn2
configure:1892: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1864: checking for ldap_init_templates
configure:1892: gcc -o conftest -g -O2 -I/home/poussin/ldap-3.3/include  -L/home/poussin/ldap-3.3/libraries  conftest.c -lldap -llber  -lm 1>&5
configure:1920: checking for disptmpl.h
configure:1930: gcc -E -I/home/poussin/ldap-3.3/include  conftest.c >/dev/null 2>conftest.out
configure:2038: checking python makefile


More information about the python-ldap mailing list