Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520038 - media-gfx/freecad-0.14.3702-r1 - ../../lib/ error: undefined reference to 'XSendEvent'
Summary: media-gfx/freecad-0.14.3702-r1 - ../../lib/ error: undefined...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
Depends on:
Blocks: underlinking
  Show dependency tree
Reported: 2014-08-16 10:13 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-08-11 01:06 UTC (History)
0 users

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

media-gfx:freecad-0.14.3702-r1:20140815-203548.log.xz (media-gfx:freecad-0.14.3702-r1:20140815-203548.log.xz,51.30 KB, application/x-xz)
2014-08-16 10:13 UTC, Jeroen Roovers (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-08-16 10:13:48 UTC
Created attachment 382964 [details]

Linking CXX executable ../../bin/FreeCAD
cd /var/tmp/portage/media-gfx/freecad-0.14.3702-r1/work/freecad-0.14.3702_build/src/Main && /usr/bin/cmake -E cmake_link_script CMak
eFiles/FreeCADMain.dir/link.txt --verbose=1
/usr/lib64/distcc/bin/x86_64-pc-linux-gnu-g++   -frecord-gcc-switches -march=core2 -g -pipe -O2 -Wall -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -fstack-protector  -Wno-deprecated -Wno-write-strings -D_OCC64   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/FreeCADMain.dir/MainGui.cpp.o  -o ../../bin/FreeCAD -rdynamic ../../lib/ ../../lib/ ../../lib/ -lpython2.7 -lxerces-c -lz -lutil -ldl -lCoin -lSoQt /usr/lib64/qt4/ /usr/lib64/qt4/ /usr/lib64/qt4/libQtUiTools.a /usr/lib64/qt4/ /usr/lib64/qt4/ /usr/lib64/qt4/ /usr/lib64/qt4/ /usr/lib64/qt4/ /usr/lib64/qt4/ -lboost_filesystem-mt -lboost_program_options-mt -lboost_regex-mt -lboost_signals-mt -lboost_system-mt -lboost_thread-mt -lGL -lspnav -lshiboken-python2.7 -lpyside-python2.7 -Wl,-rpath,/var/tmp/portage/media-gfx/freecad-0.14.3702-r1/work/freecad-0.14.3702_build/lib:/usr/lib64/qt4:
../../lib/ error: undefined reference to 'XSendEvent'
../../lib/ error: undefined reference to 'XInternAtom'
collect2: error: ld returned 1 exit status
distcc[14694] ERROR: compile (null) on localhost failed
make[2]: *** [bin/FreeCAD] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/freecad-0.14.3702-r1/work/freecad-0.14.3702_build'
make[1]: *** [src/Main/CMakeFiles/FreeCADMain.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 1 Joakim Gebart Nohlgård 2015-01-30 08:56:19 UTC
Adding -lX11 to the linking command eliminates the error.

I only tested it by hand in the terminal. I haven't tested if it works simply adding -lX11 to LDFLAGS via portage.env.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2015-08-11 01:06:21 UTC
I could not reproduce this bug.