Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 08:37:15 +0200 (CEST)
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/156488: [PATCH] fix build of print/lilypond with devel/bison installed
Message-ID:  <20110419063715.9FD3AA1029@reindeer.exwg.net>
Resent-Message-ID: <201104190700.p3J70JB3085640@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156488
>Category:       ports
>Synopsis:       [PATCH] fix build of print/lilypond with devel/bison installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 07:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD reindeer.exwg.net 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Thu Feb 17 09:12:56 CET 2011 cmt@reindeer.exwg.net:/usr/obj/usr/src/sys/CMT amd64

   print/lilypond lilypond-2.13.60
   textproc/flex  flex-2.5.35_4
   devel/bison    bison-2.4.3,1

>Description:
	When devel/bison is installed and precedes the base system yacc in $PATH
	(i.e. $LOCALBASE/bin before /usr/bin), the build of print/lilypond fails
	due to incompatibilities between yacc and bison:
	ut/lexer.cc:384: error: no 'int yyFlexLexer::yywrap()' member function declared in class 'yyFlexLexer'
	out/lexer.cc: In member function 'virtual int Lily_lexer::yylex()':
	out/lexer.cc:3977: error: 'yy_buffer_stack' was not declared in this scope

	and so on.
>How-To-Repeat:
	Install bison and flex from ports, try to build lilypond.
>Fix:

    Force print/lilypond to use the base system tools (easily done via
    configure):

--- print/lilypond/Makefile.orig	2011-04-19 08:05:19.000000000 +0200
+++ print/lilypond/Makefile	2011-04-19 08:20:36.000000000 +0200
@@ -47,6 +47,8 @@
 GNU_MAKEFILE=	yes
 CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts
 CONFIGURE_ENV+=	MAKEINFO="${LOCALBASE}/bin/makeinfo"
+CONFIGURE_ENV+=	FLEX="/usr/bin/flex"
+CONFIGURE_ENV+=	YACC="/usr/bin/yacc"
 
 ALL_TARGET=	all
 

Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110419063715.9FD3AA1029>