LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-17-2018, 06:52 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
libboost1.58-all-dev not working in peppermint ( Ubunutututu)


not working in Ubunutu knock off boost not working in peppermint , this compiles and installs and runs fine on Slackware, but here It at first had not boost anything so I installed what was in the repo, libboost1.58-all-dev

Still it fails. what to do?


Code:
> userx@HP-EliteBook-8460p:~/Templates/mh5000-1.3.1.1
> $ make
> make[1]: Entering directory '/home/userx/Templates/mh5000-1.3.1.1/src'
> g++  -std=c++11 -Wno-switch-enum -Wno-switch -lboost_system -lboost_filesystem -DPREFIX=\"/usr/local\" -DPACKAGE=\"mh5000\" -DVERSION=\"1.3.2\" -o mh5000 files.cpp img.cpp main.cpp options.cpp timers.cpp -lm -lX11 -lImlib2 
> /tmp/ccK4GdOX.o: In function `__static_initialization_and_destruction_0(int, int)':
> files.cpp:(.text+0x1756): undefined reference to `boost::system::generic_category()'
> files.cpp:(.text+0x1762): undefined reference to `boost::system::generic_category()'
> files.cpp:(.text+0x176e): undefined reference to `boost::system::system_category()'
> /tmp/ccK4GdOX.o: In function `boost::system::error_code::error_code()':
> files.cpp:(.text._ZN5boost6system10error_codeC2Ev[_ZN5boost6system10error_codeC5Ev]+0x17): undefined reference to `boost::system::system_category()'
> /tmp/ccK4GdOX.o: In function `boost::system::error_code::clear()':
> files.cpp:(.text._ZN5boost6system10error_code5clearEv[_ZN5boost6system10error_code5clearEv]+0x17): undefined reference to `boost::system::system_category()'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::exists(boost::filesystem::path const&)':
> files.cpp:(.text._ZN5boost10filesystem6existsERKNS0_4pathE[_ZN5boost10filesystem6existsERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::is_directory(boost::filesystem::path const&)':
> files.cpp:(.text._ZN5boost10filesystem12is_directoryERKNS0_4pathE[_ZN5boost10filesystem12is_directoryERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::is_regular_file(boost::filesystem::path const&)':
> files.cpp:(.text._ZN5boost10filesystem15is_regular_fileERKNS0_4pathE[_ZN5boost10filesystem15is_regular_fileERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::directory_entry::status(boost::system::error_code&) const':
> files.cpp:(.text._ZNK5boost10filesystem15directory_entry6statusERNS_6system10error_codeE[_ZNK5boost10filesystem15directory_entry6statusERNS_6system10error_codeE]+0x1f): undefined reference to `boost::filesystem::directory_entry::m_get_status(boost::system::error_code*) const'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::directory_entry::symlink_status(boost::system::error_code&) const':
> files.cpp:(.text._ZNK5boost10filesystem15directory_entry14symlink_statusERNS_6system10error_codeE[_ZNK5boost10filesystem15directory_entry14symlink_statusERNS_6system10error_codeE]+0x1f): undefined reference to `boost::filesystem::directory_entry::m_get_symlink_status(boost::system::error_code*) const'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::detail::dir_itr_imp::~dir_itr_imp()':
> files.cpp:(.text._ZN5boost10filesystem6detail11dir_itr_impD2Ev[_ZN5boost10filesystem6detail11dir_itr_impD5Ev]+0x24): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&)':
> files.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathE]+0x55): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&, boost::system::error_code&)':
> files.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathERNS_6system10error_codeE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathERNS_6system10error_codeE]+0x58): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::directory_iterator::increment()':
> files.cpp:(.text._ZN5boost10filesystem18directory_iterator9incrementEv[_ZN5boost10filesystem18directory_iterator9incrementEv]+0x19): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'
> /tmp/ccK4GdOX.o: In function `boost::filesystem::path::path<boost::filesystem::directory_entry>(boost::filesystem::directory_entry const&, boost::enable_if<boost::filesystem::path_traits::is_pathable<boost::decay<boost::filesystem::directory_entry>::type>, void>::type*)':
> files.cpp:(.text._ZN5boost10filesystem4pathC2INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE[_ZN5boost10filesystem4pathC5INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE]+0x30): undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
> /tmp/cckfbY9Y.o: In function `__static_initialization_and_destruction_0(int, int)':
> img.cpp:(.text+0x3c33): undefined reference to `boost::system::generic_category()'
> img.cpp:(.text+0x3c3f): undefined reference to `boost::system::generic_category()'
> img.cpp:(.text+0x3c4b): undefined reference to `boost::system::system_category()'
> /tmp/ccUJjOh6.o: In function `__static_initialization_and_destruction_0(int, int)':
> main.cpp:(.text+0x11a): undefined reference to `boost::system::generic_category()'
> main.cpp:(.text+0x126): undefined reference to `boost::system::generic_category()'
> main.cpp:(.text+0x132): undefined reference to `boost::system::system_category()'
> /tmp/cch4qBkj.o: In function `__static_initialization_and_destruction_0(int, int)':
> options.cpp:(.text+0xd3d): undefined reference to `boost::system::generic_category()'
> options.cpp:(.text+0xd49): undefined reference to `boost::system::generic_category()'
> options.cpp:(.text+0xd55): undefined reference to `boost::system::system_category()'
> /tmp/cccqS6zC.o: In function `__static_initialization_and_destruction_0(int, int)':
> timers.cpp:(.text+0x312): undefined reference to `boost::system::generic_category()'
> timers.cpp:(.text+0x31e): undefined reference to `boost::system::generic_category()'
> timers.cpp:(.text+0x32a): undefined reference to `boost::system::system_category()'
> collect2: error: ld returned 1 exit status
> Makefile:7: recipe for target 'mh5000' failed
> make[1]: *** [mh5000] Error 1
 
Old 04-17-2018, 07:29 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
needed to redo a bit of the make file to get it to work.
 
  


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
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
AWN Quit/Logout applet not working (Peppermint Linux Openbox+CCM+AWN) linuxlicious Linux - Desktop 1 07-08-2011 06:07 PM
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 12:51 PM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 11:33 AM

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

All times are GMT -5. The time now is 05:20 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