Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3177

Compiling with G++ 4.9.2 has compile warnings in CK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • CK++
    • None

    Description

      Initially reported by degreane while trying out FC21 beta. I also saw with g++ 4.9.2 on FC21 beta.

      /usr/bin/cc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses -fPIC -I/opt/FireWall/.mytmp/trafficserver/lib/ck/include -I/opt/FireWall/.mytmp/trafficserver/lib/ck/include -m64 -D_x86_64_ -c -o /opt/FireWall/.mytmp/trafficserver/lib/ck/src/ck_barrier_centralized.o /opt/FireWall/.mytmp/trafficserver/lib/ck/src/ck_barrier_centralized.c
      In file included from /usr/include/limits.h:25:0,
      from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/limits.h:168,
      from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/syslimits.h:7,
      from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/limits.h:34,
      from /opt/FireWall/.mytmp/trafficserver/lib/ck/include/ck_limits.h:30,
      from /opt/FireWall/.mytmp/trafficserver/lib/ck/include/spinlock/anderson.h:31,
      from /opt/FireWall/.mytmp/trafficserver/lib/ck/include/ck_spinlock.h:30,
      from /opt/FireWall/.mytmp/trafficserver/lib/ck/include/ck_barrier.h:31,
      from /opt/FireWall/.mytmp/trafficserver/lib/ck/src/ck_barrier_centralized.c:28:
      /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]

      1. warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
        ^

      Plus a few more similar lines. Faysal confirms that changing the define flags as suggested fixes the warning, but I don't immediately see what to fix up so the corrected Makefile is generated.

      amc suggests that Phil is most familiar with this package.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shinrich Susan Hinrichs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: