There is a config.h file in the octave directory so I'm a little confused as to why it isn't seen. I read some old threads about specifying the path to the config.h file, but if it's in the octave directory...
Thanks a lot,
"There is a config.h file in the octave directory" : Octave use a lot of directories. Could you tell us the way you installed Octave, your platform ? If you installed it from some linux distribution, did you install the development package too (octave-dev or something like that) ? At first sight, those messages indicate that the include file specific to Octave and required to build .oct files are either missing, either not found by the compiler.