Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: rhkazani1 on July 29, 2014, 11:26:05 PM



Title: Coin Compile - Help Needed,
Post by: rhkazani1 on July 29, 2014, 11:26:05 PM
I am trying to compile a coin source on Ubuntu and Debian and i am getting the same error,

Once i put in this command:

make -f makefile.unix USE_UPNP=-

I get the following:

/usr/local/include/boost/thread/detail/thread.hpp:180: undefined reference to `boost::thread::start_thread_noexcept()'
obj/walletdb.o: In function `operator/':
/usr/local/include/boost/filesystem/path.hpp:648: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
obj/walletdb.o: In function `is_directory':
/usr/local/include/boost/filesystem/operations.hpp:294: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
obj/walletdb.o: In function `copy_file':
/usr/local/include/boost/filesystem/operations.hpp:381: undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option::enum_type, boost::system::error_code*)'
obj/walletdb.o: In function `operator/=<std::basic_string<char> >':
/usr/local/include/boost/filesystem/path.hpp:302: undefined reference to `boost::filesystem::path::codecvt()'
obj/walletdb.o: In function `boost::filesystem::path& boost::filesystem::path::append<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::codecvt<wchar_t, char, __mbstate_t> const&)':
/usr/local/include/boost/filesystem/path.hpp:707: undefined reference to `boost::filesystem::path::m_append_separator_if_needed()'
/usr/local/include/boost/filesystem/path.hpp:710: undefined reference to `boost::filesystem::path::m_erase_redundant_separator(unsigned long)'
obj/leveldb.o: In function `create_directory':
/usr/local/include/boost/filesystem/operations.hpp:405: undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)'
obj/txdb.o: In function `operator/':
/usr/local/include/boost/filesystem/path.hpp:648: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/local/include/boost/filesystem/path.hpp:648: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/local/include/boost/filesystem/path.hpp:648: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
collect2: ld returned 1 exit status
make: *** [quatlood] Error 1


I was referring to the guide on github:

https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#compile

Everything works smooth, but as soon as i compile the wallet i get the above error.

I have also installed the following:

Installing Boost (A Collection of C++ Libraries)
cd /usr/local/src
wget http://downloads.sourceforge.net/boost/boost_1_55_0.tar.bz2
bunzip2 boost_1_55_0.tar.bz2
tar xf boost_1_55_0.tar
cd boost_1_55_0/
./bootstrap.sh --prefix=/usr/local
./b2 install --with=all

BerkeleyDB (A Library for High-Performance Database Functionality)
cd /usr/local/src
wget -qO- http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz | tar xz
cd db-5.1.19/build_unix
../dist/configure --prefix=/usr/local --enable-cxx
make && make install



Title: Re: Coin Compile - Help Needed,
Post by: ethought on July 30, 2014, 03:14:21 AM
Have you tried just:

#apt-get install libboost-all-dev

Then

$ make -f makefile.unix USE_UPNP=-


Title: Re: Coin Compile - Help Needed,
Post by: Lucky Cris on July 30, 2014, 03:27:41 AM
I haven't seen this one specifically, but usually when I get those lboost errors I'm able to mitigate them by modifying the couple of lines in the makefile that references them. But your error looks like it may be related to not being able to locate the libraries maybe? What version of boost is needed for the coin? The majority I compile don't use 1.55.


Title: Re: Coin Compile - Help Needed,
Post by: wmcorless on July 30, 2014, 07:49:29 AM
It looks like boost isn't configured properly. Make sure you install the version your software needs.


Title: Re: Coin Compile - Help Needed,
Post by: rhkazani1 on July 30, 2014, 02:01:18 PM
Have you tried just:

#apt-get install libboost-all-dev

Then

$ make -f makefile.unix USE_UPNP=-

Yes i get this when i run -all-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libboost-all-dev : Depends: libboost-dev but it is not going to be installed
                    Depends: libboost-date-time-dev but it is not going to be installed
                    Depends: libboost-filesystem-dev but it is not going to be installed
                    Depends: libboost-graph-dev but it is not going to be installed
                    Depends: libboost-graph-parallel-dev but it is not going to be installed
                    Depends: libboost-iostreams-dev but it is not going to be installed
                    Depends: libboost-math-dev but it is not going to be installed
                    Depends: libboost-mpi-dev but it is not going to be installed
                    Depends: libboost-mpi-python-dev but it is not going to be installed
                    Depends: libboost-program-options-dev but it is not going to be installed
                    Depends: libboost-python-dev but it is not going to be installed
                    Depends: libboost-regex-dev but it is not going to be installed
                    Depends: libboost-serialization-dev but it is not going to be installed
                    Depends: libboost-signals-dev but it is not going to be installed
                    Depends: libboost-system-dev but it is not going to be installed
                    Depends: libboost-test-dev but it is not going to be installed
                    Depends: libboost-thread-dev but it is not going to be installed
                    Depends: libboost-wave-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Title: Re: Coin Compile - Help Needed,
Post by: rhkazani1 on July 30, 2014, 02:01:56 PM
I haven't seen this one specifically, but usually when I get those lboost errors I'm able to mitigate them by modifying the couple of lines in the makefile that references them. But your error looks like it may be related to not being able to locate the libraries maybe? What version of boost is needed for the coin? The majority I compile don't use 1.55.

Correct, i think it cant locate, i dont know how to point it to boost lib, any idea?


Title: Re: Coin Compile - Help Needed,
Post by: rhkazani1 on July 30, 2014, 02:02:53 PM
It looks like boost isn't configured properly. Make sure you install the version your software needs.

I installed the latest one, do you think installing older version would mitigate the error?


Title: Re: Coin Compile - Help Needed,
Post by: wmcorless on September 16, 2014, 04:46:51 AM
I installed the latest one, do you think installing older version would mitigate the error?

Yes you should try the one that the software requires.


Title: Re: Coin Compile - Help Needed,
Post by: barwizi on September 16, 2014, 09:28:37 AM
Which Ubuntu? are you sure your ppas' are correct?


Quote
Unable to correct problems, you have held broken packages.
Try removing all the boost libs installed and start afresh.

Is this a local machine or a server? If local i would suggest you use 14.04 and start from scratch. And if you are new to using bash just copy paste this line and press ret.

Code:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install libjansson4 cmake qt4-qmake libgmp3-dev autotools-dev nautilus-open-terminal autoconf curl dos2unix libtool libcurl4-openssl-dev mesa-utils libncurses5-dev libboost-all-dev python3-pycurl python-simplejson python3-urllib3 python-beautifulsoup python-numpy-dev python3-numpy-dev libssl-dev libminiupnpc-dev libdb++-dev git qt-sdk openssh-server cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases lib32gcc1 libc6 libcurl4-openssl-dev libncurses5-dev pkg-config automake qt5-qmake 

You can edit out the stuff you dont use, but basically this line sets up any ubuntu i have used for development and testing of coins.


Title: Re: Coin Compile - Help Needed,
Post by: Leveilleur on March 30, 2015, 02:50:27 PM
hi, old topic but same error  ???

Do you think the origin of problem is Debian   7 32 bits version  ?

I can run other wallet pre-compiled without any problems, its just for compilation  :-\

Quote

ls :
build           COPYING  Makefile        qrc_logo.cpp   src
cannabiscoin.conf    doc      qrc_background.cpp  README.md
cannabiscoin-qt.pro  INSTALL  qrc_bitcoin.cpp     share




Quote
qmake "USE_UPNP=-"
make

Return

Quote

build/leveldb.o: In function `CLevelDB::CLevelDB(boost::filesystem::path const&, unsigned int, bool, bool)':
leveldb.cpp:(.text+0x390): undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make: *** [CannabisCoin-qt] Erreur 1