installation of bnbt fails

John Maclean jayeola at gmail.com
Mon Apr 26 18:22:12 PDT 2010


On 26/04/2010 23:04, Ryan Schmidt wrote:
> 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.
>
>
>    
done ! works! thanks! bed!!

sudo port install bnbt -t
Password:
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for bnbt
--->  Fetching bnbt
--->  Verifying checksum(s) for bnbt
--->  Extracting bnbt
--->  Applying patches to bnbt
--->  Configuring bnbt
--->  Building bnbt
--->  Staging bnbt into destroot
--->  Installing bnbt @8.1r3_0
--->  Activating bnbt @8.1r3_0
--->  Cleaning bnbt



More information about the macports-users mailing list