Opened 9 years ago

Closed 9 years ago

#45990 closed defect (fixed)

Port bro does not build on Yosemite

Reported by: angelos@… Owned by: tanawts@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: yosemite Cc: ryandesign (Ryan Carsten Schmidt)
Port: bro

Description (last modified by ryandesign (Ryan Carsten Schmidt))

port build bro
--->  Computing dependencies for bro
--->  Fetching distfiles for bro
--->  Verifying checksums for bro
--->  Extracting bro
--->  Applying patches to bro
--->  Configuring bro
--->  Building bro
Error: org.macports.build for port bro returned: command execution failed
Please see the log file for port bro for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port bro failed

From the log file:

:info:build Building CXX object src/analyzer/protocol/login/CMakeFiles/plugin-Bro-Login.dir/Login.cc.o
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/work/bro-2.2/src/analyzer/protocol/mime/MIME.cc:3:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/work/bro-2.2/src/NetVar.h:6:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/work/bro-2.2/src/Val.h:11:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/work/bro-2.2/src/net_util.h:210:15: error: expected ')'
:info:build inline uint64 ntohll(uint64 i)
:info:build               ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:140:25: note: expanded  from macro 'ntohll'
:info:build #define ntohll(x)       __DARWIN_OSSwapInt64(x)
:info:build                         ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
:info:build     (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
:info:build      ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_bro/bro/work/bro-2.2/src/net_util.h:210:15: note: previous implicit declaration is here
...

Change History (3)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: yosemite added
Owner: changed from macports-tickets@… to tanawts@…
Port: bro added; net/bro removed

Oh yes. ntohll is a macro on Yosemite; other ports have needed to be patched for this issue before.

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

We may just need to update bro to a newer version. #42856 contains a patch to do this, but the patch makes so many other changes, some of them incomplete, that it would be time consuming to evaluate and fix.

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

Resolution: fixed
Status: newclosed

This issue is not fixed in the latest stable version 2.3.1 but was already reported to the developers and is fixed in the repository and will be fixed in 2.4. Committed this fix to our port in r128545.

Note: See TracTickets for help on using tickets.