-frepo different on Solaris/Linux

Ahmed Mian Syed mian@lynx.fmi.uni-passau.de
Tue Jan 25 04:10:00 GMT 2000


I'm not sure if my last EMail about this subject has reached you, but I know of
no way to find out except to remail it ..  sorry if this reaches you for a
second time.

I have problems with the -frepo option in a Linux machine (Athlon 600, 256M,
SCSI & IDE, .., SuSE 6.3 Linux, GNU ld 2.9.1 (with BFD and
SuSE-default ecgs-2.91.66 19999314 (egcs-1.1.2))

I have several sub-directories which result in 3 shared libraries (.so), which
will be linked to some main file in one of the directories.  All of them use
parts of the STL.  I use the -frepo option, applying template closure (linking
without shared-option) in order to get all template instances.

This whole project compiles perfectly ok on a SUN Solaris 2.6 machine using 'gcc
version 2.95.1 19990816 (release)' and 'ld:  Software Generation Utilities -
Solaris/ELF (3.0)'.  When linking collect2 starts some more phases of
recompiling/relinking, finishing with a complete library closure.

On Linux (I have tried several egcs-Versions and also a different P II-266
machine) the recompiling is limited to a single very short phase, after which I
get very many error messages and *no complete template closure*.  Linking the
libraries with the main file results in very many linker errors.

I have also tried to 
- copy the .rpo-files from the Solaris machine to the Linux machine and compile
  again- no success 
- link all the .o-files (using find) without building shared libraries 
  - no success.
If you wish I can send you the source code (about 2 MB in tgz) or the error 
message from the linker.  

I'd be very grateful for some help here, since I could continue to work at home 
in the evening and on weekends to reduce the time pressure for my Ph.D-thesis I 
currently have ..

Thanks a lot in advance!

Best Regards

Ahmed Mian Syed
        / 7       Ahmed Mian Syed
       |_|        Lehrstuhl fuer Systemprogrammierung
       |_|        Universitaet Passau/ FMI
       |_|        Innstr. 33
       |_| /\     
     /\|=|/ /     94032 Passau
     \ |_| /      GERMANY
      ) _  \      
     / |_|  \     Tel  : +49 851 509-3055
    /  -=-o /     Fax  : +49 851 509-3042
    \  /~\_/      email: mian@fmi.uni-passau.de

More information about the Gcc-bugs mailing list