Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532526 - sys-apps/roccat-tools-2.2.0 INPUT_DEVICES=roccat_lua - ../../libroccatwidget/libroccatwidget.so.2.2.0: error: undefined reference to 'ceil'
Summary: sys-apps/roccat-tools-2.2.0 INPUT_DEVICES=roccat_lua - ../../libroccatwidget/...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dmitry Pisklov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-12-14 08:23 UTC by Thomas
Modified: 2015-01-23 23:37 UTC (History)
1 user (show)

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


Attachments
Output from emerge --info (emerge.info,6.80 KB, text/plain)
2014-12-14 09:33 UTC, Thomas
Details
build.log (build.log,254.30 KB, text/plain)
2014-12-14 09:34 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2014-12-14 08:23:32 UTC
The final linking fails:

Linking C executable luaconfig
cd /var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/lua/luaconfig && /usr/bin/cmake -E cmake_link_script CMakeFiles/luaconfig.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe -fno-ident -ggdb    -Wl,-O1 -Wl,--as-needed CMakeFiles/luaconfig.dir/luaconfig.o CMakeFiles/luaconfig.dir/luaconfig_buttons_frame.o CMakeFiles/luaconfig.dir/luaconfig_configuration_dialog.o CMakeFiles/luaconfig.dir/luaconfig_cpi_selector.o CMakeFiles/luaconfig.dir/luaconfig_handedness_selector.o CMakeFiles/luaconfig.dir/luaconfig_key_combo_box.o CMakeFiles/luaconfig.dir/luaconfig_light_frame.o CMakeFiles/luaconfig.dir/luaconfig_polling_rate_selector.o CMakeFiles/luaconfig.dir/luaconfig_profile_page.o CMakeFiles/luaconfig.dir/luaconfig_surface_check.o CMakeFiles/luaconfig.dir/luaconfig_window.o  -o luaconfig -rdynamic ../liblua/liblua.so.2.2.0 ../../libroccat/libroccat.so.2.2.0 ../../libroccatwidget/libroccatwidget.so.2.2.0 -latk-1.0 -lcairo -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lglib-2.0 -lgobject-2.0 -lgtk-x11-2.0 -lpango-1.0 /usr/lib64/gaminggear-0/libgaminggearwidget.so -ldbus-glib-1 ../../libroccat/libroccat.so.2.2.0 /usr/lib64/gaminggear-0/libgaminggear.so -lgudev-1.0 ../../libroccathelper/libroccathelper.a -Wl,-rpath,/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/lua/liblua:/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/libroccat:/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/libroccatwidget:/usr/lib64/gaminggear-0: 
../../libroccatwidget/libroccatwidget.so.2.2.0: error: undefined reference to 'ceil'
../../libroccatwidget/libroccatwidget.so.2.2.0: error: undefined reference to 'sqrt'
collect2: error: ld returned 1 exit status
lua/luaconfig/CMakeFiles/luaconfig.dir/build.make:355: recipe for target 'lua/luaconfig/luaconfig' failed
make[2]: *** [lua/luaconfig/luaconfig] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build'
CMakeFiles/Makefile2:712: recipe for target 'lua/luaconfig/CMakeFiles/luaconfig.dir/all' failed
make[1]: *** [lua/luaconfig/CMakeFiles/luaconfig.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build'
Makefile:126: recipe for target 'all' failed

A bit of googling told me to pass the flag -lm to the linker. Adding that to my LDFLAGS helped but looks like a ugly workaround to me.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-14 09:16:03 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Thomas 2014-12-14 09:33:00 UTC
Created attachment 391660 [details]
Output from emerge --info
Comment 3 Thomas 2014-12-14 09:34:21 UTC
Created attachment 391662 [details]
build.log
Comment 4 Dmitry Pisklov 2015-01-23 23:37:53 UTC
This has been fixed in version 2.3.0. It will be in the main tree soon, the bug for version bump is here:
https://bugs.gentoo.org/show_bug.cgi?id=537490