Re: [Flightgear-devel] terragear.git: gdalchop.cxx undef reference to sgWriteLong
Hi Rebecca, Thanks for the pointers! Yes, I compile SG myself, but the version TG would link against might have been compiled on Ubuntu (I'm migrating to Manjaro). Compiling everything again solved my problem. Most likely an ID-10T error. Tom -- 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/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] terragear.git: gdalchop.cxx undef reference to sgWriteLong
Different argument types (sgWriteLong(gzFile_s*, int) and sgWriteLong(void*, int)) are different symbols in C++. On my system both 2.10 shared and 2.12 static (I haven't tried next or master, but the git history says io/lowlevel.cxx hasn't changed for 2 years) give the correct types. Did you compile libSimGearCore yourself, and do you have zlib1g-dev installed? ~$ nm -gC /home/palmer/flightgear_source/simgear-2.10.0/debian/libsimgearcore2.10.0/usr/lib/x86_64-linux-gnu/libSimGearCore.so.2.10.0 | grep sgWriteLong 0006d150 T sgWriteLong(gzFile_s*, int) 0006d240 T sgWriteLongLong(gzFile_s*, long) ~$ nm -C /home/palmer/flightgear_source/simgear-2.12.0/simgear/libSimGearCore.a | grep sgWriteLong 0450 T sgWriteLong(gzFile_s*, int) 0540 T sgWriteLongLong(gzFile_s*, long) U sgWriteLong(gzFile_s*, int) -- 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
[Flightgear-devel] terragear.git: gdalchop.cxx undef reference to sgWriteLong
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 0450 T sgWriteLong(void*, int) 0540 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 -W