Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#16063 closed defect (fixed)

BNBT fails to build

Reported by: calle.kabo@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: bnbt Cc:
Port:

Description

I get the following output when typing "sudo port install bnbt"

--->  Fetching bnbt
--->  Attempting to fetch bnbt81b-3-sf.zip from http://downloads.sourceforge.net/bnbt
--->  Verifying checksum(s) for bnbt
--->  Extracting bnbt
--->  Configuring bnbt
--->  Building bnbt with target 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" && make bnbt " returned error 2
Command output: g++ -o atom.o  -O2 -flat_namespace  -D__APPLE__ -I. -c atom.cpp
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

Error: Status 1 encountered during processing.

:/

Change History (5)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Milestone: Port Bugs

comment:2 Changed 11 years ago by calle.kabo@…

I managed to get the compile to work by changing line 155 from "typedef int socklen_t;" to "typedef darwin_socklen_t socklen_t;" Install worked :)

comment:3 Changed 11 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

There seems to be no problem installing bnbt on Mac OS X 10.4.11 with Xcode 2.5, but I do see the problem with Mac OS X 10.5.4 and Xcode 3.0.

P.S: Remember WikiFormatting.

comment:4 Changed 11 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

Ah, I see. A patch was added to fix this issue on Tiger in r11749 but that broke the build on Panther. So in r11762 the patch was changed to only apply to Tiger. I have now added the patch for Leopard as well in r38565. Thanks for reporting this problem.

comment:5 Changed 10 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.