Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API breakage in new version (0.3) #30

Closed
jspricke opened this issue Jan 21, 2016 · 7 comments
Closed

API breakage in new version (0.3) #30

jspricke opened this issue Jan 21, 2016 · 7 comments

Comments

@jspricke
Copy link
Member

Hi,

the new version breaks the API:

/<<PKGBUILDDIR>>/tools/rosbag_storage/src/bz2_stream.cpp: In member function 'virtual void rosbag::BZ2Stream::read(void*, size_t)':
/<<PKGBUILDDIR>>/tools/rosbag_storage/src/bz2_stream.cpp:119:9: error: 'else' without a previous 'if'
         else {
         ^
/<<PKGBUILDDIR>>/tools/rosbag_storage/src/lz4_stream.cpp: In member function 'virtual void rosbag::LZ4Stream::read(void*, size_t)':
/<<PKGBUILDDIR>>/tools/rosbag_storage/src/lz4_stream.cpp:159:9: error: 'else' without a previous 'if'
         else {
         ^
tools/rosbag_storage/CMakeFiles/rosbag_storage.dir/build.make:137: recipe for target 'tools/rosbag_storage/CMakeFiles/rosbag_storage.dir/src/bz2_stream.cpp.o' failed
make[3]: *** [tools/rosbag_storage/CMakeFiles/rosbag_storage.dir/src/bz2_stream.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....

The problematic commit is 4c529c6.

The problem is that the console_bridge_deprecated(); makes the macro two commands and so the binding between the if and the else is lost (see https://github.com/ros/ros_comm/blob/indigo-devel/tools/rosbag_storage/src/bz2_stream.cpp#L118).

@scpeters
Copy link
Contributor

Thanks for catching this. What if we added extra {} scoping around the two commands?

@scpeters
Copy link
Contributor

No, that won't work because the macro wants to be terminated with a ;

@j-rivero
Copy link
Contributor

Umm interesting. I have an idea, let me code it.

@scpeters
Copy link
Contributor

fixed by #31

@jspricke
Copy link
Member Author

Thanks! Can we get a new upstream release and Debian package? This is holding up quite some package in Debian at the moment.

@scpeters
Copy link
Contributor

I just made a 0.3.1 release:

@j-rivero
Copy link
Contributor

j-rivero commented Feb 8, 2016

I just uploaded the 0.3.1-1 debian package into Sid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants