Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #16

Closed
phantomgps1 opened this issue May 24, 2017 · 2 comments
Closed

compile error #16

phantomgps1 opened this issue May 24, 2017 · 2 comments

Comments

@phantomgps1
Copy link

cc -c -O2 -fno-strict-aliasing -frename-registers -pipe -Wno-maybe-uninitialized -std=c99 -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-proto
types -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unused-but-set-variable -fno-comm
on -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DFSTACK -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KE
RNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/home/yuwh/fstack/f-stack/lib/include -undef -imacros filtered_predefined_macros.h -nostdinc
-I. -I/home/yuwh/fstack/f-stack/lib/../freebsd -I./machine_include -I./opt -Werror -Wno-unused-variable ff_compat.c
cc -c -O2 -fno-strict-aliasing -frename-registers -pipe -Wno-maybe-uninitialized -std=c99 -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-proto
types -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unused-but-set-variable -fno-comm
on -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DFSTACK -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KE
RNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/home/yuwh/fstack/f-stack/lib/include -undef -imacros filtered_predefined_macros.h -nostdinc
-I. -I/home/yuwh/fstack/f-stack/lib/../freebsd -I./machine_include -I./opt -Werror -Wno-unused-variable ff_glue.c
cc1: warnings being treated as errors
In file included from ff_glue.c:50:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/buf.h:130: error: declaration does not declare anything
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/buf.h:131: error: declaration does not declare anything
In file included from ff_glue.c:53:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:192: error: declaration does not declare anything
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:219: error: declaration does not declare anything
...
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘m_free’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1174: error: ‘struct mbuf’ has no member named ‘m_next’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘rt_m_getfib’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1190: error: ‘struct mbuf’ has no member named ‘m_pkthdr’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘mbufq_drain’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1249: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘mbufq_last’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1265: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1265: error: type defaults to ‘int’ in declaration of ‘__x’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1265: error: initialization from incompatible pointer type
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1265: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘mbufq_enqueue’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1288: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1288: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘mbufq_dequeue’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1300: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1301: error: ‘struct mbuf’ has no member named ‘m_nextpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h: In function ‘mbufq_prepend’:
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1311: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
/home/yuwh/fstack/f-stack/lib/../freebsd/sys/mbuf.h:1311: error: ‘struct mbuf’ has no member named ‘m_stailqpkt’
At top level:
cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
make: *** [ff_glue.o] Error 1

[yuwh@localhost lib]$gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)

@whl739
Copy link
Member

whl739 commented May 24, 2017

Upgrade gcc to 4.5+.

@whl739 whl739 closed this as completed May 24, 2017
@yuwenhua
Copy link

It's not the problem of gcc version,
change CFLAG -std=c99 to gnu99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants