[blfs-book] [BLFS Trac] #4206: wireshark-1.10.2 fails to build

BLFS Trac trac at linuxfromscratch.org
Fri Oct 18 09:23:11 PDT 2013


#4206: wireshark-1.10.2 fails to build
--------------------+-------------------------
 Reporter:  fo      |      Owner:  blfs-book@…
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  current
Component:  BOOK    |    Version:  SVN
 Severity:  normal  |   Keywords:
--------------------+-------------------------
 Apparently, the problem is newer glib:

 {{{
   CC     libdissectors_la-packet-glbp.lo
   CC     libdissectors_la-packet-gluster_cli.lo
 In file included from /usr/include/glib-2.0/glib/gdir.h:34:0,
                  from /usr/include/glib-2.0/glib.h:47,
                  from packet-gluster_cli.c:38:
 packet-gluster.h:359:2: error: redeclaration of enumerator 'DT_UNKNOWN'
   DT_UNKNOWN = 0,
   ^
 /usr/include/dirent.h:99:5: note: previous definition of 'DT_UNKNOWN' was
 here
      DT_UNKNOWN = 0,
      ^
 packet-gluster.h:360:2: error: redeclaration of enumerator 'DT_FIFO'
   DT_FIFO = 1,
   ^
 /usr/include/dirent.h:101:5: note: previous definition of 'DT_FIFO' was
 here
      DT_FIFO = 1,
      ^
 packet-gluster.h:361:2: error: redeclaration of enumerator 'DT_CHR'
   DT_CHR = 2,
   ^
 /usr/include/dirent.h:103:5: note: previous definition of 'DT_CHR' was
 here
      DT_CHR = 2,
      ^
 packet-gluster.h:362:2: error: redeclaration of enumerator 'DT_DIR'
   DT_DIR = 4,
   ^
 /usr/include/dirent.h:105:5: note: previous definition of 'DT_DIR' was
 here
      DT_DIR = 4,
      ^
 packet-gluster.h:363:2: error: redeclaration of enumerator 'DT_BLK'
   DT_BLK = 6,
   ^
 /usr/include/dirent.h:107:5: note: previous definition of 'DT_BLK' was
 here
      DT_BLK = 6,
      ^
 packet-gluster.h:364:2: error: redeclaration of enumerator 'DT_REG'
   DT_REG = 8,
   ^
 /usr/include/dirent.h:109:5: note: previous definition of 'DT_REG' was
 here
      DT_REG = 8,
      ^
 packet-gluster.h:365:2: error: redeclaration of enumerator 'DT_LNK'
   DT_LNK = 10,
   ^
 /usr/include/dirent.h:111:5: note: previous definition of 'DT_LNK' was
 here
      DT_LNK = 10,
      ^
 packet-gluster.h:366:2: error: redeclaration of enumerator 'DT_SOCK'
   DT_SOCK = 12,
   ^
 /usr/include/dirent.h:113:5: note: previous definition of 'DT_SOCK' was
 here
      DT_SOCK = 12,
      ^
 packet-gluster.h:367:2: error: redeclaration of enumerator 'DT_WHT'
   DT_WHT = 14
   ^
 /usr/include/dirent.h:115:5: note: previous definition of 'DT_WHT' was
 here
      DT_WHT = 14
      ^
 make[5]: *** [libdissectors_la-packet-gluster_cli.lo] Error 1
 make[5]: Leaving directory `/home/fernando/tmp/paco-
 build-2013.10.18-11h32m23s/wireshark-1.10.2/epan/dissectors'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory `/home/fernando/tmp/paco-
 build-2013.10.18-11h32m23s/wireshark-1.10.2/epan/dissectors'
 make[3]: *** [all] Error 2
 make[3]: Leaving directory `/home/fernando/tmp/paco-
 build-2013.10.18-11h32m23s/wireshark-1.10.2/epan/dissectors'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/home/fernando/tmp/paco-
 build-2013.10.18-11h32m23s/wireshark-1.10.2/epan'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/fernando/tmp/paco-
 build-2013.10.18-11h32m23s/wireshark-1.10.2'
 make: *** [all] Error 2
 }}}

 I found a patch that solves the problem.

 I will try to upload the patch here, after the ticket is created.

 Bruce, do you think that adding "--enable-warnings-as-errors=no" in the
 page is useful? I have almost the same amount of warnings as in the dev
 version. So, if I add the patch, this switch could also be added.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4206>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list