Author

Topic: Coin Compile - Help Needed, (Read 2616 times)

full member
Activity: 120
Merit: 100
March 30, 2015, 09:50:27 AM
#10
hi, old topic but same error  Huh

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  Undecided

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

legendary
Activity: 882
Merit: 1000
September 16, 2014, 04:28:37 AM
#9
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.
full member
Activity: 192
Merit: 100
paccoin
September 15, 2014, 11:46:51 PM
#8
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.
hero member
Activity: 504
Merit: 500
July 30, 2014, 09:02:53 AM
#7
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?
hero member
Activity: 504
Merit: 500
July 30, 2014, 09:01:56 AM
#6
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?
hero member
Activity: 504
Merit: 500
July 30, 2014, 09:01:18 AM
#5
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.
full member
Activity: 192
Merit: 100
paccoin
July 30, 2014, 02:49:29 AM
#4
It looks like boost isn't configured properly. Make sure you install the version your software needs.
sr. member
Activity: 280
Merit: 250
July 29, 2014, 10:27:41 PM
#3
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.
legendary
Activity: 1316
Merit: 1000
July 29, 2014, 10:14:21 PM
#2
Have you tried just:

#apt-get install libboost-all-dev

Then

$ make -f makefile.unix USE_UPNP=-
hero member
Activity: 504
Merit: 500
July 29, 2014, 06:26:05 PM
#1
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/= >':
/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::allocator > >(std::basic_string, std::allocator > const&, std::codecvt 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

Jump to: