Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #16063 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

BNBT fails to build

Reported by: calle.kabo@… Owned by: ryandesign@…
Priority: Normal Milestone: Port Bugs
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

Changed 5 months ago by jmr@…

  • milestone set to Port Bugs

Changed 5 months 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 :)

Changed 4 months ago by ryandesign@…

  • owner changed from macports-tickets@… to ryandesign@…
  • status changed from new to assigned

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.

Changed 4 months ago by ryandesign@…

  • status changed from assigned to closed
  • resolution set to fixed

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.

Note: See TracTickets for help on using tickets.