Problem att kompilera libtorrent
Hej
Jag har problem med att kompilera libtorrent.
När jag skrivit configure så rullar det på bra i några minuter
för att sedan ge mig ett jätte stort error medelande som inte
jag förstår mig på vad som är fel.
root@renji:/home/granden/source/libtorrent-0.8.0# make
make all-recursive
make[1]: Entering directory `/home/granden/source/libtorrent-0.8.0'
Making all in src
make[2]: Entering directory `/home/granden/source/libtorrent-0.8.0/src'
Making all in torrent
make[3]: Entering directory `/home/granden/source/libtorrent-0.8.0/src/torrent'
if /bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -g -O2 -g -DDEBUG -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -MT http.lo -MD -MP -MF ".deps/http.Tpo" -c -o http.lo http.cc; \
then mv -f ".deps/http.Tpo" ".deps/http.Plo"; else rm -f ".deps/http.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -g -O2 -g -DDEBUG -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.cc -fPIC -DPIC -o .libs/http.o
In file included from http.cc:40:
http.h:71: error: syntax error before `)' token
http.h:72: error: semicolon missing after declaration of `torrent::Http'
http.h: In constructor `torrent::Http::Http()':
http.h:56: error: class `torrent::Http' does not have any field named `m_stream
'
http.h:56: error: class `torrent::Http' does not have any field named `
m_timeout'
http.h: In member function `const std::string& torrent::Http::url() const':
http.h:64: error: `m_url' undeclared (first use this function)
http.h:64: error: (Each undeclared identifier is reported only once for each
function it appears in.)
http.h: In member function `std::iostream* torrent::Http::stream()':
http.h:68: error: `m_stream' undeclared (first use this function)
http.h: At global scope:
http.h:72: error: `uint32_t' was not declared in this scope
http.h:72: error: syntax error before `)' token
http.h:72: error: ISO C++ forbids defining types within return type
http.h:72: error: two or more data types in declaration of `set_timeout'
http.h:72: error: semicolon missing after declaration of `class torrent::Http'
http.h: In function `int torrent::set_timeout(...)':
http.h:72: error: `m_timeout' undeclared (first use this function)
http.h:72: error: `seconds' undeclared (first use this function)
http.h: At global scope:
http.h:74: error: syntax error before `&' token
http.h:75: error: syntax error before `&' token
http.h:78: error: syntax error before `&' token
http.h:83: error: syntax error before `*' token
http.h:88: error: 'uint32_t' is used as a type, but is not defined as a type.
http.h:90: error: 'Signal' is used as a type, but is not defined as a type.
http.h:91: error: 'SignalString' is used as a type, but is not defined as a
type.
http.h:93: error: syntax error before `private'
http.h:95: error: syntax error before `&' token
http.h:95: error: `void operator=(...)' must be a nonstatic member function
http.h:95: error: `void operator=(...)' must take exactly two arguments
http.h:97: error: syntax error before `;' token
http.cc:44: error: `sigc::slot0<torrent::Http*> torrent::Http::m_factory' is
not a static member of `class torrent::Http'
http.cc:50: error: no `void torrent::Http::set_factory(const
sigc::slot0<torrent::Http*>&)' member function declared in class `
torrent::Http'
http.cc: In member function `void torrent::Http::set_factory(const
sigc::slot0<torrent::Http*>&)':
http.cc:51: error: `m_factory' undeclared (first use this function)
http.cc: At global scope:
http.cc:55: error: no `torrent::Http* torrent::Http::call_factory()' member
function declared in class `torrent::Http'
make[3]: *** [http.lo] Error 1
make[3]: Leaving directory `/home/granden/source/libtorrent-0.8.0/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/granden/source/libtorrent-0.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/granden/source/libtorrent-0.8.0'
make: *** [all] Error 2
root@renji:/home/granden/source/libtorrent-0.8.0#
EDIT: Vet inte om det har så stor betydelse men det rullar Slackware 10.2 på burken.
EDIT2: Fixade code-rutan.
EDIT3: Det var inte under make utan configure