Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#4206 closed defect (fixed)

wireshark-1.10.2 fails to build

Reported by: Fernando de Oliveira Owned by: Fernando de Oliveira
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

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.

Attachments (1)

wireshark-1.10.2-packet_gluster_duplicate_enums-fix-1.patch (2.3 KB ) - added by Fernando de Oliveira 11 years ago.
Fix build with glib-2.38.X

Download all attachments as: .zip

Change History (4)

by Fernando de Oliveira, 11 years ago

Fix build with glib-2.38.X

comment:1 by Fernando de Oliveira, 11 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

comment:2 by Fernando de Oliveira, 11 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 11998.

comment:3 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.