gpc under SunOS or Solaris_(re)

Fri, 20 Sep 1996 15:29:20 -0700


Phil Nelson writes:
> Yes, I have gpc 1.2 (2.7.2) compiled and running under both SunOS and > Solaris. It is true that there are still some bugs in gpc that allow > gpc1 to core dump. Those should be reported. Several of my "standard" > programs compile and run with no problem. In fact, we have had > our students using gpc as their primary PASCAL compiler for a couple > of years. >
I found a solution for the problem I was having under SunOS. I can get the program compiled if I specify the source files, to gpc, but not if I compile the files, and link them separately. Should this be considered to be a bug? What I did, exactly: engg2 fritz 647 ( stage2/util ) > !gp gpc cutil.p space.p -x c vcf/*.c -o space.exe space.p: In function `space': space.p:114: warning: passing arg 1 of `Ustat' makes pointer from integer without a cast 4.830u 7.280s 0:17.32 69.9% 0+252k 22+126io 15pf+0w engg2 fritz 648 ( stage2/util ) > l space.exe -rwxrwxrwx 1 fritz 92131 Sep 20 15:22 space.exe* engg2 fritz 649 ( stage2/util ) > The following dumps core: engg2 fritz 654 ( util/vcf ) > gcc -c *.c rm *.^C 0.660u 1.770s 0:04.55 53.4% 0+167k 7+21io 2pf+0w engg2 fritz 655 ( util/vcf ) > rm *.o engg2 fritz 656 ( util/vcf ) > cd .. engg2 fritz 657 ( stage2/util ) > cd vcf engg2 fritz 658 ( util/vcf ) > rm *.o rm: No match. engg2 fritz 659 ( util/vcf ) > gcc -c *.c cd .. gpc 2.640u 7.730s 0:16.79 61.7% 0+177k 13+49io 13pf+0w engg2 fritz 660 ( util/vcf ) > cd .. engg2 fritz 661 ( stage2/util ) > gpc -c space.p cutil.p space.p: In function `space': space.p:114: warning: passing arg 1 of `Ustat' makes pointer from integer without a cast gp1.080u 1.320s 0:02.73 87.9% 0+395k 6+18io 3pf+0w engg2 fritz 662 ( stage2/util ) > gpc space.o cutil.o vcf/*.o -o space.exe Segmentation fault (core dumped) engg2 fritz 663 ( stage2/util ) >
Friedrich Fahnert (fritz@engg2.mobinfo.com)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es