[Dovecot] Dovecot 2.2 build rpm on Centos6
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
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@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
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
On 27.05.2013 14:10, Birta Levente wrote:
Maybe someone who built dovecot 2.2 on rhel/centos 6 help me how do that?
Yes: http://mstevens.fedorapeople.org/el6/dovecot/2.2/
Best regards,
Morten
On 27/05/2013 15:40, Morten Stevens wrote:
On 27.05.2013 14:10, Birta Levente wrote:
Maybe someone who built dovecot 2.2 on rhel/centos 6 help me how do that?
Yes: http://mstevens.fedorapeople.org/el6/dovecot/2.2/
Best regards,
Morten
Thank you!!! It's work
Levi
On 27/5/2013 1:07 μμ, Birta Levente wrote:
I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4
You may want to try:
dovecot-2.2.2-2.noa.el6.src.rpm
which produces:
dovecot-2.2.2-2.noa.el6.x86_64.rpm dovecot-debuginfo-2.2.2-2.noa.el6.x86_64.rpm dovecot-devel-2.2.2-2.noa.el6.x86_64.rpm dovecot-mysql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pgsql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pigeonhole-2.2.2-2.noa.el6.x86_64.rpm
available at: http://www.noa.gr/rpmfiles/
This package is using LTB Project's Openldap RPMs for LDAP linking:
http://ltb-project.org/wiki/download#openldap
The above Dovecot SRPM has evolved from fakessh's rpms: http://ns.fakessh.eu/rpms/ and I like it because it is clean and clear (to me, at least).
Nick
On 27/05/2013 16:56, Nikolaos Milas wrote:
On 27/5/2013 1:07 μμ, Birta Levente wrote:
I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4
You may want to try:
dovecot-2.2.2-2.noa.el6.src.rpm
available at: http://www.noa.gr/rpmfiles/
Thank you Nick, but I can't reach this link ...
This package is using LTB Project's Openldap RPMs for LDAP linking:
http://ltb-project.org/wiki/download#openldap
The above Dovecot SRPM has evolved from fakessh's rpms: http://ns.fakessh.eu/rpms/ and I like it because it is clean and clear (to me, at least).
Nick
On 28/5/2013 10:42 πμ, Birta Levente wrote:
Thank you Nick, but I can't reach this link ...
You can access each file separately by using the whole link, like:
http://www.noa.gr/rpmfiles/dovecot-2.2.2-2.noa.el6.src.rpm
We don't allow directory listing, but if you know the file name, it works :-)
Try it!
Best regards, Nick
On 27-05-2013 16:56, Nikolaos Milas wrote:
On 27/5/2013 1:07 μμ, Birta Levente wrote:
I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4
You may want to try:
dovecot-2.2.2-2.noa.el6.src.rpm
which produces:
dovecot-2.2.2-2.noa.el6.x86_64.rpm dovecot-debuginfo-2.2.2-2.noa.el6.x86_64.rpm dovecot-devel-2.2.2-2.noa.el6.x86_64.rpm dovecot-mysql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pgsql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pigeonhole-2.2.2-2.noa.el6.x86_64.rpm
available at: http://www.noa.gr/rpmfiles/
This package is using LTB Project's Openldap RPMs for LDAP linking:
http://ltb-project.org/wiki/download#openldap
The above Dovecot SRPM has evolved from fakessh's rpms: http://ns.fakessh.eu/rpms/ and I like it because it is clean and clear (to me, at least).
Nick
another question.. anybody built dovecot 2.2 on rhel/centos 5
there is any knowhow or any builded pack
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Burak GÜRER Sent: Thursday, May 30, 2013 10:34 AM To: Nikolaos Milas Cc: Dovecot Mailing List Subject: Re: [Dovecot] Dovecot 2.2 build rpm on Centos6
On 27-05-2013 16:56, Nikolaos Milas wrote:
On 27/5/2013 1:07 μμ, Birta Levente wrote:
I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4
You may want to try:
dovecot-2.2.2-2.noa.el6.src.rpm
which produces:
dovecot-2.2.2-2.noa.el6.x86_64.rpm dovecot-debuginfo-2.2.2-2.noa.el6.x86_64.rpm dovecot-devel-2.2.2-2.noa.el6.x86_64.rpm dovecot-mysql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pgsql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pigeonhole-2.2.2-2.noa.el6.x86_64.rpm
available at: http://www.noa.gr/rpmfiles/
This package is using LTB Project's Openldap RPMs for LDAP linking:
http://ltb-project.org/wiki/download#openldap
The above Dovecot SRPM has evolved from fakessh's rpms: http://ns.fakessh.eu/rpms/ and I like it because it is clean and clear (to me, at least).
Nick
another question.. anybody built dovecot 2.2 on rhel/centos 5
there is any knowhow or any builded pack
http://www.city-fan.org/ftp/contrib/mail/
-arto
On 30/05/2013 10:34, Burak GÜRER wrote:
On 27-05-2013 16:56, Nikolaos Milas wrote:
On 27/5/2013 1:07 μμ, Birta Levente wrote:
I tried to build rpm based on dovecot-2.2.2-2.fc20.src.rpm on Centos 6.4
You may want to try:
dovecot-2.2.2-2.noa.el6.src.rpm
which produces:
dovecot-2.2.2-2.noa.el6.x86_64.rpm dovecot-debuginfo-2.2.2-2.noa.el6.x86_64.rpm dovecot-devel-2.2.2-2.noa.el6.x86_64.rpm dovecot-mysql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pgsql-2.2.2-2.noa.el6.x86_64.rpm dovecot-pigeonhole-2.2.2-2.noa.el6.x86_64.rpm
available at: http://www.noa.gr/rpmfiles/
This package is using LTB Project's Openldap RPMs for LDAP linking:
http://ltb-project.org/wiki/download#openldap
The above Dovecot SRPM has evolved from fakessh's rpms: http://ns.fakessh.eu/rpms/ and I like it because it is clean and clear (to me, at least).
Nick
another question.. anybody built dovecot 2.2 on rhel/centos 5
there is any knowhow or any builded pack
I done yesterday with spec that I used on centos 6 without any modification
src rpm from http://mstevens.fedorapeople.org/el6/dovecot/2.2/
Levi
participants (6)
-
Arto Saraniva
-
Birta Levente
-
Burak GÜRER
-
Christian Wiese
-
Morten Stevens
-
Nikolaos Milas