From owner-freebsd-ports Tue May 22 6:30: 7 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B0B5C37B43C for ; Tue, 22 May 2001 06:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4MDU1M18786; Tue, 22 May 2001 06:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5318B37B42C for ; Tue, 22 May 2001 06:27:43 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4MDRhl18570; Tue, 22 May 2001 06:27:43 -0700 (PDT) (envelope-from nobody) Message-Id: <200105221327.f4MDRhl18570@freefall.freebsd.org> Date: Tue, 22 May 2001 06:27:43 -0700 (PDT) From: round@baileylink.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/27539: h323 fails to build because of redefinition of yyparse Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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: 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