installation of bnbt fails
Ryan Schmidt
ryandesign at macports.org
Mon Apr 26 15:04:48 PDT 2010
On Apr 26, 2010, at 16:49, John Maclean wrote:
> 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
Thanks for reporting the problem. I fixed it in r66956. In half an hour, use "sudo port selfupdate" and try again.
More information about the macports-users
mailing list