0

I am a developer for a BOINC project, and we are working on updating our project to the newest version of Ubuntu. We upgraded our server to Ubuntu 20.04.4 LTS, which required upgrading some libraries (including libboost-dev and libmysql-client).

When we tried to run a binary that was compiled on Ubuntu 18, it seg faults. We tried to rebuild the binary, but we are getting the following errors:

/usr/bin/ld: CMakeFiles/stream_fit_start_search.dir/stream_fit_start_search.cxx.o: in function `main':
<...>/stream_fit_start_search.cxx:159: undefined reference to `WorkunitInformation::create_table(MYSQL*)'
/usr/bin/ld: <...>/stream_fit_start_search.cxx:160: undefined reference to `ParticleSwarmDB::create_tables(MYSQL*)'
/usr/bin/ld: <...>/stream_fit_start_search.cxx:161: undefined reference to `DifferentialEvolutionDB::create_tables(MYSQL*)'
/usr/bin/ld: <...>/stream_fit_start_search.cxx:341: undefined reference to `ParticleSwarmDB::ParticleSwarmDB(MYSQL*, int, std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&, std::vector<std::string, std::allocator<std::string> > const&)'
/usr/bin/ld: <...>/stream_fit_start_search.cxx:357: undefined reference to `WorkunitInformation::WorkunitInformation(MYSQL*, std::string, int, int, std::string, std::string, std::vector<std::string, std::allocator<std::string> > const&, std::string, std::string)'

It looks like maybe some MYSQL object has been altered since the previous version of libmysql-client, but I'm not sure about that.

Has anyone experienced a problem like this before? We are using CMake to build the binaries, and I'm happy to share some of that code if it would help. Thanks!

Tom Donlon
  • 1
  • 1
  • 1
  • 2

0 Answers0