delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/21/04:22:03

Date: Wed, 21 Sep 1994 09:06:42 -0200
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: kurgan AT dist DOT dist DOT unige DOT it (Paolo Baiardi)
Subject: f2c compiled with gpp

I've recently compiled the f2c utility with gpp ( thanks DJ! ), starting from the general
Unix sources. I've tested it with the DASSL package, a package for solving differential
equation systems of index zero/one. Only some minor changes in the sources were required,
so the porting has been very easy. Even if there weren't problems during compilations, the
DASSL code, traduced and linked with the two libraries built, libI77.a and libF77.a, didn't work.
The program died without explicit reasons, or reporting SIGSEV in internal routines.
At first, I considered the f2c program guilty, and cross-checked the traduction of DASSL with
the traduction done by f2c running on a workstation, but there was no difference. So I looked at the two libraries. The makefiles performed the following operations on the object code:

.c.o:
        $(CC) -O -c -DSkip_f2c_Undefs $*.o
        ld -r -x $*.o
        ^^^^^^^^^^^^^
        mv a.out $*.o
        ^^^^^^^^^^^^^^^

This reduced the dimension of the library by stripping some symbols. I compiled again the
libraries, this time without stripping, and the code worked flawlessy.
Could someone explain to me why this happened ?
Thanks in advance,
                                                        Paolo
        
--
+-----------------------------------------------------------------------------+
| Paolo Baiardi                 >kurgan AT dist DOT dist DOT unige DOT it<                   |
|                                                                             |
| "I work for the county out on 95                                            |
|  All day I hold a red flag and watch the traffic pass me by                 |
|  In my head a keep a picture of a pretty little miss                        |
|  Someday Mister I'm gonna lead a better life than this"                     |
|  [ Working on a highway - Bruce Springsteen ]                               |
+-----------------------------------------------------------------------------+
~


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019