From owner-freebsd-stable@FreeBSD.ORG Wed Jun 25 19:26:57 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF72D929 for ; Wed, 25 Jun 2014 19:26:57 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9EED02C05 for ; Wed, 25 Jun 2014 19:26:57 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 7A017153A9E for ; Wed, 25 Jun 2014 21:26:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zt0PfH7S0LZs; Wed, 25 Jun 2014 21:26:19 +0200 (CEST) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 08AEC1534D1 for ; Wed, 25 Jun 2014 21:26:19 +0200 (CEST) Message-ID: <53AB225B.3040505@digiware.nl> Date: Wed, 25 Jun 2014 21:26:19 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "stable@freebsd.org" Subject: Re: Compile warning in libipsec References: <53AAF1BA.7050002@digiware.nl> In-Reply-To: <53AAF1BA.7050002@digiware.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 19:26:58 -0000 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@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