LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2021, 11:46 PM   #1
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Rep: Reputation: 20
Compiling openbabel 3.1.1


I know that a working slackbuild script for openbabel 2.4.1 exists on sbo. However, 2.4.1 does not have all features I need, so I tried to compile 3.1.1 however I get

Code:
[ 79%] Linking CXX executable ../bin/obrms
cd /tmp/SBo/openbabel-3.1.1/build/tools && /usr/bin/cmake -E cmake_link_script CMakeFiles/obrms.dir/link.txt --verbose=1
/usr/bin/c++ -O2 -fPIC -fpermissive -pthread -O3 -DNDEBUG -O3 -DNDEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -rdynamic CMakeFiles/obrms.dir/obrms.cpp.o -o ../bin/obrms  -Wl,-rpath,/tmp/SBo/openbabel-3.1.1/build/lib64:/usr/local/lib: ../lib64/libopenbabel.so.7.0.0 /usr/local/lib/libmaeparser.so ../lib64/libcoordgen.so.1.4.0 -lm -ldl -lz -pthread
/usr/bin/ld: warning: libboost_iostreams.so.1.76.0, needed by /usr/local/lib/libmaeparser.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::deflated'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib_error::check(int)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::okay'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::xdeflate(int)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::stream_end'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::no_flush'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::best_speed'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::xinflate(int)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::zlib_base()'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::gzip_footer::process(char)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::best_compression'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::gzip_header::process(char)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::gzip_header::reset()'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::default_strategy'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::sync_flush'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::finish'
/usr/bin/ld: /usr/local/lib/libmaeparser.so: undefined reference to `boost::iostreams::zlib::default_compression'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/CMakeFiles/obrms.dir/build.make:102: bin/obrms] Error 1
make[2]: Leaving directory '/tmp/SBo/openbabel-3.1.1/build'
make[1]: *** [CMakeFiles/Makefile2:4981: tools/CMakeFiles/obrms.dir/all] Error 2
make[1]: Leaving directory '/tmp/SBo/openbabel-3.1.1/build'
make: *** [Makefile:146: all] Error 2
Can someone help me to fix that?
 
Old 10-19-2021, 05:27 AM   #2
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Your libmaeparser seems to be linked again an older libboost, it always changes sonames and breaks things.

Preferably, recompile your libmaeparser against your current libboost 1.77. Alternatively, install a boost compat package that has older libraries)

http://www.slackware.com/~alien/slac...pkg64/current/
 
1 members found this post helpful.
Old 10-19-2021, 10:47 AM   #3
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
I was not aware of the boost compat package. Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
issues with Openbabel fc 14 navneethr Linux - Software 3 12-19-2012 02:32 AM
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 01:45 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration