tried building with pdebuild. This is still failing to build. here is where build failed for me.
g++ -Wl,-Bsymbolic-functions -L/usr/local/lib -o propmerge propmerge.o -lsgprops -lsgxml -lsgio -lsgmisc -lsgdebug -lsgstructure -losgParticle -losgSim -losgViewer -losgGA -losgText -losgDB -losgUtil -losg -lOpenThreads -ljpeg -losgFX -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lrt -ldl -lm /usr/lib/libsgtiming.so.2.0.0: undefined reference to `clock_gettime' /usr/lib/libsgtiming.so.2.0.0: undefined reference to `SGPath::set(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/libsgstructure.so: undefined reference to `OpenThreads::Mutex::lock()' /usr/lib/libsgstructure.so: undefined reference to `OpenThreads::Mutex::Mutex()' /usr/lib/libsgprops.so: undefined reference to `SGPath::dir() const' /usr/lib/libsgstructure.so: undefined reference to `OpenThreads::Mutex::unlock()' /usr/lib/libsgprops.so: undefined reference to `SGPath::~SGPath()' /usr/lib/libsgprops.so: undefined reference to `SGPath::create_dir(unsigned int)' /usr/lib/libsgprops.so: undefined reference to `SGPath::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/libsgprops.so: undefined reference to `SGPath::SGPath(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/libsgstructure.so: undefined reference to `OpenThreads::Mutex::~Mutex()' collect2: ld returned 1 exit status make[3]: *** [propmerge] Error 1 make[3]: Leaving directory `/tmp/buildd/flightgear-2.0.0/utils/propmerge' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/flightgear-2.0.0/utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/buildd/flightgear-2.0.0' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 E: Failed autobuilding of package I: unmounting /var/cache/pbuilder/ccache filesystem I: unmounting dev/pts filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /var/cache/pbuilder/build//6403 and its subdirectories
tried building with pdebuild. This is still failing to build. here is where build failed for me.
g++ -Wl,-Bsymbolic- functions -L/usr/local/lib -o propmerge propmerge.o -lsgprops -lsgxml -lsgio -lsgmisc -lsgdebug -lsgstructure -losgParticle -losgSim -losgViewer -losgGA -losgText -losgDB -losgUtil -losg -lOpenThreads -ljpeg -losgFX -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lrt -ldl -lm libsgtiming. so.2.0. 0: undefined reference to `clock_gettime' libsgtiming. so.2.0. 0: undefined reference to `SGPath: :set(std: :basic_ string< char, std::char_ traits< char>, std::allocator< char> > const&)' libsgstructure. so: undefined reference to `OpenThreads: :Mutex: :lock() ' libsgstructure. so: undefined reference to `OpenThreads: :Mutex: :Mutex( )' libsgprops. so: undefined reference to `SGPath::dir() const' libsgstructure. so: undefined reference to `OpenThreads: :Mutex: :unlock( )' libsgprops. so: undefined reference to `SGPath::~SGPath()' libsgprops. so: undefined reference to `SGPath: :create_ dir(unsigned int)' libsgprops. so: undefined reference to `SGPath: :append( std::basic_ string< char, std::char_ traits< char>, std::allocator< char> > const&)' libsgprops. so: undefined reference to `SGPath: :SGPath( std::basic_ string< char, std::char_ traits< char>, std::allocator< char> > const&)' libsgstructure. so: undefined reference to `OpenThreads: :Mutex: :~Mutex( )' flightgear- 2.0.0/utils/ propmerge' flightgear- 2.0.0/utils' flightgear- 2.0.0' pbuilder/ ccache filesystem pbuilder/ build// 6403 and its subdirectories
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
collect2: ld returned 1 exit status
make[3]: *** [propmerge] Error 1
make[3]: Leaving directory `/tmp/buildd/
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/