public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* time.h missing scope ?
@ 2015-07-05 12:10 Marco Atzeri
  2015-07-05 14:14 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2015-07-05 12:10 UTC (permalink / raw)
  To: cygwin


u_int is defined in
  /usr/include/sys/types.h
and
  /usr/include/sys/time.h
includes it, but it is coveread by a

  # ifndef        _POSIX_SOURCE




make[1]: Entering directory 
'/cygdrive/e/cyg_pub/devel/xdelta/xdelta-3.0.9-1.i686/build'
gcc -DHAVE_CONFIG_H -I. 
-I/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9    -Wall 
-Wshadow -fno-builtin -Wextra -Wsign-compare -Wextra 
-Wno-unused-parameter -Wno-unused-function  -D_GNU_SOURCE 
-DREGRESSION_TEST=1 -DSECONDARY_DJW=1 -DSECONDARY_FGK=1 -DXD3_POSIX=1 
-DXD3_MAIN=1  -DXD3_DEBUG=0 -ggdb -O2 -pipe 
-Wimplicit-function-declaration 
-fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/build=/usr/src/debug/xdelta-3.0.9-1 
-fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9=/usr/src/debug/xdelta-3.0.9-1 
-MT xdelta3-xdelta3.o -MD -MP -MF .deps/xdelta3-xdelta3.Tpo -c -o 
xdelta3-xdelta3.o `test -f 'xdelta3.c' || echo 
'/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/'`xdelta3.c
In file included from 
/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.h:43:0,
                  from 
/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.c:267:
/usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
  bintime_mul(struct bintime *_bt, u_int _x)
                                   ^
Makefile:657: recipe for target 'xdelta3-xdelta3.o' failed
make[1]: *** [xdelta3-xdelta3.o] Error 1
make[1]: Leaving directory 
'/cygdrive/e/cyg_pub/devel/xdelta/xdelta-3.0.9-1.i686/build'
Makefile:486: recipe for target 'all' failed
make: *** [all] Error 2

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: time.h missing scope ?
  2015-07-05 12:10 time.h missing scope ? Marco Atzeri
@ 2015-07-05 14:14 ` Corinna Vinschen
  2015-07-05 14:27   ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2015-07-05 14:14 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]

Hi Marco,

On Jul  5 14:10, Marco Atzeri wrote:
> 
> u_int is defined in
>  /usr/include/sys/types.h
> and
>  /usr/include/sys/time.h
> includes it, but it is coveread by a
> 
>  # ifndef        _POSIX_SOURCE
> 
> 
> 
> 
> make[1]: Entering directory
> '/cygdrive/e/cyg_pub/devel/xdelta/xdelta-3.0.9-1.i686/build'
> gcc -DHAVE_CONFIG_H -I.
> -I/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9    -Wall -Wshadow
> -fno-builtin -Wextra -Wsign-compare -Wextra -Wno-unused-parameter
> -Wno-unused-function  -D_GNU_SOURCE -DREGRESSION_TEST=1 -DSECONDARY_DJW=1
> -DSECONDARY_FGK=1 -DXD3_POSIX=1 -DXD3_MAIN=1  -DXD3_DEBUG=0 -ggdb -O2 -pipe
> -Wimplicit-function-declaration -fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/build=/usr/src/debug/xdelta-3.0.9-1 -fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9=/usr/src/debug/xdelta-3.0.9-1
> -MT xdelta3-xdelta3.o -MD -MP -MF .deps/xdelta3-xdelta3.Tpo -c -o
> xdelta3-xdelta3.o `test -f 'xdelta3.c' || echo
> '/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/'`xdelta3.c
> In file included from
> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.h:43:0,
>                  from
> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.c:267:
> /usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
>  bintime_mul(struct bintime *_bt, u_int _x)
>                                   ^

How come?  Is _POSIX_SOURCE set somehow?  Maybe the definitions
of u_int etc. should use #ifdef _BSD_VISIBLE instead...

Would you mind to report this on the newlib list as reply to
https://sourceware.org/ml/newlib/2015/msg00225.html
?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: time.h missing scope ?
  2015-07-05 14:14 ` Corinna Vinschen
@ 2015-07-05 14:27   ` Marco Atzeri
  2015-07-06 10:03     ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2015-07-05 14:27 UTC (permalink / raw)
  To: cygwin

On 7/5/2015 4:13 PM, Corinna Vinschen wrote:
> Hi Marco,
>

>> In file included from
>> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.h:43:0,
>>                   from
>> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.c:267:
>> /usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
>>   bintime_mul(struct bintime *_bt, u_int _x)
>>                                    ^
>
> How come?  Is _POSIX_SOURCE set somehow?  Maybe the definitions
> of u_int etc. should use #ifdef _BSD_VISIBLE instead...

_POSIX_SOURCE is set.
I was trying to solve an issue with another function that
requires XSI...


> Would you mind to report this on the newlib list as reply to
> https://sourceware.org/ml/newlib/2015/msg00225.html
> ?

Noted

> Thanks,
> Corinna
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: time.h missing scope ?
  2015-07-05 14:27   ` Marco Atzeri
@ 2015-07-06 10:03     ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2015-07-06 10:03 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

On Jul  5 16:27, Marco Atzeri wrote:
> On 7/5/2015 4:13 PM, Corinna Vinschen wrote:
> >Hi Marco,
> >
> 
> >>In file included from
> >>/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.h:43:0,
> >>                  from
> >>/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.c:267:
> >>/usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
> >>  bintime_mul(struct bintime *_bt, u_int _x)
> >>                                   ^
> >
> >How come?  Is _POSIX_SOURCE set somehow?  Maybe the definitions
> >of u_int etc. should use #ifdef _BSD_VISIBLE instead...
> 
> _POSIX_SOURCE is set.
> I was trying to solve an issue with another function that
> requires XSI...
> 
> 
> >Would you mind to report this on the newlib list as reply to
> >https://sourceware.org/ml/newlib/2015/msg00225.html
> >?
> 
> Noted

Thanks.  I followed up on the newlib list.
https://sourceware.org/ml/newlib/2015/msg00520.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-06 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-05 12:10 time.h missing scope ? Marco Atzeri
2015-07-05 14:14 ` Corinna Vinschen
2015-07-05 14:27   ` Marco Atzeri
2015-07-06 10:03     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).