Ticket #21 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

libtorrent-0.7.0 fails on OpenBSD

Reported by: Han Owned by: rakshasa
Priority: normal Component: libtorrent
Version: Severity: normal
Keywords: builderror Cc:

Description

I just got this error while building libtorrent on OpenBSD-recentsnapshot.

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -Wall -DNDEBUG -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -c file.cc -MT file.lo -MD -MP -MF .deps/file.TPlo -fPIC -DPIC -o file.lo file.cc: In member function `void torrent::File::close()': file.cc:94: error: `::close' undeclared (first use here) file.cc: In member function `torrent::MemoryChunk? torrent::File::get_chunk(long

long int, unsigned int, int, int) const':

file.cc:153: error: `getpagesize' undeclared (first use this function) file.cc:153: error: (Each undeclared identifier is reported only once for each

function it appears in.)

Change History

Changed 7 years ago by rakshasa

Just add "#include <unistd.h>", i thought i had included all the nessesary sys/* headers, forgot about getpagesize(). ;(

Changed 7 years ago by anonymous

rtorrent-0.3.0

main.cc signal_handler.cc

are missing <sys/signal.h>

Changed 7 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.