Libboost Dependency Issue, solved

Post Reply
CHAØX
Posts: 6
Joined: Sun Jan 04, 2015 9:29 pm
os: linux

Libboost Dependency Issue, solved

Post by CHAØX »

Hello!

I've been really wanting to start playing around with namecoin but have not been able to install it due to this issue.

Code: Select all

The following packages have unmet dependencies:
 namecoin : Depends: libboost-filesystem1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-program-options1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-system1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-thread1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libminiupnpc5 but it is not installable
E: Unable to correct problems, you have held broken packages.
Right now, I have the latest version of boost installed. I have tried to download and compiled the older version of this library available here; http://www.boost.org/users/history/version_1_49_0.html but cannot seem to get it to work. On top of this, when it compiles I get a very, very long list of errors compiling certain parts of the library.

This problem seems to be a little over my head at this time. No, I did not try uninstalling boost 1.57 because I do not want to break anything that currently depends on the latest library. I need to be able to run both libraries, or I need to apply bandaids to namecoin's source to support the latest library. It would be a good excuse to learn C++...

Specific information about my system:

Code: Select all

Linux toshiba-satellite-l655 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

cat /etc/issue
Linux Mint 17.1 Rebecca \n \l

The older library of libboost compiled all of the necessary libraries except for thread. Thread had a number of bugs that I've been working on patching by implementing the changes found here: https://svn.boost.org/trac/boost/changeset/78973#file3

I am still working through this list, but these are the remaining bugs that need to be patched: http://pastebin.com/jHYxDsdM

Is there a better way to get namecoin to work with these other flavors of debian distributions? Perhaps a specific backport repository?

Meanwhile, I will continue working through and post whatever solution here.

Cheers
Last edited by CHAØX on Sat Jan 17, 2015 11:54 am, edited 1 time in total.

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Libboost Dependency Issue

Post by biolizard89 »

Hi,

Can you try with Namecore? https://github.com/domob1812/namecore

It's based on a much newer version of Bitcoin, so it might have a fix for the issue you're encountering. Be warned that it's experimental (although a large pool is successfully using it in production).

Cheers.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

CHAØX
Posts: 6
Joined: Sun Jan 04, 2015 9:29 pm
os: linux

Re: Libboost Dependency Issue

Post by CHAØX »

Still having problems.

Code: Select all

make: *** No targets specified and no makefile found.  Stop.
Errors from autogen...

Code: Select all

Makefile.am:62: warning: source file 'src/bench_inv.c' is in a subdirectory,
Makefile.am:62: but option 'subdir-objects' is disabled
Makefile.am:56: warning: source file 'src/bench_recover.c' is in a subdirectory,
Makefile.am:56: but option 'subdir-objects' is disabled
Makefile.am:59: warning: source file 'src/bench_sign.c' is in a subdirectory,
Makefile.am:59: but option 'subdir-objects' is disabled
Makefile.am:53: warning: source file 'src/bench_verify.c' is in a subdirectory,
Makefile.am:53: but option 'subdir-objects' is disabled
Makefile.am:70: warning: source file 'src/tests.c' is in a subdirectory,
Makefile.am:70: but option 'subdir-objects' is disabled
Full Terminal Output: http://pastebin.com/LvEhiRFS

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Libboost Dependency Issue

Post by biolizard89 »

@domob, can you help out here?
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

CHAØX
Posts: 6
Joined: Sun Jan 04, 2015 9:29 pm
os: linux

Re: Libboost Dependency Issue

Post by CHAØX »

I've been doing a little research on google meanwhile.

The problem seems to be within either ./configure.ac or ./Makefile.in.

However, I am not sure if these files simply being in their respective subdirectories is really what is disrupting this build as their seems to be a line that enables a recursive option within configure...

Code: Select all

./configure Lines 1760-1766

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.
=====================
Defines current directory as subdir, dafuq?

Code: Select all

./Makefile.in Line 81

subdir = .
=====================
However, this option seems to be available for the autogen BASH script

Code: Select all

./Makefile.in Line 466

subdirs= @subdirs@
very, very much like srcdir.

Thoughts?

pmc
Posts: 73
Joined: Thu Oct 03, 2013 8:50 pm
Location: Germany
Contact:

Re: Libboost Dependency Issue

Post by pmc »

CHAØX wrote: I've been really wanting to start playing around with namecoin but have not been able to install it due to this issue.

Code: Select all

The following packages have unmet dependencies:
 namecoin : Depends: libboost-filesystem1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-program-options1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-system1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libboost-thread1.49.0 (>= 1.49.0-1) but it is not installable
            Depends: libminiupnpc5 but it is not installable
E: Unable to correct problems, you have held broken packages.
Right now, I have the latest version of boost installed.
Are you talking about the Ubuntu namecoin packages from my OBS repo? Which Ubuntu version are you using? Have you selected the correct repo URL for your version?

CHAØX
Posts: 6
Joined: Sun Jan 04, 2015 9:29 pm
os: linux

Re: Libboost Dependency Issue

Post by CHAØX »

pmc wrote:
Are you talking about the Ubuntu namecoin packages from my OBS repo? Which Ubuntu version are you using? Have you selected the correct repo URL for your version?
Specific information about my system:

Code: Select all

Linux toshiba-satellite-l655 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

cat /etc/issue
Linux Mint 17.1 Rebecca \n \l
I am compiling the release of the namecore package from source as Biohazzard prescribed above.

Thanks.

Edit, though it would be nice to also include the current apt sources.list I have:

Code: Select all

#deb http://packages.linuxmint.com/pool/main/ main non-free
#deb http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu utopic main 
#deb-src http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu utopic main
deb http://packages.linuxmint.com/ rebecca main upstream import
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
deb http://ftp.at.debian.org/debian-backports/ squeeze-backports main 

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Libboost Dependency Issue

Post by biolizard89 »

You might want to glance at the example build scripts to verify that you're building things properly.

https://github.com/domob1812/namecore/b ... travis.yml
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

CHAØX
Posts: 6
Joined: Sun Jan 04, 2015 9:29 pm
os: linux

Re: Libboost Dependency Issue

Post by CHAØX »

I'm a little confused because most of the libraries I installed from aptitude. The only library I built was boost, but that was for the stable release of namecoin.

Also, the travis.yml files are different.

Code: Select all

This is the raw paste from github,
=================
[~] 
(01:41:44)-(cha0x)-(529)-> md5sum travis.yml 
81cda3ea5c7826176087fd14c82bb4f9  travis.yml

This is the file within the namecore package,
=================
[~/Downloads/namecore-master] 
(01:41:08)-(cha0x)-(520)-> md5sum travis.yml 
28d5414d4d58b3cc919d46cf8d99bac8  travis.yml

note: travis.yml would normally be hidden, but I changed this to make sure the name of the file would not interfere with md5sum comparison. 
Do I replace the file within the package?
Is there a way I can get verbose information about any potentially broken or missing libraries from the output of configure?
I do not exactly see what I am supposed to take from this file as I am not as familiar with C++ as I would like to be. Perhaps tell me which line I should be looking at for as I can see it seems to manage, and install missing dependencies?

EDIT; Also, for everyone's information I am running the bitcoin-qt wallet without dependency issues. However, it would be the latest bitcoin-qt wallet and namecoin was from an older version of the wallet. iirc the two relied on similar dependencies unless I am missing something.

EDIT 2: I managed to get this working by using the debian packages. Specifically, http://download.opensuse.org/repositori ... _amd64.deb - I would have tried these sooner but I did not see them before.

Thanks.

Post Reply