Luk Vermeylen
2002-Feb-27  13:48 UTC
[Samba] problems builing mandrake rpm from 3.0 alpha15
building rpm for mandrake 8.1 gives me this error
what should i try?
checking for two-argument statfs with struct fs_data (Ultrix)... no
checking if large file support can be enabled... yes
checking whether to support ACLs... no
checking whether to build winbind... yes
checking for poptGetContext in -lpopt... no
checking whether to use included popt... ./popt
checking configure summary
configure: error: summary failure. Aborting config
error: Bad exit status from /var/tmp/rpm-tmp.99650 (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.99650 (%build)
[root@www Mandrake]# 
in the log file is this:
#!/bin/sh
  RPM_SOURCE_DIR="/usr/src/RPM/SOURCES"
  RPM_BUILD_DIR="/usr/src/RPM/BUILD"
  RPM_OPT_FLAGS="-O2 -march=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="PVERSION"
  RPM_PACKAGE_RELEASE="PRELEASE"
  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/RPM/BUILD
cd samba-PVERSION
cd source
NUMCPU=`grep processor /proc/cpuinfo | wc -l`
CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \
	--prefix=/usr \
	--with-fhs \
	--libdir=/etc/samba \
	--localstatedir=/var \
	--with-codepagedir=/usr/share/samba/codepages \
	--with-configdir=/etc/samba \
	--with-lockdir=/var/lock/samba \
	--with-swatdir=/usr/share/swat \
	--with-quotas \
	--with-smbmount \
	--with-pam \
	--with-pam_smbpass \
	--with-syslog \
	--with-utmp \
	--with-netatalk \
	--with-sambabook=/usr/share/swat/using_samba
make -j${NUMCPU} proto
make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html
exit 0
-- 
Luk Vermeylen
Putsebaan 84
2040 Antwerpen 4
+32(0)32950012
Linux Counter: 186539
Is your /var filesystem full? --On Wednesday, February 27, 2002 22:39 +0100 Luk Vermeylen <luk@vermeylen.org> wrote:> building rpm for mandrake 8.1 gives me this error > what should i try? > > checking for two-argument statfs with struct fs_data (Ultrix)... no > checking if large file support can be enabled... yes > checking whether to support ACLs... no > checking whether to build winbind... yes > checking for poptGetContext in -lpopt... no > checking whether to use included popt... ./popt > checking configure summary > configure: error: summary failure. Aborting config > error: Bad exit status from /var/tmp/rpm-tmp.99650 (%build) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.99650 (%build) > [root@www Mandrake]# > > in the log file is this: > > ># !/bin/sh > > RPM_SOURCE_DIR="/usr/src/RPM/SOURCES" > RPM_BUILD_DIR="/usr/src/RPM/BUILD" > RPM_OPT_FLAGS="-O2 -march=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="PVERSION" > RPM_PACKAGE_RELEASE="PRELEASE" > 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/RPM/BUILD > cd samba-PVERSION > cd source > > > NUMCPU=`grep processor /proc/cpuinfo | wc -l` > > CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ > --prefix=/usr \ > --with-fhs \ > --libdir=/etc/samba \ > --localstatedir=/var \ > --with-codepagedir=/usr/share/samba/codepages \ > --with-configdir=/etc/samba \ > --with-lockdir=/var/lock/samba \ > --with-swatdir=/usr/share/swat \ > --with-quotas \ > --with-smbmount \ > --with-pam \ > --with-pam_smbpass \ > --with-syslog \ > --with-utmp \ > --with-netatalk \ > --with-sambabook=/usr/share/swat/using_samba > > make -j${NUMCPU} proto > make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html > > exit 0 > > -- > Luk Vermeylen > Putsebaan 84 > 2040 Antwerpen 4 > +32(0)32950012 > Linux Counter: 186539 > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
You might be better off using a Mandrake srpm or spec file.
Unfortunately I have not had time to build 3alpha15, but you can find an
   SRPM here:
http://ranger.dnsalias.com/mandrake/samba/SRPMS/samba-3.0alpha14-0.1mdk.src.rpm
or a spec file here:
http://ranger.dnsalias.com/mandrake/samba/SRPMS/samba-3.0alpha14-0.1mdk.spec
You should then untar samba-3.0-alpha15 and rename it's directory to
samba-3.0alpha15, then tar it up as samba-3.0alpha14.tar.bz2, copy it to
your rpm/SOUCES directory. Copy the spec file as
samba-3.0alpha15-0.0mdk.spec and change the %define ver 3.0alpha14 in
the spec file to %define ver 3.0alpha15 (this is all to keep rpm happy 
that there is no "-" in the version number) and then do:
rpm -ba --with mdk81 samba-3.0alpha15-0.0mdk.spec
If you want winbind, ads or ldap support, you can add the following
optoins to the rpm  command (respectively):
- --with winbind --with ads --with ldap
There are still some things I need to get synced from samba-2.2.3a-6mdk,
but you should get working rpms with the files in the same locations,
and you won't have to use --force when installing them.
If you wait long enough I can get 3alpha15 compiled, so look in
http://ranger.dnsalias.com/mandrake/samba/RPMS/8.1/3.0-alpha/ for RPMs.
Regards,
Buchan
| Message: 8
| From: Luk Vermeylen <luk@vermeylen.org>
| To: samba@lists.samba.org
| Date: 27 Feb 2002 22:39:48 +0100
| Subject: [Samba] problems builing mandrake rpm from 3.0 alpha15
|
| building rpm for mandrake 8.1 gives me this error
| what should i try?
|
| checking for two-argument statfs with struct fs_data (Ultrix)... no
| checking if large file support can be enabled... yes
| checking whether to support ACLs... no
| checking whether to build winbind... yes
| checking for poptGetContext in -lpopt... no
| checking whether to use included popt... ./popt
| checking configure summary
| configure: error: summary failure. Aborting config
| error: Bad exit status from /var/tmp/rpm-tmp.99650 (%build)
|
|
| RPM build errors:
|     Bad exit status from /var/tmp/rpm-tmp.99650 (%build)
| [root@www Mandrake]#
|
| in the log file is this:
|
|
| #!/bin/sh
|
|   RPM_SOURCE_DIR="/usr/src/RPM/SOURCES"
|   RPM_BUILD_DIR="/usr/src/RPM/BUILD"
|   RPM_OPT_FLAGS="-O2 -march=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="PVERSION"
|   RPM_PACKAGE_RELEASE="PRELEASE"
|   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/RPM/BUILD
| cd samba-PVERSION
| cd source
|
|
| NUMCPU=`grep processor /proc/cpuinfo | wc -l`
|
| CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \
| 	--prefix=/usr \
| 	--with-fhs \
| 	--libdir=/etc/samba \
| 	--localstatedir=/var \
| 	--with-codepagedir=/usr/share/samba/codepages \
| 	--with-configdir=/etc/samba \
| 	--with-lockdir=/var/lock/samba \
| 	--with-swatdir=/usr/share/swat \
| 	--with-quotas \
| 	--with-smbmount \
| 	--with-pam \
| 	--with-pam_smbpass \
| 	--with-syslog \
| 	--with-utmp \
| 	--with-netatalk \
| 	--with-sambabook=/usr/share/swat/using_samba
|
| make -j${NUMCPU} proto
| make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html
|
| exit 0
|
| -- Luk Vermeylen Putsebaan 84 2040 Antwerpen 4 +32(0)32950012 Linux
Counter: 186539
|
- --
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                       http://ranger.dnsalias.com/gpg.key