Board index FlightGear Support Compiling

undefined reference to symbol 'pthread_create@@GLIBC_2.1'  Topic is solved

Building FlightGear from source, and in the need for help?

undefined reference to symbol 'pthread_create@@GLIBC_2.1'

Postby pommesschranke » Thu Aug 22, 2013 10:11 pm

Hi !
I try to build FGCOM on kUbuntu 13.04 and get this error:
Code: Select all
Linking CXX executable fgcom
/usr/bin/ld: libiaxclient_lib.a(iaxclient_lib.c.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [fgcom] Error 1
make[1]: *** [CMakeFiles/fgcom.dir/all] Error 2
make: *** [all] Error 2
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:36 (FILE):
  file INSTALL cannot find
  "/SDA1/home/mherweg/fgfs/build/fgcom/CMakeFiles/CMakeRelink.dir/fgcom".
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

Re: undefined reference to symbol 'pthread_create@@GLIBC_2.1  

Postby pommesschranke » Mon Aug 26, 2013 12:06 pm

my fix/workaround for this:

I download_and_compiled the latest git version("2.99"): fgcom is included and works nicely in a first test

fgfs --enable-fgcom
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests