[Dovecot] Dovecot 2.2 build rpm on Centos6

Birta Levente blevi.linux at gmail.com
Mon May 27 13:07:37 EEST 2013


Hi list,

I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4

rpmbuild --define 'rhel 64' -ba dovecot-2.2.spec

I get this error:

checking for C compiler default output file name...
configure: error: in `/home/builder/rpmbuild/BUILD/dovecot-2.2.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.


(config.log attached)


What I missing?

I'm not totally beginner, built dovecot 2.1 rpm-s many times same way 
like this, but not know mutch about building rpms and with this I just 
can get to work.

Thank you!

Levi


-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Dovecot configure 2.2.2, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info INSTALL_DATA=install -c -p -m644 --docdir=/usr/share/doc/dovecot-2.2.2 --disable-static --disable-rpath --with-nss --with-shadow --with-pam --with-gssapi=plugin --with-ldap=plugin --with-sql=plugin --with-pgsql --with-mysql --with-sqlite --with-zlib --with-libcap --with-lucene --with-ssl=openssl --with-ssldir=/etc/pki/dovecot --with-solr --with-systemdsystemunitdir=%{_unitdir} --with-docs

## --------- ##
## Platform. ##
## --------- ##

hostname = 
uname -m = x86_64
uname -r = 2.6.32-358.6.2.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Thu May 16 20:59:36 UTC 2013

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2290: checking for a BSD-compatible install
configure:2358: result: /usr/bin/install -c
configure:2369: checking whether build environment is sane
configure:2429: result: yes
configure:2570: checking for a thread-safe mkdir -p
configure:2609: result: /bin/mkdir -p
configure:2622: checking for gawk
configure:2638: found /bin/gawk
configure:2649: result: gawk
configure:2660: checking whether make sets $(MAKE)
configure:2682: result: yes
configure:2766: checking whether to enable maintainer-specific portions of Makefiles
configure:2775: result: no
configure:2794: checking for x86_64-redhat-linux-gnu-pkg-config
configure:2827: result: no
configure:2837: checking for pkg-config
configure:2855: found /usr/bin/pkg-config
configure:2867: result: /usr/bin/pkg-config
configure:2892: checking pkg-config is at least version 0.9.0
configure:2895: result: yes
configure:3823: checking for style of include used by make
configure:3851: result: GNU
configure:3881: checking for x86_64-redhat-linux-gnu-gcc
configure:3911: result: no
configure:3921: checking for gcc
configure:3937: found /usr/bin/gcc
configure:3948: result: gcc
configure:4180: checking for C compiler version
configure:4188: gcc --version >&5
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 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:4192: $? = 0
configure:4199: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 
configure:4203: $? = 0
configure:4210: gcc -V >&5
gcc: '-V' option must have argument
configure:4214: $? = 1
configure:4237: checking for C compiler default output file name
configure:4259: gcc %{__global_cflags} -fno-strict-aliasing  -Wl,-z,now -Wl,-z,relro %{__global_ldflags} conftest.c  >&5
gcc: %{__global_cflags}: No such file or directory
gcc: %{__global_ldflags}: No such file or directory
configure:4263: $? = 1
configure:4301: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Dovecot"
| #define PACKAGE_TARNAME "dovecot"
| #define PACKAGE_VERSION "2.2.2"
| #define PACKAGE_STRING "Dovecot 2.2.2"
| #define PACKAGE_BUGREPORT "dovecot at dovecot.org"
| #define DOVECOT_ABI_VERSION "2.2.ABIv2(2.2.2)"
| #define PACKAGE "dovecot"
| #define VERSION "2.2.2"
| #define HAVE_SYSTEMD /**/
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4307: error: in `/home/builder/rpmbuild/BUILD/dovecot-2.2.2':
configure:4310: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='%{__global_cflags} -fno-strict-aliasing'
ac_cv_env_CLUCENE_CFLAGS_set=
ac_cv_env_CLUCENE_CFLAGS_value=
ac_cv_env_CLUCENE_LIBS_set=
ac_cv_env_CLUCENE_LIBS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -g'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-z,now -Wl,-z,relro %{__global_ldflags}'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SSL_CFLAGS_set=
ac_cv_env_SSL_CFLAGS_value=
ac_cv_env_SSL_LIBS_set=
ac_cv_env_SSL_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-redhat-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-redhat-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run aclocal-1.11'
ACLOCAL_AMFLAGS='-I $(top_srcdir)'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run tar'
AR=''
AUTH_CFLAGS=''
AUTH_LIBS=''
AUTOCONF='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run autoconf'
AUTOHEADER='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run autoheader'
AUTOMAKE='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run automake-1.11'
AWK='gawk'
BUILD_DOCS_FALSE='#'
BUILD_DOCS_TRUE=''
BUILD_LUCENE_EXTTEXTCAT_FALSE=''
BUILD_LUCENE_EXTTEXTCAT_TRUE=''
BUILD_LUCENE_FALSE='#'
BUILD_LUCENE_STEMMER_FALSE=''
BUILD_LUCENE_STEMMER_TRUE=''
BUILD_LUCENE_TEXTCAT_FALSE=''
BUILD_LUCENE_TEXTCAT_TRUE=''
BUILD_LUCENE_TRUE=''
BUILD_MYSQL_FALSE=''
BUILD_MYSQL_TRUE=''
BUILD_OPENSSL_FALSE=''
BUILD_OPENSSL_TRUE=''
BUILD_PGSQL_FALSE=''
BUILD_PGSQL_TRUE=''
BUILD_SHARED_LIBS_FALSE='#'
BUILD_SHARED_LIBS_TRUE=''
BUILD_SOLR_FALSE=''
BUILD_SOLR_TRUE=''
BUILD_SQLITE_FALSE=''
BUILD_SQLITE_TRUE=''
BUILD_ZLIB_PLUGIN_FALSE=''
BUILD_ZLIB_PLUGIN_TRUE=''
CC='gcc'
CCDEPMODE=''
CDB_LIBS=''
CFLAGS='%{__global_cflags} -fno-strict-aliasing'
CLUCENE_CFLAGS=''
CLUCENE_LIBS=''
COMPRESS_LIBS=''
CPP=''
CPPFLAGS=''
CRYPT_LIBS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -g'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DICT_LIBS=''
DOVECOT_PLUGIN_DEPS_FALSE=''
DOVECOT_PLUGIN_DEPS_TRUE=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
GSSAPI_PLUGIN_FALSE=''
GSSAPI_PLUGIN_TRUE=''
HAVE_RQUOTA_FALSE=''
HAVE_RQUOTA_TRUE=''
HAVE_SYSTEMD_FALSE='#'
HAVE_SYSTEMD_TRUE=''
INSTALL_DATA='install -c -p -m644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
KRB5CONFIG=''
KRB5_CFLAGS=''
KRB5_LIBS=''
LD=''
LDAP_LIBS=''
LDAP_PLUGIN_FALSE=''
LDAP_PLUGIN_TRUE=''
LDFLAGS='-Wl,-z,now -Wl,-z,relro %{__global_ldflags}'
LIBCAP=''
LIBDOVECOT=''
LIBDOVECOT_COMPRESS=''
LIBDOVECOT_DEPS=''
LIBDOVECOT_LDA=''
LIBDOVECOT_LOGIN=''
LIBDOVECOT_SQL=''
LIBDOVECOT_STORAGE=''
LIBDOVECOT_STORAGE_DEPS=''
LIBICONV=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBWRAP_LIBS=''
LINKED_STORAGE_LDADD=''
LINKED_STORAGE_LIBS=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MODULE_LIBS=''
MODULE_SUFFIX=''
MYSQL_CFLAGS=''
MYSQL_CONFIG=''
MYSQL_LIBS=''
NM=''
NMEDIT=''
NOPLUGIN_LDFLAGS=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='dovecot'
PACKAGE_BUGREPORT='dovecot at dovecot.org'
PACKAGE_NAME='Dovecot'
PACKAGE_STRING='Dovecot 2.2.2'
PACKAGE_TARNAME='dovecot'
PACKAGE_VERSION='2.2.2'
PATH_SEPARATOR=':'
PGSQL_CFLAGS=''
PGSQL_LIBS=''
PG_CONFIG=''
PKG_CONFIG='/usr/bin/pkg-config'
QUOTA_LIBS=''
RANLIB=''
RPCGEN=''
RUN_TEST=''
SED=''
SETTING_FILES=''
SET_MAKE=''
SHELL='/bin/sh'
SQLITE_CFLAGS=''
SQLITE_LIBS=''
SQL_CFLAGS=''
SQL_LIBS=''
SQL_PLUGINS_FALSE=''
SQL_PLUGINS_TRUE=''
SSL_CFLAGS=''
SSL_LIBS=''
STRIP=''
TCPWRAPPERS_FALSE=''
TCPWRAPPERS_TRUE=''
VALGRIND=''
VERSION='2.2.2'
abs_top_builddir=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='/usr/bin'
build='x86_64-redhat-linux-gnu'
build_alias='x86_64-redhat-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
datarootdir='${prefix}/share'
dict_drivers=''
docdir='/usr/share/doc/dovecot-2.2.2'
dvidir='${docdir}'
exec_prefix='/usr'
host='x86_64-redhat-linux-gnu'
host_alias='x86_64-redhat-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='/usr/include'
infodir='/usr/share/info'
install_sh='${SHELL} /home/builder/rpmbuild/BUILD/dovecot-2.2.2/install-sh'
libdir='/usr/lib64'
libexecdir='/usr/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
lt_ECHO='echo'
mail_storages='shared mdbox sdbox maildir mbox cydir imapc pop3c raw fail'
mailbox_list_drivers=''
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
moduledir='/usr/lib64/dovecot'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&&'
psdir='${docdir}'
rundir='/var/run/dovecot'
sbindir='/usr/sbin'
sharedstatedir='/var/lib'
sql_drivers=''
ssldir='/etc/pki/dovecot'
statedir='/var/lib/dovecot'
sysconfdir='/etc'
systemdsystemunitdir='%{_unitdir}'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "Dovecot"
#define PACKAGE_TARNAME "dovecot"
#define PACKAGE_VERSION "2.2.2"
#define PACKAGE_STRING "Dovecot 2.2.2"
#define PACKAGE_BUGREPORT "dovecot at dovecot.org"
#define DOVECOT_ABI_VERSION "2.2.ABIv2(2.2.2)"
#define PACKAGE "dovecot"
#define VERSION "2.2.2"
#define HAVE_SYSTEMD /**/

configure: exit 77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3889 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130527/13fda45a/attachment-0001.bin>


More information about the dovecot mailing list