installation of bnbt fails
John Maclean
jayeola at gmail.com
Mon Apr 26 14:49:22 PDT 2010
can any one help by telling me what I can do to overcome this error?
sudo port install bnbt -d
---> Computing dependencies for bnbt
---> Fetching bnbt
---> Verifying checksum(s) for bnbt
---> Extracting bnbt
---> Configuring bnbt
---> Building bnbt
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bnbt/work/bnbt/src"
&& /usr/bin/make -j2 bnbt " returned error 2
Command output: g++ -o atom.o -O2 -flat_namespace -D__APPLE__ -I. -c
atom.cpp
g++ -o base64.o -O2 -flat_namespace -D__APPLE__ -I. -c base64.cpp
g++ -o bencode.o -O2 -flat_namespace -D__APPLE__ -I. -c bencode.cpp
In file included from atom.cpp:22:
bnbt.h:145: error: conflicting declaration 'typedef int socklen_t'
/usr/include/sys/socket.h:108: error: 'socklen_t' has a previous
declaration as 'typedef __darwin_socklen_t socklen_t'
make: *** [atom.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bencode.cpp:22:
bnbt.h:145: error: conflicting declaration 'typedef int socklen_t'
/usr/include/sys/socket.h:108: error: 'socklen_t' has a previous
declaration as 'typedef __darwin_socklen_t socklen_t'
make: *** [bencode.o] Error 1
Error: Status 1 encountered during processing.
More information about the macports-users
mailing list