Opened 18 years ago

Closed 17 years ago

Last modified 16 years ago

#11236 closed defect (fixed)

BUG rtorrent: Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete type

Reported by: mike@… Owned by: imajes@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: rtorrent resource.h ru_utime ru_stime Cc: markd@…
Port:

Description

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)

comment:1 Changed 18 years ago by pguyot (Paul Guyot)

Component: baseports

comment:2 Changed 18 years ago by pguyot (Paul Guyot)

Summary: Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete typeBUG rtorrent: Build fails in chunk_manager.lo: ru_utime and ru_stime have incomplete type

comment:3 Changed 18 years ago by pipping@…

Milestone: Port Bugs

comment:4 Changed 18 years ago by pguyot (Paul Guyot)

Owner: changed from macports-dev@… to imajes@…

comment:5 Changed 17 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

I just installed rtorrent 0.7.4 on 10.3, so the current version works fine.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.