2.2.30.2 fails to compile on centos 7
Just downloaded the latest release 2.2.30.2, ran ./configure with all defaults and make ...
and it fails to build .. error somewhere whilst running Makefile in lib-http
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2
-Wl,--as-needed -o test-http-server-errors test-http-server-errors.o
-Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a
../lib-ssl-iostream/.libs/libssl_iostream.a
../lib-master/.libs/libmaster.a ../lib-settings/.libs/libsettings.a
../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl
collect2: error: ld returned 1 exit status
make[3]: *** [test-http-server-errors] Error 1
make[3]: Leaving directory
/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src/lib-http' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2'
make: *** [all] Error 2
any ideas ?? 2.2.30.1 built ok ...
rgds
Matt
On 07/06/17 10:52, Matt Bryant wrote:
Just downloaded the latest release 2.2.30.2, ran ./configure with all defaults and make ...
and it fails to build .. error somewhere whilst running Makefile in lib-http
Just built fine for me. I'll give you a link once I get it pushed out to GhettoForge.
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/.libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl collect2: error: ld returned 1 exit status
libtool: link: gcc -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict -aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -Wl, -z -Wl,relro -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/ .libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl make[3]: Leaving directory `/builddir/build/BUILD/dovecot-2.2.30.2/src/lib-http'
make[3]: Leaving directory `/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src/lib-http'
I suggest that you don't use rpmbuild directly, but use mock to build it instead. That ensures you have a clean build environment every time.
Peter
It compiled fine for me using rpmbuild on CentOS 7
On 6/6/2017 6:39 PM, Peter wrote:
On 07/06/17 10:52, Matt Bryant wrote:
Just downloaded the latest release 2.2.30.2, ran ./configure with all defaults and make ...
and it fails to build .. error somewhere whilst running Makefile in lib-http Just built fine for me. I'll give you a link once I get it pushed out to GhettoForge.
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/.libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl collect2: error: ld returned 1 exit status libtool: link: gcc -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict -aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -Wl, -z -Wl,relro -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/ .libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl make[3]: Leaving directory `/builddir/build/BUILD/dovecot-2.2.30.2/src/lib-http'
make[3]: Leaving directory `/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src/lib-http' I suggest that you don't use rpmbuild directly, but use mock to build it instead. That ensures you have a clean build environment every time.
Peter
On 07/06/17 12:52, Eric Broch wrote:
It compiled fine for me using rpmbuild on CentOS 7
Using rpmbuild directly is a crapshoot because you never know what cruft is left over from previous builds or other activity on the box. If you want consistent, reproducible results then you really should be building in a clean chroot environment which is exactly what mock does for you.
I highly suspect that this is a case where the op's build was just messed up by something left over in his build environment from before.
Peter
On 07/06/17 12:39, Peter wrote:
I'll give you a link once I get it pushed out to GhettoForge.
Packages are pushed out to gf-testing now. You can find the CentOS 7 binary RPMs in:
http://mirror.ghettoforge.org/distributions/gf/el/7/testing/x86_64/
The SRPM is at:
http://mirror.ghettoforge.org/distributions/gf/el/7/testing/SRPMS/dovecot22-...
Peter
thx
my actual RPM failed at the same place .. the below was actually not the result of an rpmbuild command .. cleared out the BUILD directory, untar'd, configure and ran make manually - failed at the same spot as the RPM package .. given 2.2.30.1 built ok saw no reason why 2.2.30.2 should suddenly stop ..
rgds
Matt
Peter <mailto:peter@pajamian.dhs.org> 7 June 2017 at 10:39 am On 07/06/17 10:52, Matt Bryant wrote:
Just downloaded the latest release 2.2.30.2, ran ./configure with all defaults and make ...
and it fails to build .. error somewhere whilst running Makefile in lib-http
Just built fine for me. I'll give you a link once I get it pushed out to GhettoForge.
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/.libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl collect2: error: ld returned 1 exit status
libtool: link: gcc -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict -aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -Wl, -z -Wl,relro -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/ .libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl make[3]: Leaving directory `/builddir/build/BUILD/dovecot-2.2.30.2/src/lib-http'
make[3]: Leaving directory `/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src/lib-http'
I suggest that you don't use rpmbuild directly, but use mock to build it instead. That ensures you have a clean build environment every time.
Peter Matt Bryant <mailto:devops@atmail.com> 7 June 2017 at 8:52 am Just downloaded the latest release 2.2.30.2, ran ./configure with all defaults and make ...
and it fails to build .. error somewhere whilst running Makefile in lib-http
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,--as-needed -o test-http-server-errors test-http-server-errors.o -Wl,--export-dynamic ./.libs/libhttp.a ../lib-dns/.libs/libdns.a ../lib-ssl-iostream/.libs/libssl_iostream.a ../lib-master/.libs/libmaster.a ../lib-settings/.libs/libsettings.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -ldl collect2: error: ld returned 1 exit status make[3]: *** [test-http-server-errors] Error 1 make[3]: Leaving directory
/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src/lib-http' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rpmbuild/rpmbuild/BUILD/dovecot-2.2.30.2' make: *** [all] Error 2any ideas ?? 2.2.30.1 built ok ...
rgds
Matt
On 07/06/17 15:39, Matt Bryant wrote:
my actual RPM failed at the same place
Right, I looked there and specifically pulled up my build log to show that the build went through that particular place just fine (and it completed just fine as well). So it did not fail for me.
.. the below was actually not the result of an rpmbuild command .. cleared out the BUILD directory, untar'd, configure and ran make manually - failed at the same spot as the RPM package .. given 2.2.30.1 built ok saw no reason why 2.2.30.2 should suddenly stop ..
My point was you did not use mock, but rather you are building in an unclean build environment. I would recommend you try building with mock to ensure you get a clean build environment and see how that works.
You are also welcome to grab my SRPM and rebuild from that if you want, or just use the packages that I built for GhettoForge directly.
Peter
participants (3)
-
Eric Broch
-
Matt Bryant
-
Peter