Bug 1213049

Summary: [osgearth] FTBFS in fedora >= fc22
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: osgearthAssignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osgearth-2.6-4.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-26 12:53:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralf Corsepius 2015-04-18 05:54:05 UTC
Description of problem:

osgearth fails to build from source in fc22 and fc23

Version-Release number of selected component (if applicable):
osgearth-2.6-3.fc21

How reproducible:
Always.

Steps to Reproduce:
1. rebuild osgearth in mock

Actual results:
...
Linking CXX executable ../../../bin/osgearth_qt
cd /builddir/build/BUILD/osgearth-osgearth-2.6/build/src/applications/osgearth_qt && /usr/bin/cmake -E cmake_link_script CMakeFiles/application_osgearth_qt.dir/link.txt --verbose=1
/usr/bin/c++   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic    -Wl,--as-needed CMakeFiles/application_osgearth_qt.dir/moc_DemoMainWindow.cxx.o CMakeFiles/application_osgearth_qt.dir/qrc_images.cxx.o CMakeFiles/application_osgearth_qt.dir/osgearth_qt.cpp.o  -o ../../../bin/osgearth_qt  -L/builddir/build/BUILD/osgearth-osgearth-2.6/build/lib -rdynamic ../../../lib/libosgEarthQt.so.2.5.0 -lQtCore -lQtGui -lQtOpenGL ../../../lib/libosgEarthUtil.so.2.5.0 ../../../lib/libosgEarthAnnotation.so.2.5.0 ../../../lib/libosgEarthFeatures.so.2.5.0 ../../../lib/libosgEarthSymbology.so.2.5.0 ../../../lib/libosgEarth.so.2.5.0 -losgShadow -lcurl -lz -ltinyxml -lgeos -lgdal -losgManipulator -lpthread -lm -losg -losgWidget -losgUtil -losgSim -losgTerrain -losgDB -losgFX -losgViewer -losgText -losgGA -losgQt -lOpenThreads -lGLU -lGL -lOpenThreads -lGLU -lGL -Wl,-rpath,/builddir/build/BUILD/osgearth-osgearth-2.6/build/lib: 
/usr/bin/ld: CMakeFiles/application_osgearth_qt.dir/osgearth_qt.cpp.o: undefined reference to symbol 'XInitThreads'
/usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
...

Additional info:
AFAICT, the cause is a bug somewhere in osgearth's cmake stuff.

Comment 1 Fedora Update System 2015-04-18 20:24:16 UTC
osgearth-2.6-4.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/osgearth-2.6-4.fc22

Comment 2 Fedora Update System 2015-04-21 19:09:59 UTC
Package osgearth-2.6-4.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing osgearth-2.6-4.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6508/osgearth-2.6-4.fc22
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2015-04-26 12:53:46 UTC
osgearth-2.6-4.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.