From nobody@FreeBSD.org  Sat Mar  9 16:31:38 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id A385C56A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Mar 2013 16:31:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7CD6CEB0
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Mar 2013 16:31:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r29GVcaa034814
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 9 Mar 2013 16:31:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r29GVcU9034801;
	Sat, 9 Mar 2013 16:31:38 GMT
	(envelope-from nobody)
Message-Id: <201303091631.r29GVcU9034801@red.freebsd.org>
Date: Sat, 9 Mar 2013 16:31:38 GMT
From: Michael Clayton <michael.clayton@sympatico.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Libreoffice build failure in tail_build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176788
>Category:       ports
>Synopsis:       editors/libreoffice build failure in tail_build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    office
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 09 16:40:05 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Mar 09 17:43:37 UTC 2013
>Originator:     Michael Clayton
>Release:        9.1
>Organization:
None
>Environment:
FreeBSD localhost 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #3 r244877: Mon Dec 31 12:40:53 EST 2012     root@localhost:/usr/obj/usr/src/sys/MONSTER  amd64

>Description:
build failure:

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 512 occurred while making /usr/ports/editors/libreoffice/work/libreoffice-4.0.1.2/tail_build/prj

 it seems that the error is inside 'tail_build', please re-run build
 inside this module to isolate the error and/or test your fix.

-----------------------------------------------------------------------

earlier build messages (or re-running the build inside tail_build) gives errors that seem to suggest that the include path for gtk is not set properly:

[build CXX] writerperfect/source/filter/ListStyle.cxx
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.0.1.2/vcl/headless/svpprn.cxx:26:
/usr/local/include/print.h:27:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^

another example:

[build CXX] bridges/source/cpp_uno/shared/vtablefactory.cxx
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.0.1.2/vcl/headless/svpprn.cxx:26:
/usr/local/include/print.h:27:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^

I have nothing interesting in /etc/make.conf (I don't think):
PYTHON_VERSION=python2.7
WITH_PKGNG=yes
# added by use.perl 2013-02-28 21:35:01
PERL_VERSION=5.16.2

I have three versions of gtk installed:
gtk-3.0.12_2                   Gimp Toolkit for X11 GUI (current stable version)
gtk-1.2.10_22                  Gimp Toolkit for X11 GUI (previous stable version)
gtk-2.24.17                    Gimp Toolkit for X11 GUI (previous stable version)

The Libreoffice config is chosen to use GTK2:

# This file is auto-generated by 'make config'.
# Options for libreoffice-4.0.1
_OPTIONS_READ=libreoffice-4.0.1
_FILE_COMPLETE_OPTIONS_LIST=CUPS DEBUG GNOME GTK2 GTK3 JAVA KDE4 MERGELIBS MMEDIA PGSQL SDK SYSTRAY TEST WEBDAV
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=GNOME
OPTIONS_FILE_SET+=GTK2
OPTIONS_FILE_UNSET+=GTK3
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KDE4
OPTIONS_FILE_SET+=MERGELIBS
OPTIONS_FILE_UNSET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=SYSTRAY
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=WEBDAV


>How-To-Repeat:
cd /usr/ports/editors/libreoffice
make
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->office 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 9 17:43:07 UTC 2013 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176788 
>Unformatted:
