You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@stdcxx.apache.org by David Zhang <zh...@yahoo.com> on 2007/04/01 00:14:47 UTC

help build stdcxx on BSD

Hello,

I try to build stdcxx on a BSD system but there is a problem in time_put.cpp. Can someone help?

Thank you!
David

gcc -c -I/house/zhang/stdcxx/include/ansi -D_RWSTDDEBUG    -I/house/zhang/stdcxx/include
-I/house/zhang/build/stdcxx-debug/include  -pedantic -nostdinc++ -g   -W -Wall -Wcast-qual -Winline -Wshadow
-Wwrite-strings -Wno-long-long -Wcast-align /house/zhang/stdcxx/src/time_put.cpp
/house/zhang/stdcxx/src/time_put.cpp: In function `int __rw::__rw_get_zone(__rw::__rw_time_put_data&, const char*, int)':
/house/zhang/stdcxx/src/time_put.cpp:2069: error:
`daylight' undeclared (first use this function)
/house/zhang/stdcxx/src/time_put.cpp:2069: error:
(Each undeclared identifier is reported only once for each function it
appears in.)
gmake[2]: *** [time_put.o] Error 1
gmake[2]: Leaving directory
`/house/zhang/build/stdcxx-debug/lib'
gmake[1]: *** [lib] Error 2
gmake[1]: Leaving directory
`/house/zhang/build/stdcxx-debug'
gmake: *** [libstd] Error 2



 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

Re: help build stdcxx on BSD

Posted by Martin Sebor <ms...@gmail.com>.
David Zhang wrote:
> Hello,
> 
> I try to build stdcxx on a BSD system but there is a problem in time_put.cpp. Can someone help?

Sorry about the delay getting back to you on this. I reproduced this
problem on FreeBSD 6.1. The daylight variable is an (optional) XSI
POSIX extension that's not defined on FreeBSD. I filed an issue for
you: https://issues.apache.org/jira/browse/STDCXX-387. Keep an eye
on if for patches.

Martin

> 
> Thank you!
> David
> 
> gcc -c -I/house/zhang/stdcxx/include/ansi -D_RWSTDDEBUG    -I/house/zhang/stdcxx/include
> -I/house/zhang/build/stdcxx-debug/include  -pedantic -nostdinc++ -g   -W -Wall -Wcast-qual -Winline -Wshadow
> -Wwrite-strings -Wno-long-long -Wcast-align /house/zhang/stdcxx/src/time_put.cpp
> /house/zhang/stdcxx/src/time_put.cpp: In function `int __rw::__rw_get_zone(__rw::__rw_time_put_data&, const char*, int)':
> /house/zhang/stdcxx/src/time_put.cpp:2069: error:
> `daylight' undeclared (first use this function)
> /house/zhang/stdcxx/src/time_put.cpp:2069: error:
> (Each undeclared identifier is reported only once for each function it
> appears in.)
> gmake[2]: *** [time_put.o] Error 1
> gmake[2]: Leaving directory
> `/house/zhang/build/stdcxx-debug/lib'
> gmake[1]: *** [lib] Error 2
> gmake[1]: Leaving directory
> `/house/zhang/build/stdcxx-debug'
> gmake: *** [libstd] Error 2
> 
> 
> 
>  
> ____________________________________________________________________________________
> TV dinner still cooling? 
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/