[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19990928: Compiling McIDAS on Irix 5.3
- Subject: 19990928: Compiling McIDAS on Irix 5.3
- Date: Tue, 28 Sep 1999 17:23:01 -0600
>From: Erick Lorenz (address@hidden) <address@hidden>
>Organization: UC Davis
>Keywords: 199909220002.SAA11738 McIDAS X
Erick,
>I am trying to build McIDAS-X and McIDAS-XCD on ATM23, the Indy running
>Irix 5.3. I am using the SGI's C and F77 compilers.
>
>The build failed and these are the messages in makelog
>=====================================================================
>compile fsalloc.c: done
>./mccomp -O -vendor -I. -I../netcdf/libsrc -c fslen.c
>cc -c -woff 1209,1233 -O -I. -I../netcdf/libsrc fslen.c
>compile fslen.c: done
>./mccomp -O -vendor -I. -I../netcdf/libsrc -c ftogif_.c
>cc -c -woff 1209,1233 -O -I. -I../netcdf/libsrc ftogif_.c
>cfe: Warning 709: ftogif_.c, line 77: Incompatible pointer type assignment
> flags = (const M0frameflags *)FrameData;
> ----------------^
>compile ftogif_.c: done
>./mccomp -O -vendor -I. -I../netcdf/libsrc -c gpnav.c
>cc -c -woff 1209,1233 -O -I. -I../netcdf/libsrc gpnav.c
>compile gpnav.c: done
>./mccomp -O -vendor -I. -I../netcdf/libsrc -c Graphics.c
>cc -c -woff 1209,1233 -O -I. -I../netcdf/libsrc Graphics.c
>cfe: Error: /usr/include/sys/shm.h, line 68: member cannot be of function
>or incomplete type.
> struct ipc_perm shm_perm;
> --------------- ^
>cfe: Error: /usr/include/sys/shm.h, line 68: storage size for 'shm_perm'
>isn't known
> struct ipc_perm shm_perm;
> --------------- ^
>cfe: Error: Graphics.c, line 116: 'IPC_PRIVATE' undefined; reoccurrences
>will not be reported.
> key=shmget(IPC_PRIVATE, size, 0400 | 0200 );
> ---------------^
>cfe: Error: Graphics.c, line 203: 'IPC_RMID' undefined; reoccurrences will
>not be reported.
> shmctl((m0posuc[UC_GRAPHICS_MEMORY_KEY]) ,IPC_RMID,0);
> ----------------------------------------------^
>cfe: Error: Graphics.c, line 1059: 'IPC_PRIVATE' undefined; reoccurrences
>will not be reported.
> NewKey=shmget(IPC_PRIVATE, size, 0400 | 0200 );
> ------------------^
>cfe: Error: Graphics.c, line 1087: 'IPC_RMID' undefined; reoccurrences will
>not be reported.
> shmctl((m0posuc[UC_GRAPHICS_MEMORY_KEY]) ,IPC_RMID,0);
> ----------------------------------------------^
>compile Graphics.c: FAILED
>=========================================================================
>Any ideas?
The errors above are showing us that there are some defines in an include
file that are not being found. I looked on our IRIX 6.5 system and
see that the includes are in /usr/include/sys/ipc.h:
/* Keys. */
#define IPC_PRIVATE (key_t)0 /* private key */
/* Control Commands. */
#define IPC_RMID 10 /* remove identifier */
#define IPC_SET 11 /* set options */
#define IPC_STAT 12 /* get options */
On our system, sys/ipc.h is included from sys/shm.h. What you should
do is take a look in /usr/include/sys for the missing defines above.
It could be that there is a sys/ipc.h file on your system and it
is not being included by sys/shm.h, but I don't know.
If you give me a login to atm23 I will look around, but I really am out
of time right now. We have the User Committee meeting here on Th-F, and
I leave for Madison, WI on Sunday evening. I will return on Thursday
of next week and be in the office that afternoon.
Tom