Created attachment 382964 [details] media-gfx:freecad-0.14.3702-r1:20140815-203548.log.xz 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/libFreeCADGui.so ../../lib/libFreeCADApp.so ../../lib/libFreeCADBase.so -lpython2.7 -lxerces-c -lz -lutil -ldl -lCoin -lSoQt /usr/lib64/qt4/libQtOpenGL.so /usr/lib64/qt4/libQtSvg.so /usr/lib64/qt4/libQtUiTools.a /usr/lib64/qt4/libQtWebKit.so /usr/lib64/qt4/libQtXmlPatterns.so /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtXml.so /usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtCore.so -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/libFreeCADGui.so: error: undefined reference to 'XSendEvent' ../../lib/libFreeCADGui.so: 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....
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.
I could not reproduce this bug.