On 27/05/2013 13:42, Christian Wiese wrote:
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
Thanks for the reply.
You probably right, but I have no idea what is this {__global_??flags}. I tried to delete from the spec file ...
before: export CFLAGS="%{__global_cflags} -fno-strictaliasing" export LDFLAGS="-Wl,-z,now -Wl,-z,relro %{__global_ldflags}"
after: export CFLAGS="-fno-strictaliasing" export LDFLAGS="-Wl,-z,now -Wl,-z,relro"
and get over the configure stage, but in the make stage I get many errors.
So I think this is searching in the dark.
Maybe someone who built dovecot 2.2 on rhel/centos 6 help me how do that?
Thanks
Levi
schrieb Birta Levente blevi.linux@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