I'm trying to compile terragear.git on a fresh Manjaro Linux, but linking fails on gdalchop.cxx with
gdalchop.cxx:(.text+0x4f4): undefined reference to `sgWriteLong(gzFile_s*, int)' gdalchop.cxx:(.text+0x4ff): undefined reference to `sgWriteInt(gzFile_s*, int)' gdalchop.cxx:(.text+0x578): undefined reference to `sgWriteShort(gzFile_s*, short)' sgWriteLong exists in libSimGearCore.a (so do the others): $ nm -gC /home/tom/daten/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libSimGearCore.a | grep sgWriteLong 0000000000000450 T sgWriteLong(void*, int) 0000000000000540 T sgWriteLongLong(void*, long) U sgWriteLong(void*, int) and /home/tom/daten/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libSimGearCore.a is included in the linker command line. No idea if it's relevant, but I had to compile GDAL from source since I couldn't find it in Manjaro's packages. Any ideas? Tom -- Boost version: 1.54.0 -- Found the following Boost libraries: -- system -- thread -- SimGear include directory: /home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/include -- found SimGear version: 2.99.0 (needed 2.12.0 or higher) -- looking for static SimGear libraries -- found SimGear libraries -- Performing Test SIMGEAR_COMPILE_TEST -- Performing Test SIMGEAR_COMPILE_TEST - Success -- Found CGAL 4.2 -- Build type: Release -- USING CXXFLAGS = ' -frounding-math -O3 -DNDEBUG' -- USING EXEFLAGS = ' ' -- Targetting Unix Makefiles -- Using /usr/bin/c++ compiler. -- Requested component: Core -- Requested component: MPFR -- Requested component: GMP -- Configuring done -- Generating done -- Build files have been written to: /home/tom/daten/fgfs/src/terragear /usr/bin/cmake -H/home/tom/fgfs/src/terragear -B/home/tom/daten/fgfs/src/terragear --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/tom/daten/fgfs/src/terragear/CMakeFiles /home/tom/daten/fgfs/src/terragear/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory `/home/tom/daten/fgfs/src/terragear' make -f src/Lib/terragear/CMakeFiles/terragear.dir/build.make src/Lib/terragear/CMakeFiles/terragear.dir/depend make[2]: Entering directory `/home/tom/daten/fgfs/src/terragear' cd /home/tom/daten/fgfs/src/terragear && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tom/fgfs/src/terragear /home/tom/fgfs/src/terragear/src/Lib/terragear /home/tom/daten/fgfs/src/terragear /home/tom/daten/fgfs/src/terragear/src/Lib/terragear /home/tom/daten/fgfs/src/terragear/src/Lib/terragear/CMakeFiles/terragear.dir/DependInfo.cmake --color= make[2]: Leaving directory `/home/tom/daten/fgfs/src/terragear' make -f src/Lib/terragear/CMakeFiles/terragear.dir/build.make src/Lib/terragear/CMakeFiles/terragear.dir/build make[2]: Entering directory `/home/tom/daten/fgfs/src/terragear' make[2]: Nothing to be done for `src/Lib/terragear/CMakeFiles/terragear.dir/build'. make[2]: Leaving directory `/home/tom/daten/fgfs/src/terragear' /usr/bin/cmake -E cmake_progress_report /home/tom/daten/fgfs/src/terragear/CMakeFiles 43 44 45 46 47 48 49 50 51 52 53 54 55 [ 16%] Built target terragear make -f src/Prep/GDALChop/CMakeFiles/gdalchop.dir/build.make src/Prep/GDALChop/CMakeFiles/gdalchop.dir/depend make[2]: Entering directory `/home/tom/daten/fgfs/src/terragear' cd /home/tom/daten/fgfs/src/terragear && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tom/fgfs/src/terragear /home/tom/fgfs/src/terragear/src/Prep/GDALChop /home/tom/daten/fgfs/src/terragear /home/tom/daten/fgfs/src/terragear/src/Prep/GDALChop /home/tom/daten/fgfs/src/terragear/src/Prep/GDALChop/CMakeFiles/gdalchop.dir/DependInfo.cmake --color= make[2]: Leaving directory `/home/tom/daten/fgfs/src/terragear' make -f src/Prep/GDALChop/CMakeFiles/gdalchop.dir/build.make src/Prep/GDALChop/CMakeFiles/gdalchop.dir/build make[2]: Entering directory `/home/tom/daten/fgfs/src/terragear' Linking CXX executable gdalchop cd /home/tom/daten/fgfs/src/terragear/src/Prep/GDALChop && /usr/bin/cmake -E cmake_link_script CMakeFiles/gdalchop.dir/link.txt --verbose=1 /usr/bin/c++ -frounding-math -Wall -D_REENTRANT -DNO_OPENSCENEGRAPH_INTERFACE -O3 -DNDEBUG CMakeFiles/gdalchop.dir/gdalchop.cxx.o -o gdalchop -L/home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib -rdynamic -lmpfr -lgmp /home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libCGAL_Core.so /home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libCGAL.so -lboost_thread -lboost_system ../../Lib/terragear/libterragear.a -lgdal -lz /home/tom/daten/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libSimGearCore.a /home/tom/daten/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libSimGearCore.a -lpthread -lz -lrt -lmpfr -lgmp /home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libCGAL_Core.so /home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libCGAL.so -lboost_thread -lboost_system /home/tom/daten/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib/libSimGearCore.a -lpthread -lrt -Wl,-rpath,/home/tom/fgfs/cvs-build/git-2013-09-19-osg-3.0.1/lib CMakeFiles/gdalchop.dir/gdalchop.cxx.o: In function `write_bucket(std::string const&, SGBucket, int*, int, int, int, int, int, int)': gdalchop.cxx:(.text+0x4f4): undefined reference to `sgWriteLong(gzFile_s*, int)' gdalchop.cxx:(.text+0x4ff): undefined reference to `sgWriteInt(gzFile_s*, int)' gdalchop.cxx:(.text+0x509): undefined reference to `sgWriteInt(gzFile_s*, int)' gdalchop.cxx:(.text+0x519): undefined reference to `sgWriteInt(gzFile_s*, int)' gdalchop.cxx:(.text+0x528): undefined reference to `sgWriteInt(gzFile_s*, int)' gdalchop.cxx:(.text+0x533): undefined reference to `sgWriteInt(gzFile_s*, int)' CMakeFiles/gdalchop.dir/gdalchop.cxx.o:gdalchop.cxx:(.text+0x542): more undefined references to `sgWriteInt(gzFile_s*, int)' follow CMakeFiles/gdalchop.dir/gdalchop.cxx.o: In function `write_bucket(std::string const&, SGBucket, int*, int, int, int, int, int, int)': gdalchop.cxx:(.text+0x578): undefined reference to `sgWriteShort(gzFile_s*, short)' collect2: error: ld returned 1 exit status make[2]: *** [src/Prep/GDALChop/gdalchop] Error 1 make[2]: Leaving directory `/home/tom/daten/fgfs/src/terragear' make[1]: *** [src/Prep/GDALChop/CMakeFiles/gdalchop.dir/all] Error 2 make[1]: Leaving directory `/home/tom/daten/fgfs/src/terragear' make: *** [all] Error 2 ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel