You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Susan Hinrichs (JIRA)" <ji...@apache.org> on 2014/11/06 22:32:34 UTC
[jira] [Created] (TS-3177) Compiling with G++ 4.9.2 has compile
warnings in CK
Susan Hinrichs created TS-3177:
----------------------------------
Summary: Compiling with G++ 4.9.2 has compile warnings in CK
Key: TS-3177
URL: https://issues.apache.org/jira/browse/TS-3177
Project: Traffic Server
Issue Type: Bug
Reporter: Susan Hinrichs
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]
# 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)