Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 18:03:42 -0600 (MDT)
From:      Chris Torek <torek@torek.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/176929: port accessibility/gnome-speech build fails
Message-ID:  <201303140003.r2E03gZA024552@elf.torek.net>
Resent-Message-ID: <201303140010.r2E0A0hp093747@freefall.freebsd.org>

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

>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 <torek@torek.net>
>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 <glib.h> 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 <glib.h> 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 <glib.h> 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 <glib.h>", 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 <string.h>
 #include <libbonobo.h>
-#include <glib/gmain.h>
+#include <glib.h>
 #include <gnome-speech/gnome-speech.h>
 #include <speak_lib.h>

--- drivers/espeak/espeakspeaker.h.orig
+++ drivers/espeak/espeakspeaker.h
@@ -35,5 +35,5 @@
 
 #include <bonobo/bonobo-object.h>
-#include <glib/gthread.h>
+#include <glib.h>
 #include <speak_lib.h>
 #include <gnome-speech/gnome-speech.h>

--- drivers/espeak/espeaksynthesisdriver.c.orig
+++ drivers/espeak/espeaksynthesisdriver.c
@@ -29,5 +29,4 @@
 #include <libbonobo.h>
 #include <glib.h>
-#include <glib/gmain.h>
 #include <speak_lib.h>
 #include <gnome-speech/gnome-speech.h>

--- drivers/espeak/espeaksynthesisdriver.h.orig
+++ drivers/espeak/espeaksynthesisdriver.h
@@ -30,5 +30,5 @@
 
 #include <bonobo/bonobo-object.h>
-#include <glib/gthread.h>
+#include <glib.h>
 #include <gnome-speech/gnome-speech.h>
 #include <speak_lib.h>
>Release-Note:
>Audit-Trail:
>Unformatted:



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