[Samba] HP-UX, problem with 3.0.5rc1 (was not in pre1)
Ryan Novosielski
novosirj at umdnj.edu
Tue Jul 20 15:22:47 GMT 2004
I have built 3.0.5rc1 for testing, with the same options I was using for
3.0.5pre1. Unfortunately, however, when I build this one, everything tanks
(save for one or two smaller utils) and dumps core. I have attached my
configure script, shamelessly swiped from HP (but edited a little bit for
my site) in their CIFS source.
Would something in particular from the core file be helpful? This is HP-UX
11i, on an N4000 with HP ansiC.
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
-------------- next part --------------
# Check whether the necessary software is installed.
#
# Check for HP Kerberos libraries
# Check for OpenLDAP or HP LDAP libraries
# Check for libiconv
# Check for autoconf
# Check for autoheader
#
export SMBVER="3.0.5rc1"
export CC="cc"
if [[ $(uname -m) = "ia64" ]]; then
export CFLAGS="+DD32 -DUSING_GROUPNAME_MAP -DWITH_SYSLOG -D_KERNEL_THREADS"
else
export CFLAGS="+DA1.1 +DS1.1 -DUSING_GROUPNAME_MAP -DWITH_SYSLOG -L/umdapps/prod/ldapapp/local/lib -I/umdapps/prod/ldapapp/local/include"
fi
export CPPFLAGS="-I/usr/local/include -L/usr/local/lib"
# Generate the version.h from script/mkversion.sh
script/mkversion.sh
if [[ $? != 0 || ! -f include/version.h ]]
then
print "Cannot generate version.h, script/mkversion.h failed to run"
print "successfully."
exit 1
fi
# Generate the config.h.in
# using autoheader
if [[ ! -f include/config.h.in ]]
then
/usr/local/bin/autoheader configure.in
if [[ $? != 0 ]]
then
print "Cannot generate config.h.in, autoheader failed to run"
print "successfully."
exit 1
fi
fi
# Generate the configure script from configure.in
if [[ ! -f configure ]]
then
print "Cannot locate configure script"
print "Generating configure..."
/usr/local/bin/autoconf -o configure configure.in
if [[ $? != 0 ]]
then
print "Cannot generate configure, autoconf failed to run"
print "successfully."
exit 1
fi
fi
if [[ ! -x ./configure ]]
then
print "Configure script is not executable. Adding a +x through"
print "chmod"
chmod +x ./configure
fi
# Run configure script with the needed options to build Samba
#
./configure \
--with-ldap \
--with-ldapsam \
--with-libiconv=/usr/local \
--without-winbind \
--with-quotas \
--with-utmp \
--with-syslog \
--prefix=/opt/samba-$SMBVER \
--libdir=/opt/samba-$SMBVER/lib \
--localstatedir=/var/samba \
--with-configdir=/etc/samba \
--with-privatedir=/etc/samba/private \
--with-lockdir=/var/spool/locks/samba \
--with-swatdir=/opt/samba-$SMBVER/swat \
--with-acl-support \
--with-msdfs \
--with-pam_smbpass \
--with-pam
# Check build and running environment
# Currently 11.00 BE is exactly same with 11.11 BE.
# And 11.22 BE is exactly same with 11.23 BE, and 11.22 will not be deliveried.
# 11.31 BE so far is the same with 11.23 BE, probably is diff from 11.23 in future.
os_ver=`uname -r|cut -d "." -f 3`
case $os_ver in
11 | 00)
version=11
;;
22 | 23)
version=23
;;
31)
version=$os_ver
;;
esac
for afile in include/config.h Makefile; do
diff $afile $afile.$version
if [[ $? != 0 ]]; then
echo "WARNING: $afile is different from $afile.$version."
echo " Please verify the differencies before running make."
echo
fi
done
More information about the samba
mailing list