public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/43738]  New: basic_file_stdio.cc uses ioctl on a fd, but not available on mingw32
@ 2010-04-12 23:33 sherpya at netfarm dot it
  2010-04-12 23:34 ` [Bug libstdc++/43738] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: sherpya at netfarm dot it @ 2010-04-12 23:33 UTC (permalink / raw)
  To: gcc-bugs

basic_file_stdio.cc in __basic_file<char>::showmanyc()
uses ioctl with FIONREAD, but the equivalent on win32 is ioctlsocket,
perhaps not usable here, because I think there is not support for socket here
in gcc (I'm wrong?)

anyway it does not compiles
I solve this by commenting out that part

    int __r = ioctl(this->fd(), FIONREAD, &__num);
    if (!__r && __num >= 0)
      return __num;

the problem still there since 4.3 iirc, I'm the only that noticed it?
there is something wrong in my setup?

my configure options:

../gcc/configure                            \
    --prefix=/mingw                         \
    --disable-bootstrap                     \
    --with-gnu-ld                           \
    --target=i686-pc-mingw32                \
    --with-tune=generic                     \
    --with-cpu=i686                         \
    --disable-cpp                           \
    --disable-win32-registry                \
    --disable-shared                        \
    --enable-static                         \
    --program-suffix=-4.6                   \
    --enable-version-specific-runtime-libs  \
    --enable-languages=c,c++                \
    --enable-cld                            \
    --enable-__cxa_atexit                   \
    --disable-werror                        \
    --disable-checking                      \
    --enable-multilib                       \
    --enable-threads=posix                  \
    --disable-libssp                        \
    --with-dwarf2                           \
    --disable-nls                           \
    --with-ppl                              \
    --disable-cloog                         \
    --enable-libgomp


-- 
           Summary: basic_file_stdio.cc uses ioctl on a fd, but not
                    available on mingw32
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sherpya at netfarm dot it
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43738


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

end of thread, other threads:[~2010-08-13 18:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 23:33 [Bug libstdc++/43738] New: basic_file_stdio.cc uses ioctl on a fd, but not available on mingw32 sherpya at netfarm dot it
2010-04-12 23:34 ` [Bug libstdc++/43738] " pinskia at gcc dot gnu dot org
2010-04-12 23:36 ` sherpya at netfarm dot it
2010-04-15  0:55 ` paolo dot carlini at oracle dot com
2010-04-15  1:03 ` davek at gcc dot gnu dot org
2010-04-15  1:17 ` davek at gcc dot gnu dot org
2010-04-15  3:10 ` paolo dot carlini at oracle dot com
2010-04-15  7:54 ` dannysmith at users dot sourceforge dot net
2010-04-15 10:04 ` sherpya at netfarm dot it
2010-04-15 10:13 ` davek at gcc dot gnu dot org
2010-04-15 16:04 ` paolo dot carlini at oracle dot com
2010-04-20 21:27 ` paolo dot carlini at oracle dot com
2010-04-21  2:17 ` davek at gcc dot gnu dot org
2010-04-21  3:36 ` paolo dot carlini at oracle dot com
2010-04-22 15:32 ` sherpya at netfarm dot it
2010-08-13 18:00 ` paolo dot carlini at oracle dot com

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).