ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1117

zookeeper 3.3.3 fails to build with gcc >= 4.6.1 on Debian/Ubuntu

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.3, 3.4.0
    • Fix Version/s: 3.3.4, 3.4.0
    • Component/s: c client
    • Labels:
      None
    • Environment:

      Ubuntu Developement Release (11.10/Oneiric Ocelot), Debian Unstable (sid)

    • Hadoop Flags:
      Reviewed

      Description

      zookeeper 3.3.3 (and 3.3.1) fails to build on Debian and Ubuntu systems with gcc >= 4.6.1:

      /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./tests -I./generated -Wall -Werror -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c -o zookeeper.lo `test -f 'src/zookeeper.c' || echo './'`src/zookeeper.c
      libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./tests -I./generated -Wall -Werror -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c src/zookeeper.c -fPIC -DPIC -o .libs/zookeeper.o
      src/zookeeper.c: In function 'getaddrs':
      src/zookeeper.c:455:13: error: variable 'port' set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors

      See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625441 for more information.

      1. ZOOKEEPER-1117-3.3.3.patch
        1 kB
        James Page
      2. ZOOKEEPER-1117.patch
        1 kB
        James Page
      3. gcc-4.6-trunk-fix.patch
        1 kB
        James Page
      4. gcc-4.6-ftbfs.patch
        1 kB
        James Page
      5. gcc-4.6-ftbfs.patch
        1 kB
        James Page
      6. gcc-4.6-ftbfs.patch
        1 kB
        James Page
      7. disable-cc-errors
        0.7 kB
        James Page

        Activity

        Mahadev konar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mahadev konar made changes -
        Resolution Fixed [ 1 ]
        Hadoop Flags [Reviewed]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        James Page made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        James Page made changes -
        Attachment ZOOKEEPER-1117.patch [ 12490511 ]
        Attachment ZOOKEEPER-1117-3.3.3.patch [ 12490512 ]
        Patrick Hunt made changes -
        Fix Version/s 3.3.4 [ 12316276 ]
        Fix Version/s 3.4.0 [ 12314469 ]
        Affects Version/s 3.4.0 [ 12314469 ]
        Patrick Hunt made changes -
        Assignee James Page [ javacruft ]
        James Page made changes -
        Attachment gcc-4.6-trunk-fix.patch [ 12489725 ]
        James Page made changes -
        Attachment gcc-4.6-ftbfs.patch [ 12489697 ]
        James Page made changes -
        Attachment gcc-4.6-ftbfs.patch [ 12489696 ]
        James Page made changes -
        Attachment gcc-4.6-ftbfs.patch [ 12489694 ]
        James Page made changes -
        Field Original Value New Value
        Attachment disable-cc-errors [ 12485288 ]
        James Page created issue -

          People

          • Assignee:
            James Page
            Reporter:
            James Page
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development