public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
@ 2003-05-10 10:10 Dara Hazeghi
  0 siblings, 0 replies; 4+ messages in thread
From: Dara Hazeghi @ 2003-05-10 10:10 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/5627; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: paulf@sea.checkpoint.com, gcc-gnats@gcc.gnu.org, marka@sea.checkpoint.com,
   bkoz@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
Date: Sat, 10 May 2003 03:04:40 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=5627
 
 Hello,
 
 what's the current status of this bug? The report hasn't been updated  
 since May 3, 2002, when Ben said he was going to take care of it. Is  
 the problem in this report still present? If so, is anyone working  
 fixing it? Thanks,
 
 Dara
 


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

* Re: libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
@ 2003-05-10 18:16 Dara Hazeghi
  0 siblings, 0 replies; 4+ messages in thread
From: Dara Hazeghi @ 2003-05-10 18:16 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/5627; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
Date: Sat, 10 May 2003 11:06:19 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=5627
 
 Note that e-mail to the original submitters bounced.
 


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

* Re: libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
@ 2002-05-03 18:17 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-05-03 18:17 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, marka, nobody, paulf

Synopsis: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Fri May  3 18:17:31 2002
Responsible-Changed-Why:
    By request.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5627


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

* libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
@ 2002-02-07 13:16 paulf
  0 siblings, 0 replies; 4+ messages in thread
From: paulf @ 2002-02-07 13:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: marka


>Number:         5627
>Category:       libstdc++
>Synopsis:       cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 07 13:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Forgey
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
sparc-sun-solaris2.7
>Description:
when _FILE_OFFSET_BITS is set to `64', the system's stdio.h will actually make the symbols fopen, freopen, tmpfile, fgetpos and fsetpos unavailable at all, even as normal function definitions, if they are #undef'd.  This causes the later part of the header file pulling these into namespace std to fail with complaints these symbols are undefined.
>How-To-Repeat:
attempt to build Berkeley db-3.3.11 after passing --enable-cxx to the configure script.
>Fix:
This is probably not the best fix, but it got me past the issue.  Somebody who knows their way around the solaris headers better than I do could probably come up with a more "real" fix:

in $prefix/include/g++-v3/bits/std_cstdio.h, remove the #undef macros for these symbols, and add the following code at line 43 (right after #include <stdio.h>):

// The following functions _can not_ be #undef'd if we are using 64
// bit file pointers
#if ! (defined (sun) && !defined (_LP64) && _FILE_OFFSET_BITS == 64)

#undef fopen
#undef freopen
#undef tmpfile
#undef fgetpos
#undef fsetpos

#endif // whew

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-10 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-10 10:10 libstdc++/5627: cstdio header failes to compile on sparc-sun-solaris2.7 with _FILE_OFFSET_BITS == 64 Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2003-05-10 18:16 Dara Hazeghi
2002-05-03 18:17 bkoz
2002-02-07 13:16 paulf

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