Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686354 - media-gfx/openscad-2019.05 should depend on dev-libs/libspnav - ld: cannot find -lspnav
Summary: media-gfx/openscad-2019.05 should depend on dev-libs/libspnav - ld: cannot fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 686476
Blocks:
  Show dependency tree
 
Reported: 2019-05-20 01:03 UTC by Phil Stracchino (Unix Ronin)
Modified: 2019-07-07 19:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Stracchino (Unix Ronin) 2019-05-20 01:03:19 UTC
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -o openscad objects/src/AST.o objects/src/ModuleInstantiation.o objects/src/Assignment.o objects/src/expr.o objects/src/function.o objects/src/module.o objects/src/UserModule.o objects/src/annotation.o objects/src/libsvg/libsvg.o objects/src/libsvg/circle.o objects/src/libsvg/ellipse.o objects/src/libsvg/line.o objects/src/libsvg/text.o objects/src/libsvg/tspan.o objects/src/libsvg/data.o objects/src/libsvg/polygon.o objects/src/libsvg/polyline.o objects/src/libsvg/rect.o objects/src/libsvg/group.o objects/src/libsvg/svgpage.o objects/src/libsvg/path.o objects/src/libsvg/shape.o objects/src/libsvg/transformation.o objects/src/libsvg/util.o objects/src/version_check.o objects/src/ProgressWidget.o objects/src/linalg.o objects/src/Camera.o objects/src/handle_dep.o objects/src/value.o objects/src/degree_trig.o objects/src/func.o objects/src/localscope.o objects/src/feature.o objects/src/node.o objects/src/context.o objects/src/builtincontext.o objects/src/modcontext.o objects/src/evalcontext.o objects/src/csgnode.o objects/src/CSGTreeNormalizer.o objects/src/CSGTreeEvaluator.o objects/src/Geometry.o objects/src/Polygon2d.o objects/src/clipper-utils.o objects/src/polyset-utils.o objects/src/GeometryUtils.o objects/src/polyset.o objects/src/polyset-gl.o objects/src/csgops.o objects/src/transform.o objects/src/color.o objects/src/primitives.o objects/src/projection.o objects/src/cgaladv.o objects/src/surface.o objects/src/control.o objects/src/render.o objects/src/text.o objects/src/dxfdata.o objects/src/dxfdim.o objects/src/offset.o objects/src/linearextrude.o objects/src/rotateextrude.o objects/src/printutils.o objects/src/fileutils.o objects/src/progress.o objects/src/parsersettings.o objects/src/boost-utils.o objects/src/PlatformUtils.o objects/src/LibraryInfo.o objects/src/nodedumper.o objects/src/NodeVisitor.o objects/src/GeometryEvaluator.o objects/src/ModuleCache.o objects/src/GeometryCache.o objects/src/Tree.o objects/src/DrawingCallback.o objects/src/FreetypeRenderer.o objects/src/FontCache.o objects/src/settings.o objects/src/rendersettings.o objects/src/highlighter.o objects/src/Preferences.o objects/src/SettingsWriter.o objects/src/OpenCSGWarningDialog.o objects/src/editor.o objects/src/GLView.o objects/src/QGLView.o objects/src/AutoUpdater.o objects/src/hash.o objects/src/GroupModule.o objects/src/FileModule.o objects/src/StatCache.o objects/src/builtin.o objects/src/calc.o objects/src/export.o objects/src/export_stl.o objects/src/export_amf.o objects/src/export_3mf.o objects/src/export_off.o objects/src/export_dxf.o objects/src/export_svg.o objects/src/export_nef.o objects/src/export_png.o objects/src/import.o objects/src/import_stl.o objects/src/import_off.o objects/src/import_svg.o objects/src/import_amf.o objects/src/import_3mf.o objects/src/renderer.o objects/src/colormap.o objects/src/ThrownTogetherRenderer.o objects/src/svg.o objects/src/OffscreenView.o objects/src/fbo.o objects/src/system-gl.o objects/src/imageutils.o objects/src/version.o objects/src/openscad.o objects/src/mainwin.o objects/src/OpenSCADApp.o objects/src/WindowManager.o objects/src/UIUtils.o objects/src/Dock.o objects/src/Console.o objects/src/FontListDialog.o objects/src/FontListTableView.o objects/src/launchingscreen.o objects/src/legacyeditor.o objects/src/LibraryInfoDialog.o objects/src/comment.o objects/src/parameter/ParameterWidget.o objects/src/parameter/parameterobject.o objects/src/parameter/parameterextractor.o objects/src/parameter/parameterspinbox.o objects/src/parameter/parametercombobox.o objects/src/parameter/parameterslider.o objects/src/parameter/parametercheckbox.o objects/src/parameter/parametertext.o objects/src/parameter/parametervector.o objects/src/parameter/groupwidget.o objects/src/parameter/parameterset.o objects/src/parameter/parametervirtualwidget.o objects/src/parameter/ignoreWheelWhenNotFocused.o objects/src/QWordSearchField.o objects/src/QSettingsCached.o objects/src/input/InputDriver.o objects/src/input/InputEventMapper.o objects/src/input/InputDriverManager.o objects/src/input/AxisConfigWidget.o objects/src/input/ButtonConfigWidget.o objects/src/input/WheelIgnorer.o objects/src/ext/lodepng/lodepng.o objects/src/ext/polyclipping/clipper.o objects/src/ext/libtess2/Source/bucketalloc.o objects/src/ext/libtess2/Source/dict.o objects/src/ext/libtess2/Source/geom.o objects/src/ext/libtess2/Source/mesh.o objects/src/ext/libtess2/Source/priorityq.o objects/src/ext/libtess2/Source/sweep.o objects/src/ext/libtess2/Source/tess.o objects/src/PrintService.o objects/src/OctoPrint.o objects/src/PrintInitDialog.o objects/src/input/DBusInputDriver.o objects/src/input/JoystickInputDriver.o objects/src/imageutils-lodepng.o objects/src/OffscreenContextGLX.o objects/src/OpenCSGRenderer.o objects/src/cgalutils.o objects/src/cgalutils-applyops.o objects/src/cgalutils-project.o objects/src/cgalutils-tess.o objects/src/cgalutils-polyhedron.o objects/src/CGALCache.o objects/src/CGALRenderer.o objects/src/CGAL_Nef_polyhedron.o objects/src/cgalworker.o objects/src/Polygon2d-CGAL.o objects/src/import_nef.o objects/src/PlatformUtils-posix.o objects/src/scintillaeditor.o objects/src/scadlexer.o objects/src/input/SpaceNavInputDriver.o objects/objects/lexer.o objects/objects/comment_lexer.o objects/objects/parser.o objects/objects/comment_parser.o objects/objects/qrc_openscad.o objects/objects/moc_ProgressWidget.o objects/objects/moc_QGLView.o objects/objects/moc_MainWindow.o objects/objects/moc_OpenSCADApp.o objects/objects/moc_WindowManager.o objects/objects/moc_Preferences.o objects/objects/moc_OpenCSGWarningDialog.o objects/objects/moc_AboutDialog.o objects/objects/moc_FontListDialog.o objects/objects/moc_FontListTableView.o objects/objects/moc_highlighter.o objects/objects/moc_editor.o objects/objects/moc_Dock.o objects/objects/moc_Console.o objects/objects/moc_AutoUpdater.o objects/objects/moc_launchingscreen.o objects/objects/moc_legacyeditor.o objects/objects/moc_LibraryInfoDialog.o objects/objects/moc_ParameterWidget.o objects/objects/moc_parametervirtualwidget.o objects/objects/moc_parameterspinbox.o objects/objects/moc_parametercombobox.o objects/objects/moc_parameterslider.o objects/objects/moc_parametercheckbox.o objects/objects/moc_parametertext.o objects/objects/moc_parametervector.o objects/objects/moc_groupwidget.o objects/objects/moc_ignoreWheelWhenNotFocused.o objects/objects/moc_QWordSearchField.o objects/objects/moc_InputEventMapper.o objects/objects/moc_InputDriverManager.o objects/objects/moc_AxisConfigWidget.o objects/objects/moc_ButtonConfigWidget.o objects/objects/moc_WheelIgnorer.o objects/objects/moc_NetworkSignal.o objects/objects/moc_PrintInitDialog.o objects/objects/moc_DBusInputDriver.o objects/objects/moc_cgalworker.o objects/objects/moc_scintillaeditor.o objects/objects/moc_SpaceNavInputDriver.o objects/openscad_interface.o objects/openscad_adaptor.o objects/objects/moc_openscad_interface.o objects/objects/moc_openscad_adaptor.o   -L/usr/lib64 -lqscintilla2_qt5 -ldouble-conversion -L/usr/lib -lspnav -lzip -lxml2 -lfontconfig -lfreetype -lharfbuzz -lglib-2.0 -lboost_thread-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lGLEW -lopencsg -lCGAL -lmpfr -lgmp -lQt5PrintSupport -lQt5Widgets -lQt5Multimedia -lQt5Gui -lQt5Concurrent -lQt5Network -lQt5DBus -lQt5Core -lGL -lGLU -lX11 -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lspnav
collect2: error: ld returned 1 exit status
make: *** [Makefile:908: openscad] Error 1


