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

[no subject]



Hi Harry,

> To: address@hidden
> From: Harry Edmon <address@hidden>
> Subject: ldm 5.2.1 on linux
> Organization: UCAR/Unidata
> Keywords: 200209181851.g8IIpv110206

The above message contained the following:

> I am trying to compile 5.2.1 under Debian linux.  I get the following:
> 
> c89 -O -I../config -I. -I../misc -I../ulog -I../protocol -DHAVE_CONFIG_H -c -o
> h_clnt.o h_clnt.c
> In file included from h_clnt.c:38:
> ../misc/alrm.h: In function `mysignal':
> ../misc/alrm.h:42: storage size of `sigact' isn't known
> ../misc/alrm.h:42: storage size of `oact' isn't known
> ../misc/alrm.h: At top level:
> ../misc/alrm.h:62: parse error before `env'
> ../misc/alrm.h:62: warning: data definition has no type or storage class
> h_clnt.c: In function `set_begin':
> h_clnt.c:408: storage size of `tz' isn't known
> make[2]: *** [h_clnt.o] Error 1
> make[2]: Leaving directory `/usr/local/ldm/ldm-5.2.1/src/protocol'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/usr/local/ldm/ldm-5.2.1/src'
> make: *** [protocol/all] Error 2

We don't have that platform, so we can't duplicate the problem (our
Red Hat Linux system doesn't even have "c89").

> If I make it use "cc" instead of "c89", it works fine.

Then use "c89".   :-)

According to the UNIX standard, the struction "sigaction" is defined in
the header-file <signal.h>, which is included by "misc/alrm.h".  It
might be that this definition isn't made unless the _POSIX_C_SOURCE
feature test macro is defined.  Would you do me a favor and define that
macro at the top of header-file config/ldmconfig.h.in, re-execute the
configure script with "c89" as the compiler, and try rebuilding the
package?

Please let me know what you discover.

>  Dr. Harry Edmon                      E-MAIL: address@hidden
>  206-543-0547                                 address@hidden
>  Dept of Atmospheric Sciences         FAX:    206-543-0308
>  University of Washington, Box 351640, Seattle, WA 98195-1640

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>