| Summary: | sci-libs/mathgl-2.1.3.1 : underlinking of /usr/lib64/libX11.so.6: error adding symbols: | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
| Component: | Current packages | Assignee: | Andrey Grozin <grozin> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jlec, sci |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge log | ||
|
Description
Toralf Förster
2015-04-23 14:47:25 UTC
Accordingly to this discussion: https://github.com/Ri0n/QtNote/issues/22 the fix is pretty simple, you need to add -lX11 to the linker. Here is my patch:
diff -urN mathgl-2.1.3.1_ori/work/mathgl-2.1.3.1/udav/CMakeLists.txt mathgl-2.1.3.1/work/mathgl-2.1.3.1/udav/CMakeLists.txt
--- mathgl-2.1.3.1_ori/work/mathgl-2.1.3.1/udav/CMakeLists.txt 2013-05-08 03:39:40.000000000 -0400
+++ mathgl-2.1.3.1/work/mathgl-2.1.3.1/udav/CMakeLists.txt 2015-06-27 08:37:27.947937759 -0400
@@ -16,6 +16,8 @@
set(udav_src ${udav_src} udav.rc)
endif(WIN32)
+find_package (X11)
+
if(MGL_HAVE_GSL)
# target_link_libraries(mgl ${GSL_LIB} ${GSL_CBLAS_LIB} )
include_directories(${GSL_INCLUDE_DIR})
@@ -27,10 +29,10 @@
qt4_wrap_cpp(udav_moc_src ${udav_moc_hdr} )
add_executable(udav ${udav_src} ${udav_moc_src} ${udav_rc_src})
#set_target_properties(udav PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
-target_link_libraries(udav mgl-qt ${QT_LIBRARIES})
+target_link_libraries(udav mgl-qt ${X11_LIBRARIES} ${QT_LIBRARIES})
if(MGL_HAVE_PTHREAD)
- target_link_libraries(udav ${CMAKE_THREAD_LIBS_INIT})
+ target_link_libraries(udav ${X11_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
endif(MGL_HAVE_PTHREAD)
install(
+ 28 Jun 2015; Justin Lecher <jlec@gentoo.org> +files/mathgl-2.1.3.1-x11.patch, + mathgl-2.1.3.1.ebuild, mathgl-2.1.3.ebuild: + Fix underlinking, bug #547486 + |