Re: Ports including sys/time.h broken

From: Davide Italiano <davide_at_freebsd.org>
Date: Wed, 27 Mar 2013 22:07:02 +0100
On Wed, Mar 27, 2013 at 9:28 PM, Pawel Pekala <pawel_at_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ł Pękala
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_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.

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
Received on Wed Mar 27 2013 - 20:07:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC