[Samba] unable to compile samba 3.0.28a on RHEL 5.1 i386

Svancara, Randall rsvancara at wsu.edu
Tue Apr 8 20:33:42 GMT 2008


Try this and report back the output:


rpm -qa |grep gcc

Thanks,

Randall



On Tue, 2008-04-08 at 14:04 -0500, Adam Williams wrote:
> any ideas why it won't compile? running 
> /root/samba-3.0.28a/packaging/RHEL/makerpms.sh
> eventually it gets to:
> 
> 
> 
> ./autogen.sh: running script/mkversion.sh
> ./script/mkversion.sh: 'include/version.h' created for
> Samba("3.0.28a")
> ./autogen.sh: running autoheader -I. -Ilib/replace
> ./autogen.sh: running autoconf -I. -Ilib/replace
> Now run ./configure and then make.
> + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 
> -mtune=generic -fasynchronous-unwind-tables  -D_GNU_SOURCE'
> + ./configure --prefix=/usr --localstatedir=/var 
> --with-configdir=/etc/samba --with-libdir=/usr/lib/samba 
> --with-lockdir=/var/lib/samba --with-logfilebase=/var/log/samba 
> --with-mandir=/usr/share/man --with-piddir=/var/run 
> --with-privatedir=/etc/samba 
> --with-sambabook=/usr/share/swat/using_samba 
> --with-swatdir=/usr/share/swat --enable-cups --with-acl-support 
> --with-ads --with-automount --with-fhs --with-pam_smbpass 
> --with-libsmbclient --with-libsmbsharemodes --without-smbwrapper 
> --with-pam --with-quotas --with-shared-modules=idmap_rid,idmap_ad 
> --with-smbmount --with-syslog --with-utmp --with-dnsupdate
> SAMBA VERSION: 3.0.28a
> LIBREPLACE_LOCATION_CHECKS: START
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> LIBREPLACE_LOCATION_CHECKS: END
> LIBREPLACE_CC_CHECKS: START
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error:
> C 
> compiler cannot create executables
> See `config.log' for more details.
> error: Bad exit status from /var/tmp/rpm-tmp.12141 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.12141 (%build)
> makerpms.sh: Done.
> 
> 
> 
> and config.log:
> 
> [root at preshs RHEL]# cat 
> /usr/src/redhat/BUILD/samba-3.0.28a/source/config.log |more
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> It was created by configure, which was
> generated by GNU Autoconf 2.59.  Invocation command line was
> 
>   $ ./configure --prefix=/usr --localstatedir=/var 
> --with-configdir=/etc/samba -
> -with-libdir=/usr/lib/samba --with-lockdir=/var/lib/samba 
> --with-logfilebase=/va
> r/log/samba --with-mandir=/usr/share/man --with-piddir=/var/run 
> --with-privatedi
> r=/etc/samba --with-sambabook=/usr/share/swat/using_samba 
> --with-swatdir=/usr/sh
> are/swat --enable-cups --with-acl-support --with-ads --with-automount 
> --with-fhs
>  --with-pam_smbpass --with-libsmbclient --with-libsmbsharemodes 
> --without-smbwra
> pper --with-pam --with-quotas
> --with-shared-modules=idmap_rid,idmap_ad 
> --with-sm
> bmount --with-syslog --with-utmp --with-dnsupdate
> 
> ## --------- ##
> ## Platform. ##
> ## --------- ##
> 
> hostname = preshs.mdah.state.ms.us
> uname -m = i686
> uname -r = 2.6.18-53.el5PAE
> uname -s = Linux
> uname -v = #1 SMP Mon Nov 12 02:55:09 EST 2007
> 
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
> 
> /bin/arch              = i686
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo               = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
> 
> PATH: /usr/kerberos/sbin
> PATH: /usr/kerberos/bin
> PATH: /usr/local/sbin
> PATH: /usr/local/bin
> PATH: /sbin
> PATH: /bin
> PATH: /usr/sbin
> PATH: /usr/bin
> PATH: /root/bin
> 
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
> 
> configure:1441: checking build system type
> configure:1459: result: i686-pc-linux-gnu
> configure:1467: checking host system type
> configure:1481: result: i686-pc-linux-gnu
> configure:1489: checking target system type
> configure:1503: result: i686-pc-linux-gnu
> configure:1975: checking for gcc
> configure:1991: found /usr/bin/gcc
> configure:2001: result: gcc
> configure:2245: checking for C compiler version
> configure:2248: gcc --version </dev/null >&5
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> configure:2251: $? = 0
> configure:2253: gcc -v </dev/null >&5
> Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
> --infodir=/u
> sr/share/info --enable-shared --enable-threads=posix
> --disable-checking 
> --with-s
> ystem-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
> --enable-java-aw
> t=gtk --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
> configure:2256: $? = 0
> configure:2258: gcc -V </dev/null >&5
> gcc: `-V' option must have argument
> configure:2261: $? = 1
> configure:2284: checking for C compiler default output file name
> configure:2287: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
> -fexceptions -fst
> ack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> -mtune=generic 
> -fasynch
> ronous-unwind-tables  -D_GNU_SOURCE -D_SAMBA_BUILD_=3   conftest.c
> >&5
> gcc: installation problem, cannot exec `cc1': No such file or
> directory
> configure:2290: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define CONFIG_H_IS_FROM_SAMBA 1
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2329: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
> 
> ac_cv_build=i686-pc-linux-gnu
> ac_cv_build_alias=i686-pc-linux-gnu
> ac_cv_env_CC_set=
> ac_cv_env_CC_value=
> ac_cv_env_CFLAGS_set=set
> ac_cv_env_CFLAGS_value='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
> -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 
> -mtune=generic -fas
> ynchronous-unwind-tables  -D_GNU_SOURCE'
> ac_cv_env_CPPFLAGS_set=
> ac_cv_env_CPPFLAGS_value=
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_LDFLAGS_set=
> ac_cv_env_LDFLAGS_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_target_alias_set=
> ac_cv_env_target_alias_value=
> ac_cv_host=i686-pc-linux-gnu
> ac_cv_host_alias=i686-pc-linux-gnu
> ac_cv_prog_ac_ct_CC=gcc
> ac_cv_prog_cc_Ae=no
> ac_cv_target=i686-pc-linux-gnu
> ac_cv_target_alias=i686-pc-linux-gnu
> 
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
> 
> ACL_LIBS=''
> AR=''
> AUTH_LIBS=''
> AUTH_MODULES=''
> AUTH_STATIC=''
> AWK=''
> BROKEN_CC=''
> BUILD_INIPARSER=''
> BUILD_POPT=''
> CC='gcc'
> CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protecto
> r --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
> -fasynchronous-unwin
> d-tables  -D_GNU_SOURCE -D_SAMBA_BUILD_=3'
> CHARSET_MODULES=''
> CHARSET_STATIC=''
> CIFSMOUNT_PROGS=''
> CONFIG_LIBS=''
> CPP=''
> CPPFLAGS=''
> CUPS_CONFIG=''
> DEFAULT_TEST_TARGET=''
> DEFS=''
> DYNEXP=''
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EGREP=''
> EXEEXT=''
> EXTRA_ALL_TARGETS=''
> EXTRA_BIN_PROGS=''
> EXTRA_SBIN_PROGS=''
> FLAGS1=''
> HAVE_SOCKET_WRAPPER=''
> HOST_OS=''
> IDMAP_LIBS=''
> IDMAP_MODULES=''
> IDMAP_STATIC=''
> INIPARSERLIBS=''
> INSTALLLIBCMD_A=''
> INSTALLLIBCMD_SH=''
> INSTALL_CIFSMOUNT=''
> INSTALL_DATA=''
> INSTALL_LIBADDNS=''
> INSTALL_LIBMSRPC=''
> INSTALL_LIBSMBCLIENT=''
> INSTALL_LIBSMBSHAREMODES=''
> INSTALL_PAM_MODULES=''
> INSTALL_PROGRAM=''
> INSTALL_SCRIPT=''
> KRB5CONFIG=''
> KRB5_LIBS=''
> LDAP_LIBS=''
> LDBLDAP=''
> LDFLAGS=''
> LDSHFLAGS=''
> LIBADDNS=''
> LIBADDNS_SHARED=''
> LIBDL=''
> LIBMSRPC=''
> LIBMSRPC_SHARED=''
> LIBOBJS=''
> LIBREPLACEOBJ='replace.o'
> LIBREPLACE_OBJS=''
> LIBS=''
> LIBSMBCLIENT=''
> LIBSMBCLIENT_SHARED=''
> LIBSMBSHAREMODES=''
> LIBSMBSHAREMODES_SHARED=''
> LIBUNWIND_PTRACE=''
> LTLIBOBJS=''
> NSCD_LIBS=''
> NSSSONAMEVERSIONSUFFIX=''
> NSS_INFO_MODULES=''
> NSS_INFO_STATIC=''
> NSS_MODULES=''
> OBJEXT=''
> PACKAGE_BUGREPORT=''
> PACKAGE_NAME=''
> PACKAGE_STRING=''
> PACKAGE_TARNAME=''
> PACKAGE_VERSION=''
> PAM_MODULES=''
> PASSDB_LIBS=''
> PATH_SEPARATOR=':'
> PDB_MODULES=''
> PDB_STATIC=''
> PERL=''
> PICFLAG=''
> PIDL_ARGS=''
> PIE_CFLAGS=''
> PIE_LDFLAGS=''
> POPTLIBS=''
> PRINT_LIBS=''
> PYTHON=''
> ROFF=''
> RPC_MODULES=''
> RPC_STATIC=''
> SAMBA_CPPFLAGS='-Iinclude -I./include  -I. -I. -I./lib/replace 
> -I./lib/talloc -I
> ./tdb/include -I./libaddns -I./librpc'
> SHELL='/bin/sh'
> SHLD=''
> SHLIBEXT=''
> SMBD_LIBS=''
> SMBLDAP=''
> SMBLDAPUTIL=''
> SMBMOUNT_PROGS=''
> SMB_FAM_LIBS=''
> SMB_KRB5_LOCATOR=''
> SOCKET_WRAPPER_OBJS=''
> SONAMEFLAG=''
> TERMLDFLAGS=''
> TERMLIBS=''
> UNINSTALLLIBCMD_A=''
> UNINSTALLLIBCMD_SH=''
> UNINSTALL_CIFSMOUNT=''
> UNINSTALL_LIBADDNS=''
> UNINSTALL_LIBMSRPC=''
> UNINSTALL_LIBSMBCLIENT=''
> UNINSTALL_LIBSMBSHAREMODES=''
> UNINSTALL_PAM_MODULES=''
> UUID_LIBS=''
> VFS_MODULES=''
> VFS_STATIC=''
> WINBIND_NSS=''
> WINBIND_NSS_EXTRA_LIBS=''
> WINBIND_NSS_EXTRA_OBJS=''
> WINBIND_NSS_LDSHFLAGS=''
> WINBIND_WINS_NSS=''
> ac_ct_AR=''
> ac_ct_CC='gcc'
> bindir='${exec_prefix}/bin'
> build='i686-pc-linux-gnu'
> build_alias=''
> build_cpu='i686'
> build_os='linux-gnu'
> build_vendor='pc'
> builddir=''
> configdir='/etc/samba'
> datadir='${prefix}/share'
> exec_prefix='NONE'
> host='i686-pc-linux-gnu'
> host_alias=''
> host_cpu='i686'
> host_os='linux-gnu'
> host_vendor='pc'
> includedir='${prefix}/include'
> infodir='${prefix}/info'
> libdir='/usr/lib/samba'
> libexecdir='${exec_prefix}/libexec'
> libreplace_cv_immediate_structures=''
> libreplacedir='./lib/replace'
> localstatedir='/var'
> lockdir='/var/lib/samba'
> logfilebase='/var/log/samba'
> mandir='/usr/share/man'
> oldincludedir='/usr/include'
> pammodulesdir='${LIBDIR}/security'
> piddir='/var/run'
> precompiled_headers=''
> prefix='/usr'
> privatedir='/etc/samba'
> program_transform_name='s,x,x,'
> rootsbindir='${SBINDIR}'
> sbindir='${exec_prefix}/sbin'
> selftest_prefix=''
> sharedstatedir='${prefix}/com'
> smbtorture4_path=''
> swatdir='/usr/share/swat'
> sysconfdir='${prefix}/etc'
> target='i686-pc-linux-gnu'
> target_alias=''
> target_cpu='i686'
> target_os='linux-gnu'
> target_vendor='pc'
> 
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
> 
> #define CONFIG_H_IS_FROM_SAMBA 1
> #define PACKAGE_BUGREPORT ""
> #define PACKAGE_NAME ""
> #define PACKAGE_STRING ""
> #define PACKAGE_TARNAME ""
> #define PACKAGE_VERSION ""
> 
> configure: exit 77
> [root at preshs RHEL]#
> 
> 


More information about the samba mailing list