Problem compiling SAMBA with ldap support

Nixon, Shon shonn at midrex.com
Fri Sep 3 13:40:58 GMT 1999


Don't know if this will help, but this was from the actual compile on
screen:

I get the following errors:

checking how to get filesystem space usage
checking statvfs64 function (SVR4)... no
checking statvfs function (SVR4)... no
checking for 3-argument statfs function (DEC OSF/1)... no
checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)...
no
checking for four-argument statfs (AIX-3.2.5, SVR3)... no
checking for two-argument statfs with statfs.fsize member (4.4BSD and
NetBSD)... no
checking for two-argument statfs with struct fs_data (Ultrix)... no
checking configure summarty
configure: error: summary failure. Aborting config


>From last message:

I have downloaded the latest samba code (2.1.X) and am trying to compile it
with ldap support on a RH 5.2 Linux box. I have compiled and installed
openldap 1.2.6 and have it running. I have followed Dr. Coupeau's latest FAQ
(thanks very much for the time and effort sir) by moving the include and
library files to /usr/include and /usr/lib and trying to compile with no
luck. Then I tried inserting the LDAPFLAGS statement and editing the FLAGS1
string. I pointed it to the newly compiled /usr/src/ldap/include and
libraries directories but that failed too. I know it is the --with-ldap
switch because it compiles just fine without it. Could someone take a look
at this and tell me what I am missing? Any and all help is greatly
appreciated. The error I keep getting from config.log is:

configure:8705: checking statvfs function (SVR4)
configure:8718: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
configure:8712: sys/statvfs.h: No such file or directory
configure: failed program was:
#line 8710 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/statvfs.h>
int main() {
struct statvfs fsd; statvfs (0, &fsd);
; return 0; }
configure:8743: checking for 3-argument statfs function (DEC OSF/1)
configure:8764: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
configure: In function `main':
configure:8758: storage size of `fsd' isn't known
configure:8760: sizeof applied to an incomplete type
configure: failed program was:
#line 8751 "configure"
#include "confdefs.h"

#include <sys/param.h>
#include <sys/types.h>
#include <sys/mount.h>
  main ()
  {
    struct statfs fsd;
    fsd.f_fsize = 0;
    exit (statfs (".", &fsd, sizeof (struct statfs)));
  }
configure:8791: checking for two-argument statfs with 
statfs.bsize member
(AIX, 4.3BSD)
configure:8818: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
/usr/lib/libldap.so: undefined reference to `res_search'
/usr/lib/libldap.so: undefined reference to `dn_expand'
/usr/lib/libldap.so: undefined reference to `_getshort'
configure: failed program was:
#line 8799 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
  main ()
  {
  struct statfs fsd;
  fsd.f_bsize = 0;
  exit (statfs (".", &fsd));
  }
configure:8845: checking for four-argument statfs (AIX-3.2.5, SVR3)
configure:8863: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
configure: In function `main':
configure:8859: too many arguments to function `statfs'
configure: failed program was:
#line 8853 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/statfs.h>
  main ()
  {
  struct statfs fsd;
  exit (statfs (".", &fsd, sizeof fsd, 0));
  }
configure:8890: checking for two-argument statfs with 
statfs.fsize member
(4.4BSD and NetBSD)
configure:8914: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
configure: In function `main':
configure:8908: storage size of `fsd' isn't known
configure: failed program was:
#line 8898 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
  main ()
  {
  struct statfs fsd;
  fsd.f_fsize = 0;
  exit (statfs (".", &fsd));
  }
configure:8941: checking for two-argument statfs with struct fs_data
(Ultrix)
configure:8969: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
configure: In function `main':
configure:8962: storage size of `fsd' isn't known
configure: failed program was:
#line 8949 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
  main ()
  {
  struct fs_data fsd;
  /* Ultrix's statfs returns 1 for success,
     0 for not mounted, -1 for failure.  */
  exit (statfs (".", &fsd) != 1);
  }
configure:9002: gcc -o conftest -O   conftest.c -ldl  -lcrypt 
-lpam -lldap
-llber 1>&5
/usr/lib/libldap.so: undefined reference to `res_search'
/usr/lib/libldap.so: undefined reference to `dn_expand'
/usr/lib/libldap.so: undefined reference to `_getshort'
configure: failed program was:
#line 8998 "configure"
#include "confdefs.h"
#include "./tests/summary.c"



Best Regards - Shon Nixon


More information about the samba-ntdom mailing list