This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Neil, > To: address@hidden > From: "Neil R. Smith" <address@hidden> > Subject: ldm-6.0.10 on FreeBSD 4.7:Error code 1 during protocol make > Organization: TAMU The above message contained the following: > I must be doing something wrong here because I'm confident you've made > an out-of-the-box build for FreeBSD 4.7 STABLE. But maybe you can > provide some insite. A make stops in the protocol dir. with Error code > 1. I include the config.log, configure.log, and make.log. > > My env (csh) variables: > LDMHOME=/unidata/ldm > GDBMLIB="-L/unidata/ldm/lib -lgdbm" > CPPFLAGS=-I/unidata/ldm/include The above CPPFLAGS setting will probably cause problems because it will cause the compiler to use older and probably inconsistent header files from a previous LDM package. This seems to be what happened: > Making `all' in directory /unidata/ldm/ldm-6.0.10/src/protocol > > c89 -c -O -I/unidata/ldm/include -I../config -I. -I../misc -I../ulog -I../= > protocol atofeedt.c > In file included from ldm.h:17, > from atofeedt.h:9, > from atofeedt.c:11: > /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' > /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' > c89 -c -O -I/unidata/ldm/include -I../config -I. -I../misc -I../ulog -I../= > protocol h_clnt.c > In file included from /unidata/ldm/include/ldmalloc.h:8, > from h_clnt.c:37: > /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' > /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' > h_clnt.c: In function `get_addr': > h_clnt.c:631: `LDM_PROG' undeclared (first use in this function) > h_clnt.c:631: (Each undeclared identifier is reported only once > h_clnt.c:631: for each function it appears in.) > h_clnt.c: In function `h_xprt_turn': > h_clnt.c:1223: `LDM_PROG' undeclared (first use in this function) > *** Error code 1 I suggest retrying the build with that "-I" option removed from CPPFLAGS. Regards, Steve Emmerson