bin/85115: byacc generates uncompileable file

dirk.meyer at dirk.meyer at
Fri Aug 19 06:40:19 GMT 2005

>Number:         85115
>Category:       bin
>Synopsis:       byacc generates uncompileable file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 19 06:40:18 GMT 2005
>Originator:     Dirk Meyer
>Release:        FreeBSD 5.4-STABLE 6.0-BETA1


	when ports/lang/objc compiled
	This reults into a compiler error:

byacc -d yacc.ym
byacc: 6 shift/reduce conflicts
byacc: 48 reduce/reduce conflicts
cp -p yacc.h
cp -p yacc.m
/data/image/usr/ports/current/objc/work/bin/objc -c -DNDEBUG -O2 -I. -noI -I../../include/objcrt -I../../include/objpak 
-I../oclib yacc.m
yacc.m:6: fatal: syntax error "static"
Portable Object Compiler 3.1.33 (c) 1997, 98, 99, 2000, 01, 02.
Distributed under the terms of the GNU LGPL.
*** Error code 1

	byacc generates some incorectd lines:

#include <stdlib.h>
#ifndef lint
#ifdef __unused
static char const
yyrcsid[] = "$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.37 2003/02/12 18:03:55 davidc Exp $";


	build ports/lang/objc


	Please check and see why byacc generates "__unused"

	CFLAGS += -Dlint to avoid the lines generated.


More information about the freebsd-bugs mailing list