[MacPorts] #27858: libtorrent-rasterbar @0.15.4 configure failure
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- 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" }}} -- Ticket URL: <https://trac.macports.org/ticket/27858> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libtorrent-rasterbar --------------------------------+------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => devans@… * port: => libtorrent-rasterbar Comment: Please remember to fill in the Port field and to Cc the port's maintainer. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libtorrent-rasterbar --------------------------------+------------------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libtorrent-rasterbar --------------------------------+------------------------------------------- Comment(by tanks4dat@…): Replying to [comment:2 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. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libtorrent-rasterbar --------------------------------+------------------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure --------------------------------+------------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libtorrent-rasterbar --------------------------------+------------------------------------------- Comment(by tanks4dat@…): I am not sure if it matters but I should state that I am using gcc 4.0. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27858: libtorrent-rasterbar @0.15.4 configure failure -----------------------------------+---------------------------------------- Reporter: msm@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: libtorrent-rasterbar | -----------------------------------+---------------------------------------- Changes (by cal@…): * status: new => closed * resolution: => fixed Comment: Committed in r81068. -- Ticket URL: <https://trac.macports.org/ticket/27858#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts