Missing dependnecy in sfcgal 1.3.7 on focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sfcgal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
sfcgal(libsfcgal1, libsfcgal-dev) v1.3.7 on focal (Ubuntu 20.04) causes a link error when used.
```
/usr/bin/ld: /lib/x86_
/usr/bin/ld: /lib/x86_
```
investigation
-------------
Here is output of ldd
miurahr@
linux-vdso.so.1 (0x00007ffdeebf
libboost_
libmpfr.so.6 => /usr/lib/
libgmp.so.10 => /usr/lib/
libstdc++.so.6 => /usr/lib/
libm.so.6 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
libc.so.6 => /lib/x86_
/lib64/
libpthread.so.0 => /lib/x86_
I found there is not a libgmpxx dependency.
details
-------
Upstream sfcgal 1.3.7 recommend dependency CGAL 4.3 and disables GMPXX.
Because Ubuntu distribute CGAL 5.0, so sfcgal source has been patched to link with CGAL 5.0 and try to enable GMPXX, but it is incomplete.
This is an upstream change to support CGAL 5.0.
https:/
1. change to CMakeLists.txt to 'find_package(
2. add to CMakeLists.txt a definition 'add_definitions( "-DCGAL_
3. add to src/CMakeLists.txt a dependency 'target_
4. remove config.h definition '#define CGAL_DO_
Ubuntu package does No.1 and No.2, but unfortunately did not No.3 and No.4.
Missing No.3 cause the link error.
I attached a patch to intend to add to 'debian/patches/'
Other consideration
-------------------
debian's sfcgal is not v1.3.7. this is only for the Ubuntu and its derivatives issue.
Affected project
----------------
GDAL is a project to link with SFCGAL and cmake build script got link error with SFCGAL with the bug.
The attachment "Add missing link dependency" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]