It's difficult to say what the problem really is, but the
C include files on Linux machines are a little bit wierd.
There are so many versions of Linux about, and each one
seems to have its own quirks. It can be very difficult to
properly diagnose the problems without access to the
machines.
You may be able to get more clues by running spm_vol_access.h
through the gcc pre-processor:
gcc -E spm_vol_access.h
and paying particular attention to any lines that define a type
for `caddr_t'.
I'm sorry I cant offer much more help here,
-John
| We are trying to compile spm99b on Red Hat linux 6.1, as we were having
| problems with the compiled binaries (uicontrol errors causing matlab5.3 to
| crash horribly).
|
| Firstly will this work with Matlab5.3 and if so can someone point me in
| the right direction to remove the following errors on compilation:
|
| -------------
| # ./spm_MAKE.sh gcc
|
| SPM mex file compile for gcc
|
| optimised standard unix compile for gcc
| this should work on Sun, Linux etc
| Note that the path to the gccopts.sh file may need changing.
|
| Compiling volume utilities...
|
| mex COPTIMFLAGS=-O2 -f ./gccopts.sh
| In file included from spm_mapping.h:6,
| from spm_mapping.c:14:
| spm_vol_access.h:23: parse error before `caddr_t'
| spm_vol_access.h:23: warning: no semicolon at end of struct or union
| spm_vol_access.h:30: parse error before `}'
| spm_vol_access.h:30: warning: data definition has no type or storage class
| spm_vol_access.h:42: parse error before `caddr_t'
| spm_vol_access.h:42: warning: no semicolon at end of struct or union
| spm_vol_access.h:44: parse error before `}'
| spm_vol_access.h:44: warning: data definition has no type or storage class
| spm_vol_access.h:48: parse error before `MAPTYPE'
| spm_vol_access.h:51: parse error before `MAPTYPE'
| spm_vol_access.h:57: parse error before `MAPTYPE'
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|