libspnav is part of the dev-libs/libspnav package, but media-gfx/openscad does not list it as a dependency and has no USE flag NOT to use it.
Comment 1 Phil Stracchino (Unix Ronin) 2019-05-20 01:21:10 UTC
Just verified that it links and installs without any problem AS LONG AS dev-libs/libspnav is installed first.  This is a simple missing dependency on the ebuild.  Simply adding dev-libs/libspnav to RDEPEND should fix the problem.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-20 05:40:22 UTC
openscad-2019.05.ebuild:# FIXME: add optional lib3mf hidapi spnav
Comment 3 Bernd 2019-05-20 05:52:44 UTC
Hi Phil, thanks for reporting this. I have libspnav installed on my machine, but it's not available in the chroot I have used to testing. I noticed support for it in the CMakeLists.txt, therefore the comment to add support for it.

I will investigate this.
Comment 4 Bernd 2019-05-20 17:59:46 UTC
Hi Phil, I can not reproduce this in a clean 64bit chroot. On my link line the part "-L/usr/lib -lspnav" before the -lzip is not showing up. Apart from that the libraries and their ordering are identical. I also tried uninstalling libspnav on my stable multilib machine and it linked without issues.

Could you please attach the complete build log and the output of
emerge --info =media-gfx/openscad-2019.05?

