This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: uclibc and libstdc++ and tmpnam


On Wed, 2013-12-04 at 21:41 +0000, Jonathan Wakely wrote:
> On 4 December 2013 21:34, Steve Ellcey wrote:
> >
> > I was trying to build a GCC toolchain with uclibc and ran into this
> > problem:
> >
> > /local/home/sellcey/gcc/uclibc/obj-mips-mti-linux-uclibc/gcc/final/mips-mti-linux-uclibc/libstdc++-v3/include/cstdio:140:11: error: '::tmpnam' has not been declared
> >    using ::tmpnam;
> >
> > Some searching led me to this email string from earlier this year:
> >
> >         http://gcc.gnu.org/ml/libstdc++/2013-04/msg00013.html
> >
> > But it doesn't look like anything has been checked in.  Does anyone know
> > what the state of this issue is?  Should I go off and bug the uclibc
> > people?
> 
> The thread was resurrected last month:
> http://gcc.gnu.org/ml/libstdc++/2013-11/msg00034.html
> I approved it here:
> http://gcc.gnu.org/ml/libstdc++/2013-11/msg00064.html

Jonathan,

I tried pinging Bernhard about this patch but didn't hear back, would
it be OK for me to check this in on his behalf?  The only change I
made to his patch was to use tmpnam(NULL) in GLIBCXX_CHECK_TMPNAM
instead of tmpnam("NULL").   I think that makes more sense since tmpnam
is going to try and write to the buffer that you pass it as an argument
(if it is not null) and so passing a constant string does not make
sense.  I tested it with my mips-mti-linux-gnu target and made sure that
tmpnam was found when using glibc and not found with uclibc and that
both builds worked.

Steve Ellcey
sellcey@mips.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]