Compile warning in libipsec

Willem Jan Withagen wjw at digiware.nl
Wed Jun 25 19:26:58 UTC 2014


On 25-6-2014 17:58, Willem Jan Withagen wrote:
> Hi,
> 
> I'm getting this compile error when trying to build 10-stable on a
> 9.3-BETA2 system....
> 
> [/usr/srcs/src10/src/lib/libipsec] root at rack1.digiware.nl# make
> cc  -O2 -pipe  -I. -I/usr/srcs/src10/src/lib/libipsec -DIPSEC_DEBUG
> -DIPSEC -DINET6 -std=gnu99  -fstack-protector -Wsystem-headers -Werror
> -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c
> policy_parse.c -o policy_parse.o
> cc1: warnings being treated as errors
> /usr/srcs/src10/src/lib/libipsec/policy_parse.y: In function 'policy_parse':
> /usr/srcs/src10/src/lib/libipsec/policy_parse.y:404: warning: implicit
> declaration of function '__libipsecyyparse'
> *** [policy_parse.o] Error code 1
> 
> Stop in /usr/srcs/src10/src/lib/libipsec.
> 
> Any suggestions?

As a followup to myself.
One more problem with yacc output...
So I guess there is a problem with the version yacc I'm using when
buliding...

But it actually is a fresh /usr/obj tree, so I guess it's using the yacc
in /usr/bin.
There is no yacc in the obj-tree.....
[/usr/src] root# ls -asl `find /usr/obj/usr/srcs/src10/ -name yacc`
total 24
 2 drwxr-xr-x    2 root  wheel    512 Jun 25 20:19 ./
 4 drwxr-xr-x  238 root  wheel   4096 Jun 25 13:04 ../
18 -rw-r--r--    1 root  wheel  17440 Jun 25 20:19 .depend

--WjW


--- expr.o ---
cc  -O2 -pipe  -std=gnu99 -Qunused-arguments  -fstack-protector
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-pro
totypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subs
cripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-v
ariable -c expr.c
/usr/srcs/src10/src/bin/expr/expr.y:291:2: error: implicit declaration
of function 'yyparse' is invalid in C99
[-Werror,-Wimplicit-function-declarat
ion]
        yyparse();
        ^
expr.c:811:1: error: no previous prototype for function 'yyparse'
[-Werror,-Wmissing-prototypes]
yyparse (YYPARSE_PARAM_ARG)
^
/usr/srcs/src10/src/bin/expr/expr.y:291:2: note: this declaration is not
a prototype; add 'void' to make it a prototype for a zero-parameter functio
n
        yyparse();
        ^
2 errors generated.
*** [expr.o] Error code 1





More information about the freebsd-stable mailing list