From nobody@FreeBSD.org  Thu Sep 12 06:32:02 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id B7A33316
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 06:32:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id A3B2623E2
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 06:32:02 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8C6W2E5010999
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 06:32:02 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8C6W2rq010998;
	Thu, 12 Sep 2013 06:32:02 GMT
	(envelope-from nobody)
Message-Id: <201309120632.r8C6W2rq010998@oldred.freebsd.org>
Date: Thu, 12 Sep 2013 06:32:02 GMT
From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/texlive-base: error: member access into incomplete type 'struct timeval'
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182028
>Category:       ports
>Synopsis:       print/texlive-base: error: member access into incomplete type 'struct timeval'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hrs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 06:40:00 UTC 2013
>Closed-Date:    Sun Sep 15 07:07:16 UTC 2013
>Last-Modified:  Sun Sep 15 07:07:16 UTC 2013
>Originator:     O. Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #1 r255479: Wed Sep 11 21:47:51 CEST 2013 amd64

no libstdc++
no converters/libiconv
>Description:
[...]

c++ -DHAVE_CONFIG_H -I. -I./dvisvgm-1.0.11/src -I./dvisvgm-1.0.11/potracelib  -I/usr/local/include/freetype2 -I/usr/local/include  -I/usr/local/include   -Wimplicit -Wreturn-type -Wno-unknown-pragmas -Wno-write-strings -O2 -pipe -O3 -march=native -I/usr/local/include -I/usr/local/include/kpathsea -I/usr/local/include/ptexenc -fno-strict-aliasing -MT FileFinder.o -MD -MP -MF .deps/FileFinder.Tpo -c -o FileFinder.o `test -f 'dvisvgm-1.0.11/src/FileFinder.cpp' || echo './'`dvisvgm-1.0.11/src/FileFinder.cpp
In file included from dvisvgm-1.0.11/src/FileFinder.cpp:43:
In file included from /usr/local/include/kpathsea/kpathsea.h:18:
In file included from /usr/local/include/kpathsea/c-stat.h:23:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:193:5: error: member access into incomplete type 'struct timeval'
        _tv->tv_sec = _bt->sec;

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->hrs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 12 06:40:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182028 

From: Boris Samorodov <bsam@passap.ru>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de, 
 Hiroki Sato <hrs@FreeBSD.org>
Cc:  
Subject: Re: ports/182028: print/texlive-base: error: member access into incomplete
 type &#39;struct timeval&#39;
