From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9705061416.AA35090@hellfire.dusers.drexel.edu> Date: Tue, 6 May 1997 10:16:03 -0400 From: J Subject: Help! f2c suddenly broken. 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