Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2013 22:07:02 +0100
From:      Davide Italiano <davide@freebsd.org>
To:        Pawel Pekala <pawel@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Ports including sys/time.h broken
Message-ID:  <CACYV=-EPvuOP4_Zcig=ndiKkQBV5Z%2Bd8kisJ1Emgvtpb=zV=ng@mail.gmail.com>
In-Reply-To: <20130327212819.1a28b2e1@FreeBSD.org>
References:  <20130327212819.1a28b2e1@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 27, 2013 at 9:28 PM, Pawel Pekala <pawel@freebsd.org> wrote:
> For some time now (about month?) ports using sys/time.h include fail to
> build and I`m sure they were building ok before. At least those seems
> affected by this:
>
> math/atlas
> math/openblas
> x11-toolkits/c++-gtk-utils
>
> All fail with similar errors:
>
> /usr/include/sys/time.h:134:17: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h:141:1: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h: In function 'bttosbt':
> /usr/include/sys/time.h:144:12: error: 'sbintime_t' undeclared (first
> use in this function) /usr/include/sys/time.h:144:12: note: each
> undeclared identifier is reported only once for each function it
> appears in /usr/include/sys/time.h:144:23: error: expected ')' before
> 'bt' /usr/include/sys/time.h: At top
> level: /usr/include/sys/time.h:148:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:206:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:216:1: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h: In function
> 'tstosbt': /usr/include/sys/time.h:219:12: error: 'sbintime_t'
> undeclared (first use in this function) /usr/include/sys/time.h:219:23:
> error: expected ')' before 'ts' /usr/include/sys/time.h: At top
> level: /usr/include/sys/time.h:224:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:234:1: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h: In function
> 'tvtosbt': /usr/include/sys/time.h:237:12: error: 'sbintime_t'
> undeclared (first use in this function) /usr/include/sys/time.h:237:23:
> error: expected ')' before 'tv' In file included
> from ../common.h:110:0, from swap.c:40: /usr/include/sys/time.h:134:17:
> error: unknown type name 'sbintime_t' /usr/include/sys/time.h:141:1:
> error: unknown type name 'sbintime_t' /usr/include/sys/time.h: In
> function 'bttosbt': /usr/include/sys/time.h:144:12: error: 'sbintime_t'
> undeclared (first use in this function) /usr/include/sys/time.h:144:12:
> note: each undeclared identifier is reported only once for each
> function it appears in /usr/include/sys/time.h:144:23: error: expected
> ')' before 'bt' /usr/include/sys/time.h: At top
> level: /usr/include/sys/time.h:148:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:206:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:216:1: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h: In function
> 'tstosbt': /usr/include/sys/time.h:219:12: error: 'sbintime_t'
> undeclared (first use in this function) /usr/include/sys/time.h:219:23:
> error: expected ')' before 'ts' /usr/include/sys/time.h: At top
> level: /usr/include/sys/time.h:224:9: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h:234:1: error: unknown type name
> 'sbintime_t' /usr/include/sys/time.h: In function
> 'tvtosbt': /usr/include/sys/time.h:237:12: error: 'sbintime_t'
> undeclared (first use in this function) /usr/include/sys/time.h:237:23:
> error: expected ')' before 'tv'
>
> --
> pozdrawiam / with regards
> Pawe=C5=82 P=C4=99kala
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"

I'm able to build the ports you mentioned.
Even if the informations you give are not enough to diagnose the
problem (e.g. which version of which compiler was used to build) my
guess is that you're using some version of gcc which is stale, i.e. it
was build before changes to system headers.

--=20
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACYV=-EPvuOP4_Zcig=ndiKkQBV5Z%2Bd8kisJ1Emgvtpb=zV=ng>