rosdistro: Noetic: ros-noetic-octomap (1.9) conflicts with system octomap (1.8) required by libfcl.so

@sloretz, @ahornung, @tylerjw: I just noticed another issue building MoveIt on Noetic: ros-noetic-octomap, which provides octomap 1.9 conflicts with system octomap (1.8), now newly required by system libfcl: On Noetic:

ldd /usr/lib/x86_64-linux-gnu/libfcl.so
	linux-vdso.so.1 (0x00007ffd5733b000)
	liboctomap.so.1.8 => /usr/lib/liboctomap.so.1.8 (0x00007fdd6e2e9000)
	liboctomath.so.1.8 => /usr/lib/liboctomath.so.1.8 (0x00007fdd6e0e2000)
	libccd.so.2 => /usr/lib/x86_64-linux-gnu/libccd.so.2 (0x00007fdd6e0d6000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdd6df52000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdd6ddcf000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdd6ddb5000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdd6dbf2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdd6f07d000)

On Melodic:

ldd /usr/lib/x86_64-linux-gnu/libfcl.so
	linux-vdso.so.1 (0x00007ffe16d39000)
	libccd.so.2 => /usr/lib/x86_64-linux-gnu/libccd.so.2 (0x00007fd591d34000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd5919ab000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd59160d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd5913f5000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd591004000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fd592a27000)

Our unittests don’t complain about broken ABI or the like, but linking two versions of libs into the same binary is never a good idea… @j-rivero, can you comment why libfcl requires liboctomap in Noetic?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 33 (31 by maintainers)

Most upvoted comments

I’m now adding FCL-related notes to http://wiki.ros.org/action/login/noetic/Migration . Please, keep in mind that if octomap is also released into noetic as a ROS package, somebody should add it to the migrations notes, too. And maybe (as this is mid-live distro), write about it to discourse.

@sloretz: Is it possible to depend on the ROS package (ros-noetic-fcl) in Noetic, but on libfcl-dev in Melodic? I guess, the rosdep key “fcl” should point to libfcl-dev on Melodic (and below) to get this working?

@rhaschke You mean, from the same branch on the source repo? IIRC I think conditional dependencies can do it

<depend condition="$ROS_DISTRO == melodic">libfcl-dev</depend>
<depend condition="$ROS_DISTRO == noetic">fcl</depend>

Ubuntu 20.04 provided liboctomap-dev 1.9.3. Could we drop ros-noetic-octomap?

It doesn’t seem like removing the liboctomap dependency from fcl in Ubuntu version is an option because that would break ABI by removing symbols from libfcl.so. It looks like Octomap is an optional dependency which gets linked to libfcl here. It is needed by libfcl.so because fcl::OcTree<> becomes fcl::OcTree<double> here.