From: T. S. Horsnell <tsh@mrc-lmb.cam.ac.uk>
Subject: Re: Help! f2c suddenly broken.
Date: Tue, 6 May 1997 16:47:42 +0100 (BST) [thread overview]
Message-ID: <8610586611b1d42c0c8705d287901df5.axp-list@archive.invalid> (raw)
In-Reply-To: <9705061416.AA35090@hellfire.dusers.drexel.edu>
It works for me provided I install the f2c-libs before the f2c.
Otherwise it fails at run-time with:
libf2c.so.0: cannot open shared object file: No such file or directory
It works in either case if I link -static.
I have:
f2c-libs-19960205-6
f2c-19960205-6
gcc-2.7.2.1-2
gcc-c++-2.7.2.1-2
glibc-0.961212-3
glibc-devel-0.961212-3
glibc-static-0.961212-3
They installed straight out of the box.
Hope this helps.
--Terry Horsnell.
>
>Help! I suddenly find that I can't compile any fortran programs with f2c.
>I'm using RedHat 4.1, with all the updates available as of last week installed.
>It used to work, but now any fortran program I try to compile gets a
>segmentation fault at startup. For example, the following program
>
> PROGRAM SMTEST
> DO 10 I=1, 10
> PRINT *, 'Hello World #', I
>10 CONTINUE
> END
>
>compiled with
>
>f2c smtest.f
>gcc -ggdb -o smtest smtest.c -lf2c
>
>when run under gdb gives
>
>(gdb) run
>Starting program: /usr/home/sundiver/ftest/smtest
>Program received signal SIGSEGV, Segmentation fault.
>0x15555674ee8 in t_putc ()
>(gdb) bt
>#0 0x15555674ee8 in t_putc ()
>#1 0x1555567523c in lwrt_A ()
>#2 0x1555567594c in l_write ()
>#3 0x1555566f670 in do_lio ()
>#4 0x120000898 in MAIN__ () at smtest.c:28
>#5 0x15555675bf8 in main ()
>(gdb)
>
>
>I reinstalled the following packages,
>
>gcc-2.7.2.1-2.alpha.rpm
>gcc-objc-2.7.2.1-2.alpha.rpm
>gcc-c++-2.7.2.1-2.alpha.rpm
>glibc-profile-0.961212-3.alpha.rpm
>glibc-devel-0.961212-3.alpha.rpm
>glibc-static-0.961212-3.alpha.rpm
>glibc-info-0.961212-3.alpha.rpm
>glibc-0.961212-4.alpha.rpm
>f2c-19960205-6.axp.rpm
>f2c-libs-19960205-6.axp.rpm
>
>but no go. Things are still broken.
>
>I also tried recompiling the f2c source RPMs. It doesn't build 'out of the box'
>though. One of the I77 header files defines X to be 4, and then X is used
>as the name of a stucture member in stdlib.h. Changing the order in which
>the headers are included fixes things, but I would think that the source RPM
>should compile without modification. Can anyone confirm that the f2c source
>RPM is broken, or do I maybe have something wrong with my installation.
>Even after fixing this and getting f2c to compile, I still have the same
>problem as above.
>
>This leads me thing that maybe my header files are screwed up somehow, but
>I would think reinstalling the above packages would have fixed that.
>
>Does anyone have any suggestions? I'm kind of desperate here. I need a fortran
>compiler. I suppose I could try reinstalling linux, but, unfortunately, I
>really don't have the time for that. It took me a few days to get things set
>up right the last time I did the install.
>
>Note that I don't seem to have any problems with c or c++ programs, so gcc
>itself seems to be working ok.
>
>Any help or suggestions would be greatly appreciated. Thanks.
>
>- J
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
prev parent reply other threads:[~1997-05-06 15:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-06 14:16 Help! f2c suddenly broken J
1997-05-06 15:47 ` T. S. Horsnell [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox