rtorrent with libtorrent doens't compile

Patrik Johansson patjoh at itstud.chalmers.se
Wed Feb 7 05:40:54 PST 2007

I'm trying to install rtorrent but it doens't 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 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[4]: *** [chunk_manager.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for libtorrent): 
com.apple.activate com.apple.build com.apple.destroot com.apple.archive 
Error: The following dependencies failed to build: libtorrent
Error: Status 1 encountered during processing.

Macport version: 1.320
OSX-version: 10.3.9
Plattform: PPC

Any ideas how I can fix this?

//Patrik J

More information about the macports-users mailing list