[MacPorts] #40620: MacPorts 2.2.0: build of wireshark at 1.10.0_0 failing

MacPorts noreply at macports.org
Sun Sep 29 12:36:25 PDT 2013


#40620: MacPorts 2.2.0: build of wireshark at 1.10.0_0 failing
-----------------------------+------------------------------
  Reporter:  dan+macports@…  |      Owner:  opendarwin.org@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.2.0
Resolution:                  |   Keywords:
      Port:  wireshark       |
-----------------------------+------------------------------

Comment (by dan+macports@…):

 A clean build:

 {{{
 sudo port -vs build wireshark build.jobs=1
 }}}

 gives the following pertinent output:
 {{{
 [...]
   CC     libdissectors_la-packet-gluster_cli.lo
 clang: warning: unknown warning option '-Wjump-misses-init'; did you mean
 '-Wimplicit-int'?
 clang: warning: unknown warning option '-Wpragmas'
 clang: warning: argument unused during compilation: '-fexcess-
 precision=fast'
 warning: unknown warning option '-Wjump-misses-init'; did you mean
 '-Wimplicit-int'? [-Wunknown-warning-option]
 warning: unknown warning option '-Wpragmas' [-Wunknown-warning-option]
 In file included from packet-gluster_cli.c:43:
 ./packet-gluster.h:359:2: error: expected '}'
         DT_UNKNOWN = 0,
         ^
 /usr/include/sys/dirent.h:126:21: note: expanded from macro 'DT_UNKNOWN'
 #define DT_UNKNOWN       0
                          ^
 ./packet-gluster.h:358:26: note: to match this '{'
 enum gluster_entry_types {
                          ^
 2 warnings and 1 error generated.
 make[5]: *** [libdissectors_la-packet-gluster_cli.lo] Error 1
 [...]
 }}}

 Apparently

 {{{
 enum gluster_entry_types {
         DT_UNKNOWN = 0,
         DT_FIFO = 1,
         DT_CHR = 2,
         DT_DIR = 4,
         DT_BLK = 6,
         DT_REG = 8,
         DT_LNK = 10,
         DT_SOCK = 12,
         DT_WHT = 14
 };
 }}}
 Does redefine as an enum a set of values which are already defined as
 macro within
 /usr/include/sys/dirent.h

-- 
Ticket URL: <https://trac.macports.org/ticket/40620#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list