Date: Thu, 12 Sep 2013 12:41:55 +0400

 This is a multi-part message in MIME format.
 --------------010506030701080909000308
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 
 Attached patches result in success build for me. However I'm not sure
 if they DTRT.
 
 -- 
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
 
 --------------010506030701080909000308
 Content-Type: text/x-diff;
  name="texlive-base-3patches.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="texlive-base-3patches.diff"
 
 Index: print/texlive-base/files/patch-texk-dvisvgm-FileFinder
 ===================================================================
 --- print/texlive-base/files/patch-texk-dvisvgm-FileFinder	(revision 0)
 +++ print/texlive-base/files/patch-texk-dvisvgm-FileFinder	(working copy)
 @@ -0,0 +1,10 @@
 +--- texk/dvisvgm/dvisvgm-1.0.11/src/FileFinder.cpp.orig	2013-09-12 11:20:50.415479620 +0400
 ++++ texk/dvisvgm/dvisvgm-1.0.11/src/FileFinder.cpp	2013-09-12 11:21:19.499372167 +0400
 +@@ -22,6 +22,7 @@
 + #include <fstream>
 + #include <map>
 + #include <string>
 ++#include <sys/time.h>
 + #include "FileFinder.h"
 + #include "FileSystem.h"
 + #include "Message.h"
 Index: print/texlive-base/files/patch-texk-lcdf-typetools-libefont-cff
 ===================================================================
 --- print/texlive-base/files/patch-texk-lcdf-typetools-libefont-cff	(revision 0)
 +++ print/texlive-base/files/patch-texk-lcdf-typetools-libefont-cff	(working copy)
 @@ -0,0 +1,10 @@
 +--- texk/lcdf-typetools/libefont/cff.cc.orig	2013-09-12 12:01:27.419206652 +0400
 ++++ texk/lcdf-typetools/libefont/cff.cc	2013-09-12 12:01:52.610206763 +0400
 +@@ -27,6 +27,7 @@
 + #include <ctype.h>
 + #include <efont/t1unparser.hh>
 + 
 ++#undef static_assert
 + #ifndef static_assert
 + #define static_assert(c) switch (c) case 0: case (c):
 + #endif
 Index: print/texlive-base/files/patch-texk-lcdf-typetools-libefont-t1interp
 ===================================================================
 --- print/texlive-base/files/patch-texk-lcdf-typetools-libefont-t1interp	(revision 0)
 +++ print/texlive-base/files/patch-texk-lcdf-typetools-libefont-t1interp	(working copy)
 @@ -0,0 +1,10 @@
 +--- texk/lcdf-typetools/libefont/t1interp.cc.orig	2013-09-12 12:16:26.490157751 +0400
 ++++ texk/lcdf-typetools/libefont/t1interp.cc	2013-09-12 12:17:13.028140213 +0400
 +@@ -30,6 +30,7 @@
 + #define CHECK_PATH_START()	do { _state = S_PATH; } while (0)
 + #define CHECK_PATH_END()	do { if (_state == S_PATH) { act_closepath(cmd); } _state = S_IPATH; } while (0)
 + 
 ++#undef static_assert
 + #ifndef static_assert
 + # define static_assert(c)	switch (c) case 0: case (c):
 + #endif
 
 --------------010506030701080909000308--

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: Boris Samorodov <bsam@passap.ru>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/182028: print/texlive-base: error: member access into
 incomplete type &#39;struct timeval&#39;
Date: Thu, 12 Sep 2013 13:30:24 +0200

 --Sig_/kVdMExlq8bjUCc0xSfcCA5y
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, 12 Sep 2013 12:41:55 +0400
 Boris Samorodov <bsam@passap.ru> wrote:
 
 > Attached patches result in success build for me. However I'm not sure
 > if they DTRT.
 >=20
 
 This works for me, too.
 
 Thank you very much for looking into it. Great!
 
 Oliver
 
 --Sig_/kVdMExlq8bjUCc0xSfcCA5y
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.21 (FreeBSD)
 
 iQEcBAEBAgAGBQJSMaXVAAoJEOgBcD7A/5N84awIAIs/2x5rzzxE4BltF4gHR02C
 hJcK0fsuGCoNk59nLE5MG25ARZT/OhVNzNnduBX89aV0tRRBkVrZVeD/RmrLVE04
 fHScUCcHBHwJMBxh3CPiKYCT7D8LImC/OGg/24Il+EvJQOs/Sm8waLiV7BogT+Az
 sKBdDIg/eoiJZgcZwAgBDuXIWbXNc/WTEkCcpM/+ViJw7NAM+e0w+s+xjHJc7DqO
 rtesk9UhNjuVMwwpmz5WGMTwNJq5bH7m4Zm4pAapCNWC6T3P3rvBlT2sMBhOX3aU
 mjHza+k2KOFacQfXQFz9R1Omzg9Rs5C0SeMF4faNO42E0HWWzZPNYp4X4a1BxeI=
 =+tD6
 -----END PGP SIGNATURE-----
 
 --Sig_/kVdMExlq8bjUCc0xSfcCA5y--
State-Changed-From-To: open->closed 
State-Changed-By: bsam 
State-Changed-When: Sun Sep 15 07:07:15 UTC 2013 
State-Changed-Why:  
Bapt has committed a fix, thanks for the report! 

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