[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20060106: Installing ldm-mcidas-2004 (pnga2area) on Mac OS X 10.4



>From: Dave Dempsey <address@hidden>
>Organization: SFSU
>Keywords: 200601070616.k076Gx7s018370 ldm-mcidas MacOS-X

Hi Dave,

re:
>I've bitten the bullet, jumped off the cliff, and otherwise committted
>myself to switching my LDM server from a Solaris x86 Pentium II dinosaur
>to a state of the art PowerMac G5 running OS X 10.4.

That is brave!

>The LDM is installed and running OK, I think.

What version of the LDM?

>Now it's ldm-mcidas-2004's turn, because I want a
>copy of the pnga2area decoder. (I don't think I need anything else.)

'pnga2area' is the most used of the decoders in the ldm-mcidas package.

>This isn't going so well.

I have never tried to build ldm-mcidas under MacOS-X, so this is not
suprising to me.

>   A. The output of "uname -a" is:
>
>Darwin ai-01 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT
>2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc
>
>   B. File VERSION is attached.
>
>   C. C compiler: /usr/bin/c89  (or is this a C++ compiler, or both?)
>      Fortran compiler: /sw/bin/g77 (does the installation know this?)
>
>   D. File configure.log is attached.
>
>   E. File config.log is attached.
>
>   F. File make.log is attached.
>
>Of course, the make.log file contains the error message that I don't know
>how to address.

The error shown:

 ...
making `current' in directory /usr/local/src/ldm-mcidas-2004/src/decode

test -r udalloc.c || ln -s ../port/misc/udalloc.c udalloc.c
c89 -c -O -I/usr/local/src/mcidas/src -I/usr/local/ldm/include -I../libpng 
-I../zlib -I../port/misc -I../port/cfortran -I/usr/local/netcdf/include  alarm.c
In file included from alarm.c:10:
/usr/local/ldm/include/ulog.h:96: error: parse error before 'va_list'
alarm.c: In function 'alarm_destroy':
alarm.c:93: warning: incompatible implicit declaration of built-in function 
'memset'
make[2]: *** [alarm.o] Error 1
make[1]: *** [decode/current] Error 1
+ set +x

is a new one for me.

My first inclination would be to clean up the build:

make distclean

Define CC to use gcc instead of c89:

CC=gcc

And rerun configure and make.  I see, however, that you said below that
you didn't have any luck specifying gcc for your C compiler.

>I don't have MCIDAS installed, but the configure script won't run to
>completion unless I tell it what CPP_MCIDAS and LD_MCIDAS are, so I give
>these variables bogus values and hope for the best. The script then runs
>to completion.

This was what I would do also.

>The only Fortran compiler I've got installed is g77. I could try the
>installation on another machine that has IBM's xlf v.8.1 installed, but
>the Fortran compiler doesn't seem to be the problem here.

I agree.  I use g77 to build McIDAS under MacOS-X, so I don't suspect
it on your machine.

>I tried moving into src/decode and running "make pnga2area" with the local
>Makefile there, but no luck.

The error I see is in compiling alarm.c.  Try compiling this by hand
using gcc or cc instead of c89:

gcc -c -I/usr/local/ldm/include -I../libpng -I../zlib -I../port/misc 
-I../port/cfortran -I/usr/local/netcdf/include  alarm.c

What we have to figure out is how to get past the alarm.c compile.

>Is there a correct way to compile pnga2area and nothing else?

Your inclination of running make from the top level directory first
and then running make from the src/decode directory is exactly what
I would have done.

>Do I need to install MCIDAS first, or is there something simpler that I'm
>missing? (I haven't had any better luch specifying gcc as my C compiler.)

I don't think that the McIDAS library is needed to link pnga2area.

Is there any chance I could get a login to your machine so I could
poke around?

>****************************************************************
>*                                      |         __ __    \|/  *
>*   Dr. Dave Dempsey                   | )   ^  /|| ||\  --0-- *
>*   Dept. of Geosciences               |) ) ^  / ||_|| \  /|\  *
>*   San Francisco State University     | ) )  /  | _ |  \      *
>*   1600 Holloway Ave.                 |)   )/   || ||   \     *
>*   San Francisco, CA   94132          | )   )   ||_||    \    *
>*                                      |)  ) )   | _ |     \   *
>*   Phone:  (415) 338-7716             |  )   )  || ||      \  *
>*   FAX:    (415) 338-7705             |)   )  )~~~~~~~~~~~~~~~*
>*   Email:  address@hidden   |  )  )  )  ~  ~   ~ ~  *
>*                                      |)  )   ) )  ~   ~  ~   *
>****************************************************************

Cheers,

Tom
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.