Bug 33647 - _gfortran_copy_string missing in libgfortran.a
Summary: _gfortran_copy_string missing in libgfortran.a
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-03 18:57 UTC by Bill Long
Modified: 2007-10-03 19:22 UTC (History)
1 user (show)

See Also:
Host: x86_64-suse-linux
Target: x86_64-suse-linux
Build: x86_64-suse-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Long 2007-10-03 18:57:33 UTC
In the library .../lib64/libgfortran.a, the 4.1.2 version has a routine

  _gfortran_copy_string

in the strong_intrinsics.o component.  For the same 4.2.1 library there is no
corresponding entry point.

It appears that codes compiled with 4.1.2 generate internal calls to this entry
point.  Attempting to link a library built with 4.1.2 and a code compiled and linked with the 4.2.1 compiler results in an "undefined reference" message from the loader for _gfortran_copy_string.

Is it by design that codes compiled with 4.1.2 cannot be linked with 4.2.1? Is it a viable workaround to manually extract the string_intrinsic.o component from the old libgfortran.a file and insert it into the new libgfortran.a library, replacing the current version?
Comment 1 Andrew Pinski 2007-10-03 19:22:14 UTC
And this is by design.  gfortran 4.1 is ABI incompatiable with gfortran 4.2.  This is one of the reasons why in 4.2 (or is it only on the trunk), we added symbol versioning support.  This is not the only place where 4.1 is different from 4.2.
Comment 2 Bill Long 2007-10-03 19:44:10 UTC
Subject: Re:  _gfortran_copy_string missing in libgfortran.a

I suspected this might be the case, but did not find it documented.  
Thanks for the quick reply.

Cheers,
Bill


pinskia at gcc dot gnu dot org wrote:
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2007-10-03 19:22 -------
> And this is by design.  gfortran 4.1 is ABI incompatiable with gfortran 4.2. 
> This is one of the reasons why in 4.2 (or is it only on the trunk), we added
> symbol versioning support.  This is not the only place where 4.1 is different
> from 4.2.
>
>
>