devel/bison2's yacc problem

Norikatsu Shigemura nork at FreeBSD.org
Sun Mar 26 08:00:55 UTC 2006


Hi Ade.

	I contacted a build error problem on net/csup.

# cd /usr/ports/net/csup
# make
  :
cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -march=pentium-m -I. -I/usr/ports/net/csup/work/csup -g -pthread -DHAVE_FFLAGS -DNDEBUG -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c parse.c
parse.c:848: warning: redundant redeclaration of 'yyparse'
token.h:33: warning: previous declaration of 'yyparse' was here
*** Error code 1

	Because yacc is not byacc but bison2:-(.

$ which yacc
/usr/local/bin/yacc
$ pkg_which yacc
bison-2.1_1

	So I made bison2 not to install yacc and liby.a.  How about
	do you think?


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/bison2/Makefile,v
retrieving revision 1.57
diff -u -r1.57 Makefile
--- Makefile	18 Nov 2005 04:03:37 -0000	1.57
+++ Makefile	26 Mar 2006 07:38:14 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	bison
 PORTVERSION=	2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -31,6 +31,7 @@
 MAN1=		bison.1
 INFO=		bison
 
+CONFIGURE_ARGS+=	--disable-yacc
 .if defined(WITHOUT_NLS)
 CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/devel/bison2/pkg-plist,v
retrieving revision 1.22
diff -u -r1.22 pkg-plist
--- pkg-plist	22 Jan 2006 22:04:53 -0000	1.22
+++ pkg-plist	26 Mar 2006 07:45:50 -0000
@@ -1,8 +1,6 @@
 @comment $FreeBSD: ports/devel/bison2/pkg-plist,v 1.22 2006/01/22 22:04:53 ade Exp $
 bin/bison
 bin/bison2
-bin/yacc
-lib/liby.a
 share/aclocal/bison-i18n.m4
 %%DATADIR%%/c.m4
 %%DATADIR%%/c++.m4


More information about the freebsd-ports mailing list