BUG rtorrent: Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete type
I am running ppc Darwin 7.9.0. Apparently, /usr/include/sys/resource.h is bungled?
$ sudo port install rtorrent
---> Building libtorrent with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_libtorrent/work/libtorrent-0.10.3" && make all" returned error 2
Command output: make all-recursive
Making all in src
Making all in torrent
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -I/opt/local/include -g -DDEBUG -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT chunk_manager.lo -MD -MP -MF ".deps/chunk_manager.Tpo" -c -o chunk_manager.lo chunk_manager.cc; \
then mv -f ".deps/chunk_manager.Tpo" ".deps/chunk_manager.Plo"; else rm -f ".deps/chunk_manager.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -I/opt/local/include -g -DDEBUG -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c chunk_manager.cc -fno-common -DPIC -o .libs/chunk_manager.o
In file included from chunk_manager.cc:40:
/usr/include/sys/resource.h:81: error: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:82: error: field `ru_stime' has incomplete type
make[3]: *** [chunk_manager.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: The following dependencies failed to build: libtorrent ncurses ncursesw
Error: Status 1 encountered during processing.
Adding #include <sys/time.h>
to the top of /usr/include/sys/resource.h fixed the problem, but perhaps there is a way to do this with gcc flags instead of editing system headers?
Change History (6)
Summary: |
Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete type →
BUG rtorrent: Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete type
|
Owner: |
changed from macports-dev@… to imajes@…
|
Cc: |
markd@… added
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
I just installed rtorrent 0.7.4 on 10.3, so the current version works fine.