[Dovecot] Dovecot 2.2 build rpm on Centos6

Christian Wiese christian.wiese at securepoint.de
Mon May 27 13:42:20 EEST 2013


Hi Birta,

it looks like you are having an issue with your RPM spec file.
I am not doing RPM builds at all, but it seems to me that
%{__global_cflags} is somehow not expanded.
--------%<------------------------------------------------------------
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 Am Mon, 27 May 2013 13:07:37 +0300
--------%<------------------------------------------------------------

'gcc %{__global_cflags} ...' as seen in the config.log is of course not
valid, so you need to find the reason why it is not getting expanded.
This is clearly not an issue with dovecot itself but an issue with your
"build system".

Cheers,
Chris


schrieb Birta Levente <blevi.linux at gmail.com>:

> 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
> 
> 


More information about the dovecot mailing list