Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#39538 - [zeromq] errors in zmq.hpp

Attached to Project: Community Packages
Opened by Mikhail Burakov (Pyromaniac) - Wednesday, 19 March 2014, 11:10 GMT
Last edited by Kyle Keen (keenerd) - Thursday, 09 July 2015, 11:42 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

Description:
There is inconsistency between c impl and c++ wrapper in latest release of 4.0.4-1.

Steps to reproduce:
If you try to include the header zmq.hpp into your c++ unit the error will appear:
/usr/include/zmq.hpp: In function 'void zmq::proxy_steerable(void*, void*, void*, void*)':
/usr/include/zmq.hpp:120:74: error: 'zmq_proxy_steerable' was not declared in this scope

Some details:
https://github.com/zeromq/cppzmq/issues/34

Please repack as soon as issue 34 will be fixed.
This task depends upon

Closed by  Kyle Keen (keenerd)
Thursday, 09 July 2015, 11:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  zeromq-4.0.4-2 & SVN
Comment by Aleksey Filippov (lex4051) - Wednesday, 26 March 2014, 11:10 GMT
It was fixed in https://github.com/zeromq/cppzmq/commit/04d28976055c9c327a8099335957f69e43c920aa

Moreover provided PKGBUILD builds working version (md5sum for "zmq.hpp" must be updated to "37b74022028bd4dc9253f123fa27da63").
Comment by Kyle Keen (keenerd) - Wednesday, 26 March 2014, 15:57 GMT
4.0.4-2 now has this version.

I only use zmq through the python bindings and only test those. Could you provide a link to a minimal test-case for the C++ bindings? Otherwise I'm likely to make this mistake again in the future.
Comment by Mikhail Burakov (Pyromaniac) - Wednesday, 26 March 2014, 18:27 GMT
I updated today, and did not modify anything in installed files. My c++ project builds fine, so I think new package is ok. I can spend some time tomorrow to inspect updated zmq more closely, if you are interested.
Comment by Mikhail Burakov (Pyromaniac) - Thursday, 27 March 2014, 09:14 GMT
Hi! I've checked it and a new version is surely ok! Minimal test-case follows.

Bad header:
[mburakov@mb-arch ~]$ LANG=C gcc -c /usr/include/zmq.hpp -o /tmp/test.o
/usr/include/zmq.hpp: In function 'void zmq::proxy_steerable(void*, void*, void*, void*)':
/usr/include/zmq.hpp:120:74: error: 'zmq_proxy_steerable' was not declared in this scope
int rc = zmq_proxy_steerable (frontend, backend, capture, control);
^

Good header:
[mburakov@mb-arch ~]$ LANG=C gcc -c /usr/include/zmq.hpp -o /tmp/test.o
{no additional output}
Comment by Kyle Keen (keenerd) - Monday, 07 April 2014, 00:39 GMT
A test case would need a test.cpp file for me to compile.
Comment by Doug Newgard (Scimmia) - Monday, 06 July 2015, 19:37 GMT
All done here?
Comment by Kyle Keen (keenerd) - Thursday, 09 July 2015, 02:09 GMT
Nope, still waiting for a test.cpp file.
Comment by Aleksey Filippov (lex4051) - Thursday, 09 July 2015, 09:26 GMT
I didn't realize that it is still pending, going to spend some time on weekend to do that.
Comment by Kyle Keen (keenerd) - Thursday, 09 July 2015, 11:37 GMT
Looking closer at Mikhail's example, it doesn't need a dedicated test.cpp source file. (I did not realize the "header" contained so much C++ code.)

Since zeromq is not installed during check() it needed a little massaging:

LANG=C gcc -c ../zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o

Pulled down an old zmq.hpp and it does indeed fail. Thanks Mikhail, my apologies for taking a year to figure out what you were doing.

Loading...