Ports including sys/time.h broken

Davide Italiano davide at freebsd.org
Wed Mar 27 21:07:03 UTC 2013


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


More information about the freebsd-current mailing list