Bug 74379 - Compiling crashes with LDAP Support enabled.
Compiling crashes with LDAP Support enabled.
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: samba (Show other bugs)
7.2
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-22 13:14 EDT by Raoul Thill
Modified: 2007-04-18 12:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-09-22 13:14:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Raoul Thill 2002-09-22 13:14:42 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Description of problem:
When I edit my samba.spec file and insert --with-ldapsam, my compiling 
procedure crashes every time with this error:
...
Compiling passdb/pdb_ldap.c 
passdb/pdb_ldap.c:48:18: lber.h: No such file or directory 
passdb/pdb_ldap.c:49:18: ldap.h: No such file or directory 
make: *** [passdb/pdb_ldap.o] Error 1 
error: Bad exit status from /var/tmp/rpm-tmp.95563 (%build) 

I've got this fault message with the versions 2.2.4, 2.2.5 and 2.2.6 !

Here is also the output from the /var/tmp file:
#!/bin/sh 

RPM_SOURCE_DIR="/usr/src/redhat/SOURCES" 
RPM_BUILD_DIR="/usr/src/redhat/BUILD" 
RPM_OPT_FLAGS="-O2 -march=i386 -mcpu=i686" 
RPM_ARCH="i386" 
RPM_OS="linux" 
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS 
RPM_DOC_DIR="/usr/share/doc" 
export RPM_DOC_DIR 
RPM_PACKAGE_NAME="samba" 
RPM_PACKAGE_VERSION="2.2.6pre2" 
RPM_PACKAGE_RELEASE="1" 
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE 
RPM_BUILD_ROOT="/var/tmp/samba" 
export RPM_BUILD_ROOT 

set -x 
umask 022 
cd /usr/src/redhat/BUILD 
cd samba-2.2.6pre2 
## Build main Samba source 
cd source 

NUMCPU=`grep processor /proc/cpuinfo | wc -l` 
CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ 
--prefix=/usr \ 
--localstatedir=/var \ 
--with-configdir=/etc/samba \ 
--with-privatedir=/etc/samba \ 
--with-codepagedir=/etc/codepages \ 
--with-ldapsam \ 
--with-fhs \ 
--with-quotas \ 
--with-msdfs \ 
--with-smbmount \ 
--with-syslog \ 
--with-utmp \ 
--with-sambabook=/usr/share/swat/using_samba \ 
--with-swatdir=/usr/share/swat \ 
--with-libsmbclient 
make -j${NUMCPU} proto 
make -j${NUMCPU} all nsswitch/libnss_wins.so 
make -j${NUMCPU} debug2html 
make -j${NUMCPU} bin/smbspool 

## Build VFS modules 
cd ../examples/VFS 
CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ 
--prefix=/usr \ 
--localstatedir=/var 
make 



exit 0


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.installing the srpm
2.edit the samba.spec file and insert --with-ldapsam
3.run: cd /usr/src/redhat/SPECS && rpm -ba samba.spec
	

Additional info:
Comment 1 Raoul Thill 2002-09-22 13:34:00 EDT
It wasn't a bug, just install openldap-devel-x.rpm, and compiling works ;-)

Note You need to log in before you can comment on or make changes to this bug.