[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20021031: LDM upgrade error messages (cont.)
- Subject: 20021031: LDM upgrade error messages (cont.)
- Date: Thu, 31 Oct 2002 15:06:15 -0700
>From: "benjamin.j.cotton.1" <address@hidden>
>Organization: Purdue
>Keywords: 200210311528.g9VFSLX21227 LDM 5.2.1
Ben,
>On Thu, 31 Oct 2002, Unidata Support wrote:
>>
>> Try the following:
>>
>> cd ldm-5.2.1/src
>> make distclean
>> setenv CC cc <- uses appropriate syntax for your Unix SHELL
>> ./configure
>> make
>> make install
>> ...
>>
>Well, I tried Tom's suggestion. When I typed % make I got this:
>Making `all' in directory /net/anvil/project/ldm/ldm-5.2.1/src/config
>
>Returning to directory /net/anvil/project/ldm/ldm-5.2.1/src
>
>
>Making `all' in directory /net/anvil/project/ldm/ldm-5.2.1/src/ulog
>
>cc -g -DHAVE_CONFIG_H -I../config -c ulog.c
>cc -g -DHAVE_CONFIG_H -I../config hupsyslog.c -o hupsyslog
>
>Returning to directory /net/anvil/project/ldm/ldm-5.2.1/src
>
>
>Making `all' in directory /net/anvil/project/ldm/ldm-5.2.1/src/misc
>
>sed 's|@''LDMHOME''@|"/local/usr/ldm"|g' paths.h.in >paths.h
>cc -g -I../config -I. -I../ulog -DHAVE_CONFIG_H -c fdnb.c
>cc -g -I../config -I. -I../ulog -DHAVE_CONFIG_H -c fsStats.c
>fsStats.c: In function `fsStats':
>fsStats.c:63: syntax error before `sbuf'
>fsStats.c:66: `sbuf' undeclared (first use in this function)
>fsStats.c:66: (Each undeclared identifier is reported only once
>fsStats.c:66: for each function it appears in.)
>*** Error code 1
>
>Stop in /net/anvil/project/ldm/ldm-5.2.1/src/misc.
>*** Error code 1
>
>Stop in /net/anvil/project/ldm/ldm-5.2.1/src.
>*** Error code 1
>
>Stop in /net/anvil/project/ldm/ldm-5.2.1/src.
>
>Any other ideas?
I seem to recall that you are using a FreeBSD machine. Is that true?
If so, the following mods may get you going:
file: src/misc/fsStats.c
change:
#if __bsdi__ || __bsdi
to:
#if __bsdi__ || __bsdi || __FreeBSD__
file: src/ulog/ulog.c
change:
#ifdef _DEV_CONSLOG
#define ULOGNAME "/dev/conslog"
#else
#define ULOGNAME "/dev/log"
#endif /* !_DEV_CONSLOG */
#endif
to:
#ifdef _DEV_CONSLOG
#define ULOGNAME "/dev/conslog"
#else
# if defined(__FreeBSD__)
# define ULOGNAME "/var/run/log"
# else
# define ULOGNAME "/dev/log"
# endif
#endif /* !_DEV_CONSLOG */
#endif
I got these mods from a build of the LDM 5.1.4 on another user's FreeBSD
system. Please let me know if they work for you.
Tom