From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 14 00:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 14AE4CD for ; Thu, 14 Mar 2013 00:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EBCAF2B2 for ; Thu, 14 Mar 2013 00:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2E0A0nI093748 for ; Thu, 14 Mar 2013 00:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2E0A0hp093747; Thu, 14 Mar 2013 00:10:00 GMT (envelope-from gnats) Resent-Date: Thu, 14 Mar 2013 00:10:00 GMT Resent-Message-Id: <201303140010.r2E0A0hp093747@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Torek Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5E9A6E04 for ; Thu, 14 Mar 2013 00:03:44 +0000 (UTC) (envelope-from torek@elf.torek.net) Received: from elf.torek.net (50-73-42-1-utah.hfc.comcastbusiness.net [50.73.42.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2B2891F3 for ; Thu, 14 Mar 2013 00:03:43 +0000 (UTC) Received: from elf.torek.net (localhost [127.0.0.1]) by elf.torek.net (8.14.5/8.14.5) with ESMTP id r2E03gUS024553 for ; Wed, 13 Mar 2013 18:03:42 -0600 (MDT) (envelope-from torek@elf.torek.net) Received: (from torek@localhost) by elf.torek.net (8.14.5/8.14.5/Submit) id r2E03gZA024552; Wed, 13 Mar 2013 18:03:42 -0600 (MDT) (envelope-from torek) Message-Id: <201303140003.r2E03gZA024552@elf.torek.net> Date: Wed, 13 Mar 2013 18:03:42 -0600 (MDT) From: Chris Torek To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/176929: port accessibility/gnome-speech build fails X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Chris Torek List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 00:10:01 -0000 >Number: 176929 >Category: ports >Synopsis: port accessibility/gnome-speech build fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Mar 14 00:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Chris Torek >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD elf.torek.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: (note: I wasn't sure if this was an "update" or "sw-bug", I picked "update" since I have attached a patch) Using portmaster to (re)build accessibility/gnome-speech, or going in and manually running a "make", eventually runs into: gmake[3]: Entering directory `/usr/ports/accessibility/gnome-speech/work/gnome-speech-0.4.25/drivers/espeak' cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../gnome-speech -I/usr/local/include/libbonobo-2.0 -I/usr/local/include/bonobo-activation-2.0 -I/usr/local/include/orbit-2.0 -DORBIT2=1 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/include -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -I/usr/local/include/espeak -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT espeaksynthesisdriver.o -MD -MP -MF .deps/espeaksynthesisdriver.Tpo -c -o espeaksynthesisdriver.o espeaksynthesisdriver.c In file included from espeaksynthesisdriver.c:31: /usr/local/include/glib-2.0/glib/gmain.h:21:2: error: #error "Only can be included directly." In file included from espeaksynthesisdriver.h:32, from espeaksynthesisdriver.c:34: /usr/local/include/glib-2.0/glib/gthread.h:28:2: error: #error "Only can be included directly." In file included from espeakspeaker.h:37, from espeaksynthesisdriver.h:35, from espeaksynthesisdriver.c:34: /usr/local/include/glib-2.0/glib/gthread.h:28:2: error: #error "Only can be included directly." espeaksynthesisdriver.c: In function 'espeak_synthesis_driver_init': espeaksynthesisdriver.c:382: warning: 'g_mutex_new' is deprecated (declared at /usr/local/include/glib-2.0/glib/deprecated/gthread.h:272) espeaksynthesisdriver.c: In function 'main': espeaksynthesisdriver.c:494: warning: 'g_thread_init' is deprecated (declared at /usr/local/include/glib-2.0/glib/deprecated/gthread.h:260) gmake[3]: *** [espeaksynthesisdriver.o] Error 1 gmake[3]: Leaving directory `/usr/ports/accessibility/gnome-speech/work/gnome-speech-0.4.25/drivers/espeak' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/accessibility/gnome-speech/work/gnome-speech-0.4.25/drivers' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/accessibility/gnome-speech/work/gnome-speech-0.4.25' gmake: *** [all] Error 2 *** [do-build] Error code 1 >How-To-Repeat: In my case it started with using portmaster to rebuild things that were using pcre, but: # portmaster accessibility/gnome-speech should suffice. (I have no idea what added gnome-speech along the way either, I was just rebuilding "stuff" and taking care of failures.) >Fix: Someone more familiar with gnome headers should make sure this is really OK, but it seemed simplest to just turn each "don't include this directly, include glib.h instead" error into "#include ", which seems to work. [text below goes into files/patch-espeak, or whatever you choose to call it] --- drivers/espeak/espeakspeaker.c.orig +++ drivers/espeak/espeakspeaker.c @@ -27,5 +27,5 @@ #include #include -#include +#include #include #include --- drivers/espeak/espeakspeaker.h.orig +++ drivers/espeak/espeakspeaker.h @@ -35,5 +35,5 @@ #include -#include +#include #include #include --- drivers/espeak/espeaksynthesisdriver.c.orig +++ drivers/espeak/espeaksynthesisdriver.c @@ -29,5 +29,4 @@ #include #include -#include #include #include --- drivers/espeak/espeaksynthesisdriver.h.orig +++ drivers/espeak/espeaksynthesisdriver.h @@ -30,5 +30,5 @@ #include -#include +#include #include #include >Release-Note: >Audit-Trail: >Unformatted: