This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20788] Loading libgfortran.so clobbers C redirection of stdin
- From: "ripley at stats dot ox dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2005 18:33:17 -0000
- Subject: [Bug libfortran/20788] Loading libgfortran.so clobbers C redirection of stdin
- References: <20050406122445.20788.ripley@stats.ox.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ripley at stats dot ox dot ac dot uk 2005-04-10 18:33 -------
Subject: Re: Loading libgfortran.so clobbers C
redirection of stdin
Thank you for the suggestion, which had already been tried. It does not
always work as the static library is not compiled with -fPIC and so cannot
be linked into DSOs to be dlopen-ed. E.g. it fails on x86_64.
Being unable to correctly compile a GNU project (R is a GNU project) with
silent errors seems to us to be a quite serious bug. It make
gcc4/gfortran unusable on a common platform (x86_64), and easy to break on
many others. (R is an extensible system, and loading any extension
compiled against a dyanmic libgfortran leads silently to incorrect
results.)
On Sun, 10 Apr 2005, fxcoudert at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-10 10:38 -------
> For your problem, an easy solution is to use static linking, which seems to
> avoid that issue (that is, you program works as expected without having to set
> GFORTRAN_STDIN_UNIT).
>
> Otherwise, I commited a patch to fix the issue with negative GFORTRAN_*_UNIT
> being ignored (on mainline only).
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Last reconfirmed|2005-04-10 10:20:45 |2005-04-10 10:38:34
> date| |
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20788
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20788