On Fri, 27 Jul 2007, Graham Jenkins wrote:
> We've started using the above, compile with the Intel Fortran 10.0.25
> and gcc 4.4.1 on an x86_64 bit machine running SL5. And it worked fine
> until somebody noticed that idt wasn't doing it's thing properly because
> we'd forgotten to put /usr/include/X11/Xaw in the search path.
> So we compiled it all again .. with that added, and also with
> /usr/lib/bcc/include (for stddef.h and stdarg.h). Here are the
> appropriate lines from Site.local:
> --
> #define LibSearch -L/usr/lib64 -L/usr/lib
> #define IncSearch -I/usr/include/X11 -I/usr/include/X11/Xmu
> -I/usr/include/X11/Xaw -I/usr/lib/bcc/include
Hi Graham,
There's a small correction needed here. The X11 include files in the
idt directory (and elsewhere) are generally loaded with statements
like:
#include <X11/Xaw/xxxx.h>
#include <X11/Xmu/xxxx.h>
#include <X11/xxxx.h>
In order to help the compiler find the location of your X11 include
files, then, you want to give it the path leading *up to* the X11
directory, and not to the X11/Xaw and X11/Xmu directories. Hence, the
following should be enough:
#define IncSearch -I/usr/include -I/usr/lib/bcc/include
And, in fact, you may not even need the "-I/usr/include" if your
compiler is smart enough to look there automatically:
#define IncSearch -I/usr/lib/bcc/include
> #define BuildNCL FALSE
> #define BuildWithF90 TRUE
> #define FCompiler ifort
> #define BuildRasterHDF FALSE
> --
>
> And here's what comes out :(
> --
> Making ./ngmath/src/lib/gridpack/natgrid
> nncrunchd.c:355: error: ‘RAND_MAX’ undeclared
RAND_MAX should be defined in the "stdlib.h" include file, which is
generally in /usr/include. Or, it should at least it should be
included by another "*.h" file that is included by stdlib.h. For
example, on the Suns, RAND_MAX is defined in
/usr/include/iso/stdlib_iso.h which is included by stdlib.h.
"stdlib.h" is included by the Ngmath software, so RAND_MAX should be
getting defined. If you type:
cd /usr/include
find . -type f -print -exec grep RAND_MAX {} \; > & ! ~/randout
and then look at the "~/randout" file, do you see where RAND_MAX is
defined? I think what *might* be happening is that there's a macro
#if statement around the definition of RAND_MAX in your system include
file, and perhaps some compile option you're using is causing this
if statement to not be reached.
Can you send me the full compile line that is being used when
"nncrunchd.c" is compiled? If it's easier, you can send me the whole
make-output file.
As for the wchar_t problem, again, if I could see your make-output
file, I might be able to tell what's going on there.
Thanks,
--Mary
> Making install in ./ncarview/src/lib/libncarg_ras
> /usr/include/X11/Xlib.h:1107: error: expected specifier-qualifier-list
> before ‘wchar_t’
> ..
> /usr/include/X11/Xlib.h:3662: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’
> token
> ..
> --
>
> So .. anyone got any idea what's going on here please?
> --
> Graham Jenkins
> Senior Software Specialist, E-Research
>
> Email: Graham.Jenkins_at_its.monash.edu.au
> Tel: +613 9905-5942
> Mob: +614 4850-2491
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Fri Jul 27 2007 - 07:33:12 MDT
This archive was generated by hypermail 2.2.0 : Fri Jul 27 2007 - 08:08:37 MDT