This is the link line from within my ~amd64 chroot:

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o openscad objects/src/AST.o objects/src/ModuleInstantiation.o objects/src/Assignment.o objects/src/expr.o objects/src/function.o objects/src/module.o objects/src/UserModule.o objects/src/annotation.o objects/src/libsvg/libsvg.o objects/src/libsvg/circle.o objects/src/libsvg/ellipse.o objects/src/libsvg/line.o objects/src/libsvg/text.o objects/src/libsvg/tspan.o objects/src/libsvg/data.o objects/src/libsvg/polygon.o objects/src/libsvg/polyline.o objects/src/libsvg/rect.o objects/src/libsvg/group.o objects/src/libsvg/svgpage.o objects/src/libsvg/path.o objects/src/libsvg/shape.o objects/src/libsvg/transformation.o objects/src/libsvg/util.o objects/src/version_check.o objects/src/ProgressWidget.o objects/src/linalg.o objects/src/Camera.o objects/src/handle_dep.o objects/src/value.o objects/src/degree_trig.o objects/src/func.o objects/src/localscope.o objects/src/feature.o objects/src/node.o objects/src/context.o objects/src/builtincontext.o objects/src/modcontext.o objects/src/evalcontext.o objects/src/csgnode.o objects/src/CSGTreeNormalizer.o objects/src/CSGTreeEvaluator.o objects/src/Geometry.o objects/src/Polygon2d.o objects/src/clipper-utils.o objects/src/polyset-utils.o objects/src/GeometryUtils.o objects/src/polyset.o objects/src/polyset-gl.o objects/src/csgops.o objects/src/transform.o objects/src/color.o objects/src/primitives.o objects/src/projection.o objects/src/cgaladv.o objects/src/surface.o objects/src/control.o objects/src/render.o objects/src/text.o objects/src/dxfdata.o objects/src/dxfdim.o objects/src/offset.o objects/src/linearextrude.o objects/src/rotateextrude.o objects/src/printutils.o objects/src/fileutils.o objects/src/progress.o objects/src/parsersettings.o objects/src/boost-utils.o objects/src/PlatformUtils.o objects/src/LibraryInfo.o objects/src/nodedumper.o objects/src/NodeVisitor.o objects/src/GeometryEvaluator.o objects/src/ModuleCache.o objects/src/GeometryCache.o objects/src/Tree.o objects/src/DrawingCallback.o objects/src/FreetypeRenderer.o objects/src/FontCache.o objects/src/settings.o objects/src/rendersettings.o objects/src/highlighter.o objects/src/Preferences.o objects/src/SettingsWriter.o objects/src/OpenCSGWarningDialog.o objects/src/editor.o objects/src/GLView.o objects/src/QGLView.o objects/src/AutoUpdater.o objects/src/hash.o objects/src/GroupModule.o objects/src/FileModule.o objects/src/StatCache.o objects/src/builtin.o objects/src/calc.o objects/src/export.o objects/src/export_stl.o objects/src/export_amf.o objects/src/export_3mf.o objects/src/export_off.o objects/src/export_dxf.o objects/src/export_svg.o objects/src/export_nef.o objects/src/export_png.o objects/src/import.o objects/src/import_stl.o objects/src/import_off.o objects/src/import_svg.o objects/src/import_amf.o objects/src/import_3mf.o objects/src/renderer.o objects/src/colormap.o objects/src/ThrownTogetherRenderer.o objects/src/svg.o objects/src/OffscreenView.o objects/src/fbo.o objects/src/system-gl.o objects/src/imageutils.o objects/src/version.o objects/src/openscad.o objects/src/mainwin.o objects/src/OpenSCADApp.o objects/src/WindowManager.o objects/src/UIUtils.o objects/src/Dock.o objects/src/Console.o objects/src/FontListDialog.o objects/src/FontListTableView.o objects/src/launchingscreen.o objects/src/legacyeditor.o objects/src/LibraryInfoDialog.o objects/src/comment.o objects/src/parameter/ParameterWidget.o objects/src/parameter/parameterobject.o objects/src/parameter/parameterextractor.o objects/src/parameter/parameterspinbox.o objects/src/parameter/parametercombobox.o objects/src/parameter/parameterslider.o objects/src/parameter/parametercheckbox.o objects/src/parameter/parametertext.o objects/src/parameter/parametervector.o objects/src/parameter/groupwidget.o objects/src/parameter/parameterset.o objects/src/parameter/parametervirtualwidget.o objects/src/parameter/ignoreWheelWhenNotFocused.o objects/src/QWordSearchField.o objects/src/QSettingsCached.o objects/src/input/InputDriver.o objects/src/input/InputEventMapper.o objects/src/input/InputDriverManager.o objects/src/input/AxisConfigWidget.o objects/src/input/ButtonConfigWidget.o objects/src/input/WheelIgnorer.o objects/src/ext/lodepng/lodepng.o objects/src/ext/polyclipping/clipper.o objects/src/ext/libtess2/Source/bucketalloc.o objects/src/ext/libtess2/Source/dict.o objects/src/ext/libtess2/Source/geom.o objects/src/ext/libtess2/Source/mesh.o objects/src/ext/libtess2/Source/priorityq.o objects/src/ext/libtess2/Source/sweep.o objects/src/ext/libtess2/Source/tess.o objects/src/PrintService.o objects/src/OctoPrint.o objects/src/PrintInitDialog.o objects/src/input/DBusInputDriver.o objects/src/input/JoystickInputDriver.o objects/src/imageutils-lodepng.o objects/src/OffscreenContextGLX.o objects/src/OpenCSGRenderer.o objects/src/cgalutils.o objects/src/cgalutils-applyops.o objects/src/cgalutils-project.o objects/src/cgalutils-tess.o objects/src/cgalutils-polyhedron.o objects/src/CGALCache.o objects/src/CGALRenderer.o objects/src/CGAL_Nef_polyhedron.o objects/src/cgalworker.o objects/src/Polygon2d-CGAL.o objects/src/import_nef.o objects/src/PlatformUtils-posix.o objects/src/scintillaeditor.o objects/src/scadlexer.o objects/objects/lexer.o objects/objects/comment_lexer.o objects/objects/parser.o objects/objects/comment_parser.o objects/objects/qrc_openscad.o objects/objects/moc_ProgressWidget.o objects/objects/moc_QGLView.o objects/objects/moc_MainWindow.o objects/objects/moc_OpenSCADApp.o objects/objects/moc_WindowManager.o objects/objects/moc_Preferences.o objects/objects/moc_OpenCSGWarningDialog.o objects/objects/moc_AboutDialog.o objects/objects/moc_FontListDialog.o objects/objects/moc_FontListTableView.o objects/objects/moc_highlighter.o objects/objects/moc_editor.o objects/objects/moc_Dock.o objects/objects/moc_Console.o objects/objects/moc_AutoUpdater.o objects/objects/moc_launchingscreen.o objects/objects/moc_legacyeditor.o objects/objects/moc_LibraryInfoDialog.o objects/objects/moc_ParameterWidget.o objects/objects/moc_parametervirtualwidget.o objects/objects/moc_parameterspinbox.o objects/objects/moc_parametercombobox.o objects/objects/moc_parameterslider.o objects/objects/moc_parametercheckbox.o objects/objects/moc_parametertext.o objects/objects/moc_parametervector.o objects/objects/moc_groupwidget.o objects/objects/moc_ignoreWheelWhenNotFocused.o objects/objects/moc_QWordSearchField.o objects/objects/moc_InputEventMapper.o objects/objects/moc_InputDriverManager.o objects/objects/moc_AxisConfigWidget.o objects/objects/moc_ButtonConfigWidget.o objects/objects/moc_WheelIgnorer.o objects/objects/moc_NetworkSignal.o objects/objects/moc_PrintInitDialog.o objects/objects/moc_DBusInputDriver.o objects/objects/moc_cgalworker.o objects/objects/moc_scintillaeditor.o objects/openscad_interface.o objects/openscad_adaptor.o objects/objects/moc_openscad_interface.o objects/objects/moc_openscad_adaptor.o   -L/usr/lib64 -lqscintilla2_qt5 -ldouble-conversion -lzip -lxml2 -lfontconfig -lfreetype -lharfbuzz -lglib-2.0 -lboost_thread-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lGLEW -lopencsg -lCGAL -lmpfr -lgmp -lQt5PrintSupport -lQt5Widgets -lQt5Multimedia -lQt5Gui -lQt5Concurrent -lQt5Network -lQt5DBus -lQt5Core /usr/lib64/libGL.so -lGLU -lX11 -lpthread   
/var/tmp/portage/media-gfx/openscad-2019.05/work/openscad-2019.05/scripts/translation-make.sh
Comment 5 Phil Stracchino (Unix Ronin) 2019-05-20 18:43:53 UTC
(In reply to Bernd from comment #4)
> Hi Phil, I can not reproduce this in a clean 64bit chroot. On my link line
> the part "-L/usr/lib -lspnav" before the -lzip is not showing up. Apart from
> that the libraries and their ordering are identical. I also tried
> uninstalling libspnav on my stable multilib machine and it linked without
> issues.
> 
> Could you please attach the complete build log and the output of
> emerge --info =media-gfx/openscad-2019.05?

I can do that, but I'll have to unmerge libspnav first to reproduce the error.  Or do you not need the error reproduced for this purpose?

Here's the info:


babylon5:root:~:1 # emerge --info =media-gfx/openscad-2019.05
Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.29-r2, 5.0.13-gentoo-babylon5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.0.13-gentoo-babylon5-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.6
KiB Mem:    16401520 total,   5723452 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 20 May 2019 06:00:01 +0000
Head commit of repository gentoo: e71ee81acf44dbf10d228da268024ce9873996be
Head commit of repository palemoon: a5191cd59e6718e5e02950325e4e11b3c1f42696

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo, 2.31.1-r6::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://minbar.caerllewys.net/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

gentoo-dev-alaric
    location: /var/lib/alaric
    masters: gentoo

palemoon
    location: /var/db/repos/palemoon
    sync-type: git
    sync-uri: https://github.com/deu/palemoon-overlay.git
    masters: gentoo

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

mysql
    location: /var/lib/layman/mysql
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/mysql.git
    masters: gentoo
    priority: 50

nexylan-gentoo-overlay
    location: /var/lib/layman/nexylan-gentoo-overlay
    sync-type: laymansync
    sync-uri: git://github.com/nexylan/nexylan-gentoo-overlay.git
    masters: gentoo
    priority: 50

seeds
    location: /var/lib/layman/seeds
    sync-type: laymansync
    sync-uri: git://github.com/vonavi/seeds.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --verbose-conflicts --keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo                 http://gentoo.chem.wisc.edu/gentoo                 http://gentoo.osuosl.org                 ftp://mirrors.rit.edu/gentoo                 http://mirrors.cs.wmich.edu/gentoo                 "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cddb cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif ffmpeg flac fltk fortran gdbm gif glamor gpm gtk iconv id3tag imagemagick ipv6 java jpeg jpeg2k lcms ldap libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin nvidia ogg opengl openmp opus pam pango pcre pcsc-lite pdf png policykit ppds qt5 readline sdl seccomp spell sse sse2 sse4 ssl startup-notification svg tcpd theora threads tiff tk tools truetype udev udisks unicode upower usb utils v4l v4l2 vdpau vorbis vpx wxwidgets x264 xattr xcb xml xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="emu10k1 hda-intel" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/openscad-2019.05::gentoo was built with the following:
USE="-emacs" ABI_X86="(64)"
Comment 6 Phil Stracchino (Unix Ronin) 2019-05-20 18:59:37 UTC
.....Huh.  Well this is bizarre.

I unmerged dev-libs/libspnav, manually removed the libspnav library and symlink that portage preserved because they were needed by openscad, and re-merged openscad, and this time I can't reproduce the problem either.
Comment 7 Bernd 2019-05-20 19:23:10 UTC
I was thinking, you maybe you had a spnav.h include file still lying around from a prior install of libspnav, because this is what the build system is looking for, when it decides whether to add support for spnav or not?

So, this bug can be closed then?
Comment 8 Phil Stracchino (Unix Ronin) 2019-05-20 20:16:08 UTC
Hmm.  dev-libs/libspnav DID say at build time that it overwrote several files that it could not find an owner for.  And the package description DOES say that libspnav replaces Magellan.  So perhaps there were orphaned files from a past Magellan installation that caused openscad to think libspnav was installed?

How can we test for that case?  Or do we just document that orphaned Magellan files may cause the build to fail, and if so, here's how you fix it?
Comment 9 Bernd 2019-05-20 20:57:59 UTC
I couldn't find any reference on magellan in the git log of the tree. If magellan has ever been in the portage tree, this must have been before 2015 when the move from cvs to git happened.

It might also be that you happen to have libspnav / magellan installed manually at some time.

I'm not a gentoo dev, so I'm unsure on how to handle this. I'm going to ask in IRC, if one of the devs might take a look at the bug and give a recommendation.
Comment 10 Bernd 2019-05-21 06:49:46 UTC
The build automagically links to spnav if it's present on the system. So, I need to fix the ebuild to pull in libspnav.
Comment 11 Larry the Git Cow gentoo-dev 2019-07-07 19:19:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da982da5372c24f47a7a5b402dae6c5557473ba4

commit da982da5372c24f47a7a5b402dae6c5557473ba4
Author:     Bernd Waibel <waebbl@gmail.com>
AuthorDate: 2019-05-22 05:52:48 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-07-07 19:18:02 +0000

    media-gfx/openscad: fix automagic deps
    
    Fixes issues with automagic dependencies in upstream build system,
    where it links against dev-libs/libspnav and dev-libs/hidapi if
    they are present on the build host.
    
    Thanks to Phil Stracchino (Unix Ronin) for bringing this up.
    
    Closes: https://bugs.gentoo.org/686354
    Reported-by: Phil Stracchino (Unix Ronin) <phils@caerllewys.net>
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Bernd Waibel <waebbl@gmail.com>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 media-gfx/openscad/openscad-2019.05-r1.ebuild | 82 +++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)