Opened 14 years ago

Closed 13 years ago

#27858 closed defect (fixed)

libtorrent-rasterbar @0.15.4 configure failure

Reported by: msm@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: neverpanic (Clemens Lang)
Port: libtorrent-rasterbar

Description

while attempting to install libtorrent-rasterbar via the command sudo port -v install libtorrent-rasterbar I am presented with a configure failure. here is a portion of the output, specifically where the configure fails:

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent-rasterbar/work/libtorrent-rasterbar-0.15.4" && ./configure --prefix=/opt/local --disable-silent-rules --enable-python-binding --enable-geoip --with-libgeoip " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for libtorrent-rasterbar): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Failed to install libtorrent-rasterbar
Log for libtorrent-rasterbar is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent-rasterbar/main.log
Error: The following dependencies were not installed: libtorrent-rasterbar py26-gtk libglade2 py26-notify-python libnotify
Error: Status 1 encountered during processing.

a solution that worked for me is to add the following line to the configure.args section of the Portfile

--with-boost-libdir="/opt/local/lib"

Change History (9)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to devans@…
Port: libtorrent-rasterbar added

Please remember to fill in the Port field and to Cc the port's maintainer.

comment:2 Changed 13 years ago by tanks4dat@…

I encountered the same configuration error when attempting to compile libtorrent-rasterbar @0.15.6. I incorrectly filled a new ticket, #29779. I should have added new information to the existing ticket when there is one, rather than opening a duplicate.

while attempting to install libtorrent-rasterbar by the command sudo port install libtorrent-rasterbar the terminal presents a configure failure. Here is the portion of the output where the configure fails:

info:configure Checking for boost libraries:
:info:configure checking for boostlib >= 1.36... yes
:info:configure checking whether the Boost::System library is available...yes
:info:configure configure: error: Boost.System library not found. Try
using --with-boost-system=lib

I tried

sudo port install libtorrent-rasterbar --with-boost-system=lib

failure

Ticket #27858 documents the same problem, but the solution presented:

a solution that worked for me is to add the following line to the
configure.args section of the Portfile

--with-boost-libdir="/opt/local/lib"

did not work for me. rasterbar still fails to find the boost.system library.

Reading the libtorrent manual found at libtorrent-rasterbar-0.15.6/docs/building.html (/opt/local/var/macports/build_opt_local_var_macports_sources_rsync.macports.org _release_ports_net_libtorrent-rasterbar/work/libtorrent-rasterbar-0.15.6/docs/building.html if you want to find it in the macports /opt filesystem) I read this

when installing boost on darwin using darwinports (the package system based on BSD ports) 
all libraries are installed to /opt/local/lib and headers are installed to /opt/local/include. 
By default the compiler will not look in these directories. You have to set the enviornment 
variables LDFLAGS and CXXFLAGS in order to make the compiler find those libs. In this 
example you'd set them like this:

export LDFLAGS=-L/opt/local/lib
export CXXFLAGS=-I/opt/local/include

In my instance this failed.

I continue to work on a solution.

comment:3 Changed 13 years ago by tanks4dat@…

Cc: tanks4dat@… added

Cc Me!

comment:4 Changed 13 years ago by tanks4dat@…

Cc: tanks4dat@… removed

Cc Me!

comment:5 in reply to:  2 Changed 13 years ago by tanks4dat@…

Replying to tanks4dat@…:

I encountered the same configuration error when attempting to compile libtorrent-rasterbar @0.15.6. I incorrectly filled a new ticket, #29779. I should have added new information to the existing ticket when there is one, rather than opening a duplicate.

while attempting to install libtorrent-rasterbar by the command sudo port install libtorrent-rasterbar the terminal presents a configure failure. Here is the portion of the output where the configure fails:

info:configure Checking for boost libraries:
:info:configure checking for boostlib >= 1.36... yes
:info:configure checking whether the Boost::System library is available...yes
:info:configure configure: error: Boost.System library not found. Try
using --with-boost-system=lib

I tried

sudo port install libtorrent-rasterbar --with-boost-system=lib

failure

Ticket #27858 documents the same problem, but the solution presented:

a solution that worked for me is to add the following line to the
configure.args section of the Portfile

--with-boost-libdir="/opt/local/lib"

did not work for me. rasterbar still fails to find the boost.system library.

Reading the libtorrent manual found at libtorrent-rasterbar-0.15.6/docs/building.html (/opt/local/var/macports/build_opt_local_var_macports_sources_rsync.macports.org _release_ports_net_libtorrent-rasterbar/work/libtorrent-rasterbar-0.15.6/docs/building.html if you want to find it in the macports /opt filesystem) I read this

when installing boost on darwin using darwinports (the package system based on BSD ports) 
all libraries are installed to /opt/local/lib and headers are installed to /opt/local/include. 
By default the compiler will not look in these directories. You have to set the enviornment 
variables LDFLAGS and CXXFLAGS in order to make the compiler find those libs. In this 
example you'd set them like this:

export LDFLAGS=-L/opt/local/lib
export CXXFLAGS=-I/opt/local/include

In my instance this failed.

I continue to work on a solution.

This is as far as I can get. I don't know how to fix this.

comment:6 Changed 13 years ago by tanks4dat@…

Sorry about the above mess. I made a mistake in my ticket comment. I wish there was a way to delete that. It is really ugly.

Regarding the above problem. I started fresh. I did

export LDFLAGS=-L/opt/local/lib
export CXXFLAGS=-I/opt/local/include

Then I went to the configure.args section of the Portfile and substituted

--with-boost-libdir="/opt/local/lib"

with

--with-boost-system=lib

I then did

sudo port install libtorrent-rasterbar

and the results in the config.log was a WARNING

info:configure checking for the pthreads library -lpthreads... no
:info:configure checking whether pthreads work without any flags... yes
:info:configure checking for joinable pthread attribute... PTHREAD_CREATE_JOINABL
E
:info:configure checking if more special flags are required for pthreads... -D_TH
READ_SAFE
:info:configure checking whether to check for GCC pthread/shared inconsistencies.
.. no
:info:configure checking whether -pthread is sufficient with -shared... no
:info:configure checking whether -lpthread fixes that... no
:info:configure checking whether -lc_r fixes that... no
:info:configure configure: WARNING: Impossible to determine how to use pthreads w
ith shared libraries

Then, information is given about the boost libraries:

:info:configure Checking for boost libraries:
:info:configure checking for boostlib >= 1.36... yes
:info:configure checking whether the Boost::System library is available... yes
:info:configure checking for exit in -llib... no
:info:configure checking for exit in -lboost_system-lib... no
:info:configure configure: error: Could not link against boost_system-lib !

So I think that configure is finding the libraries now, but it can't link to them. Is that correct or incorrect? I am stuck at this point.

comment:7 Changed 13 years ago by tanks4dat@…

I am not sure if it matters but I should state that I am using gcc 4.0.

comment:8 Changed 13 years ago by neverpanic (Clemens Lang)

Cc: cal@… added

Cc Me!

comment:9 Changed 13 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

Committed in r81068.

Note: See TracTickets for help on using tickets.