FS#49393 - [zeromq] prevents compilation with C++11 compiler

Attached to Project: Community Packages
Opened by vincent (altrus) - Wednesday, 18 May 2016, 23:45 GMT
Last edited by Balló György (City-busz) - Monday, 29 January 2018, 21:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Package: ZeroMQ
Versions Affected: 4.1.3, 4.1.4
Versions Working: 4.0.5
==
Summary Description

Using the later versions of zeroMQ causes compilation failures when using a C++11 compiler.

==
Reproduction

Attempt to compile gnuradio using the latest zeroMQ and gcc versions, or one of the effected versions listed above.

==
Expected

The build compiles successfully. This occurs when using the 4.0.5 version of ZeroMQ.

==
Actual

The build fails with the following errors when compiling with the 4.1.3 or 4.1.4 versions of the build:

/usr/src/gnuradio/src/gnuradio-3.7.9.2/gr-zeromq/lib/base_impl.cc: In member function ‘bool gr::zeromq::base_source_impl::load_message(bool)’:
/usr/src/gnuradio/src/gnuradio-3.7.9.2/gr-zeromq/lib/base_impl.cc:162:66: error: cannot convert ‘zmq::socket_t’ to ‘void*’ in initialization
zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } };
^
gr-zeromq/lib/CMakeFiles/gnuradio-zeromq.dir/build.make:62: recipe for target 'gr-zeromq/lib/CMakeFiles/gnuradio-zeromq.dir/base_impl.cc.o' failed
make[2]: *** [gr-zeromq/lib/CMakeFiles/gnuradio-zeromq.dir/base_impl.cc.o] Error 1
CMakeFiles/Makefile2:15224: recipe for target 'gr-zeromq/lib/CMakeFiles/gnuradio-zeromq.dir/all' failed
make[1]: *** [gr-zeromq/lib/CMakeFiles/gnuradio-zeromq.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

==
This task depends upon

Closed by  Balló György (City-busz)
Monday, 29 January 2018, 21:26 GMT
Reason for closing:  Fixed
Comment by Kyle Keen (keenerd) - Thursday, 19 May 2016, 00:21 GMT
(This should be moved to community bugs and assigned to me.)

I'm guessing this is an error on your part. I routinely compile gnuradio with the 4.1.4 version of zeromq.

How are you building gnuradio?
Comment by vincent (altrus) - Thursday, 19 May 2016, 00:30 GMT
(Apologies; couldn't find community bugs in the packages).

I originally discovered the error while using an internal PKGBUILD. I was able to reproduce the error using the ABS PKGBUILD on a fully up-to-date system.

To reproduce, I ensure abs is up-to-date, copy the gnuradio directory to /usr/src/, and then run makepkg.

This was observed to break less than a week ago; have you tried recently with a fully up-to-date system?
Comment by Balló György (City-busz) - Monday, 29 January 2018, 21:24 GMT
The gnuradio package has been rebuilt several times since 2016, so I assume that it's fixed.

Loading...