pete@altair.dartmouth.edu (Peter Schmitt) (06/11/91)
`sh cflags perly.o` perly.c CCCMD = cc -c -DLANGUAGE_C -Olimit 2900 -O ccom: Error: ./cmd.h, line 148: unknown size CSV * volatile curcsv = ((CSV*)0); ------------------------^ ccom: Error: ./cmd.h, line 148: unknown size CSV * volatile curcsv = ((CSV*)0); ------------------------------------^ ccom: Error: ./cmd.h, line 148: operands of = have incompatible types CSV * volatile curcsv = ((CSV*)0); ------------------------------------^ I see that CSV is defined in perl.h. Any help would be apprecaited. Anyone get perl 4.010 to compile on 4.2? -pete
frank@croton.nyo.dec.com (Frank Wortner) (06/12/91)
I had a similar problem until I edited config.sh and changed d_volatile='define' to d_volatile='undef' All other options were the defaults selected by Configure. The result was a working perl executable that passed all tests. Particulars: ULTRIX 4.2, Perl 4.0 patchlevel 10, regular C compiler (cc). Frank
rick@sparky.IMD.Sterling.COM (Richard Ohnemus) (06/14/91)
In article <1991Jun10.210321.3181@dartvax.dartmouth.edu> pete@altair.dartmouth.edu (Peter Schmitt) writes: > >`sh cflags perly.o` perly.c > CCCMD = cc -c -DLANGUAGE_C -Olimit 2900 -O >ccom: Error: ./cmd.h, line 148: unknown size > CSV * volatile curcsv = ((CSV*)0); > ------------------------^ >ccom: Error: ./cmd.h, line 148: unknown size > CSV * volatile curcsv = ((CSV*)0); > ------------------------------------^ >ccom: Error: ./cmd.h, line 148: operands of = have incompatible types > CSV * volatile curcsv = ((CSV*)0); > ------------------------------------^ > >I see that CSV is defined in perl.h. Any help would be apprecaited. >Anyone get perl 4.010 to compile on 4.2? > >-pete The Ultrix 4.2 C compiler doesn't really understand volatile. (Or if it does, it doesn't in all cases.) This should work: 1. Change the value of d_volatile in config.sh to 'undef' 2. doSH 3. make depend 4. make -- I never receive credit for anything I write! (I'm an Ohnemus. 8-) Rick Ohnemus UUCP: uunet!sparky!rick Sterling Software IMD INTERNET: rick@sparky.IMD.Sterling.COM 1404 Ft. Crook Rd. South Phone: (402) 291-8300 Bellevue, NE. 68005-2969 FAX: (402) 291-4362