Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2001 06:27:43 -0700 (PDT)
From:      round@baileylink.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/27539: h323 fails to build because of redefinition of yyparse
Message-ID:  <200105221327.f4MDRhl18570@freefall.freebsd.org>

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

>Number:         27539
>Category:       ports
>Synopsis:       h323 fails to build because of redefinition of yyparse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 22 06:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brad Guillor
>Release:        4.3-RELEASE
>Organization:
IS Consulting
>Environment:
FreeBSD mail.nola-law.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Mon May 14 20:12:45 CDT 2001     root@mail.nola-law.com:/usr/src/sys/compile/FIREWALL  i386
>Description:
===>  Building for openh323-1.2.12
set -e; gmake -C src opt; gmake -C samples/simple opt;
gmake[1]: Entering directory `/usr/ports/net/openh323/work/openh323/src'
gmake -C /usr/ports/net/openh323/work/pwlib/tools/asnparser opt
gmake[2]: Entering directory
`/usr/ports/net/openh323/work/pwlib/tools/asnparser'
gmake -C /usr/ports/net/openh323/work/pwlib/src/ptlib/unix opt
gmake[3]: Entering directory `/usr/ports/net/openh323/work/pwlib/src/ptlib/unix'
cc -O -pipe  -pthread -pthread -pthread -Wall -DP_FREEBSD=430000 -DP_PTHREADS
-DPBYTE_ORDER=PLITTLE_ENDIAN
-I/usr/ports/net/openh323/work/pwlib/include/ptlib/unix
-I/usr/ports/net/openh323/work/pwlib/include -c ../common/getdate.tab.c -o
/usr/ports/net/openh323/work/pwlib/lib/obj_FreeBSD_x86_r/getdate.tab.o
/usr/share/misc/bison.simple:153: conflicting types for `PTime_yyparse'
../common/getdate.y:110: previous declaration of `PTime_yyparse'
/usr/share/misc/bison.simple: In function `PTime_yyparse':
/usr/share/misc/bison.simple:219: number of arguments doesn't match prototype
/usr/share/misc/bison.simple:153: prototype declaration
../common/getdate.y: In function `PTimeParse':
../common/getdate.y:885: too many arguments to function `PTime_yyparse'
gmake[3]: ***
[/usr/ports/net/openh323/work/pwlib/lib/obj_FreeBSD_x86_r/getdate.tab.o] Error
1
gmake[3]: Leaving directory `/usr/ports/net/openh323/work/pwlib/src/ptlib/unix'
gmake[2]: *** [/usr/ports/net/openh323/work/pwlib/lib/libpt_FreeBSD_x86_r.a]
Error 2
gmake[2]: Leaving directory `/usr/ports/net/openh323/work/pwlib/tools/asnparser'
gmake[1]: *** [asnparser.version] Error 2
gmake[1]: Leaving directory `/usr/ports/net/openh323/work/openh323/src'
gmake: *** [opt] Error 2
*** Error code 2

Stop in /usr/ports/net/openh323.
*** Error code 1

Stop in /usr/ports/net/openh323.
*** Error code 1

Stop in /usr/ports/net/openh323.

>How-To-Repeat:
cd /usr/ports/net/h323
make
>Fix:
<from http://www.openh323.org/bison_bug.html>;

The bison.simple file on many releases will not compile with the options used by the PWLib getdate.y grammar. The options are required to make the date parser thread safe so it is necessary to edit the bison.simple file to fix the problem. The file is at /usr/share/misc/bison.simple on my machine

 The code:

	/* Prevent warning if -Wstrict-prototypes. */
	#ifdef __GNUC__
	int yyparse (void);
	#endif

should be changed to

	/* Prevent warning if -Wstrict-prototypes. */
	#ifdef __GNUC__
	#ifndef YYPARSE_PARAM
	int yyparse (void);
	#endif
	#endif

To prevent the incorrect function prototype from being defined. The getdate.y should then produce a getdate.tab.c file that will actually compile.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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