[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Re: 20001201: LDM 5.1.2 build problem on FBSD 4.2] (fwd)
- Subject: Re: [Fwd: Re: 20001201: LDM 5.1.2 build problem on FBSD 4.2] (fwd)
- Date: Wed, 6 Dec 2000 15:57:48 -0700 (MST)
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================
---------- Forwarded message ----------
Date: Wed, 6 Dec 2000 16:16:19 -0600 (CST)
From: John Nordlie <address@hidden>
To: Jim Koermer <address@hidden>
support-ldm <address@hidden>
Subject: Re: [Fwd: Re: 20001201: LDM 5.1.2 build problem on FBSD 4.2]
It worked! Woo hoo! Thanks everyone. I'll print this one and put it
in the ol' binder...
On Wed, 6 Dec 2000, Jim Koermer wrote:
> Robb et. al.,
>
> I found this in my e-mail (below), when we were providing some
> assistance to Purdue. The only problem that I continue to have with LDM
> on BSD is getting it to write to the ldmd.log file.
>
> >
> > I make the assumption you are using FreeBSD 4.1, I have not tested
> > it on prior versions. If you have any difficulties compiling...
> > let me know.
> >
> >
> > Here is what you have to do to get it to compile:
> >
> > 1. You need "gmake" installed (from the packages collection)
> >
> > 2. Apply these two diffs Basically adding a FreeBSD option
> > to the configure script (to eliminate the use of c89)
> > and add ( || __FreeBSD__) to misc/fsStats.c on the line
> > with the __bsdi__ "if".
> >
> >
> > *** configure Mon Oct 30 16:18:01 2000
> > --- configure.ori Mon Oct 30 16:17:57 2000
> > ***************
> > *** 538,546 ****
> > # 1999-03-24).
> > ccs='cc gcc c89 acc'
> > ;;
> > - FreeBSD)
> > - ccs='cc gcc c89'
> > - ;;
> > *)
> > # xlc is before c89 because AIX's sizeof(long long)
> > # differs between the two.
> > --- 538,543 ----
> >
> >
> >
> > *** misc/fsStats.c Mon Oct 30 16:33:08 2000
> > --- misc/fsStats.c-ori Mon Oct 30 16:33:04 2000
> > ***************
> > *** 21,27 ****
> > #define f_bavail fd_bfreen
> > #endif
> >
> > ! #if __bsdi__ || __bsdi || __FreeBSD__
> > /* BSDI, ... */
> > #include <sys/param.h>
> > #include <sys/mount.h>
> > --- 21,27 ----
> > #define f_bavail fd_bfreen
> > #endif
> >
> > ! #if __bsdi__ || __bsdi
> > /* BSDI, ... */
> > #include <sys/param.h>
> > #include <sys/mount.h>
> >
> >
> > 3. setenv LDHOME "/some/place"
> >
> > 4. ./configure
> >
> > 5. gmake
> >
> > 6. gmake install
> >
> >
> >
> > I think that is all you need.
> --
> James P. Koermer E-Mail: address@hidden
> Professor of Meteorology Office Phone: (603)535-2574
> Natural Science Department Office Fax: (603)535-2723
> Plymouth State College WWW: http://vortex.plymouth.edu/
> Plymouth, NH 03264
>
>
> Robb Kambic wrote:
> >
> > Jim,
> >
> > I'm cc you on this message in case you have any insights on the make
> > install problem below for a BSD machine.
> >
> > >
> > > -------- Original Message --------
> > > Subject: Re: 20001201: LDM 5.1.2 build problem on FBSD 4.2
> > > Date: Mon, 4 Dec 2000 21:57:01 -0600 (CST)
> > > From: John Nordlie <address@hidden>
> > > Organization: UCAR/Unidata
> > > To: Anne Wilson <address@hidden>
> > > CC: address@hidden
> > >
> > > This message is in MIME format. The first part should be
> > > readable text,
> > > while the remaining parts are likely unreadable without
> > > MIME-aware tools.
> > > Send mail to address@hidden for more
> > > info.
> > >
> > > --0-287694183-975988621=:86162
> > > Content-Type: TEXT/PLAIN; charset=US-ASCII
> > >
> > > Hi, Anne.
> > > Please find attached the makefile in question.
> > > Make on the machine is in /usr/bin/, but I can't find the
> > > version number. It is the only make installed on the
> > > box, but I can find another if needs be.
> > > Thanks.
> > >
> > > On Mon, 4 Dec 2000, Anne Wilson wrote:
> > >
> > > > Unidata Support wrote:
> > > > >
> > > > > ------- Forwarded Message
> > > > >
> > > > > >To: address@hidden
> > > > > >From: John Nordlie <address@hidden>
> > > > > >Subject: LDM 5.1.2 build problem on FBSD 4.2
> > > > > >Organization: UCAR/Unidata
> > > > > >Keywords: 200012012217.eB1MHfo25195
> > > > >
> > > > > Greetings.
> > > > > I'm having trouble setting up LDM 5.1.2 on a FreeBSD intel
> > > > > pentium 90 box. The system is fresh (just did a clean install of
> > > > > FreeBSD 4.2 this morning). I was working through the LDM installation
> > > > > manual using the listed defaults for ldm shell, location, tweaking the
> > > > > system files, etc. I got partway through the 'Compile the
> > > > > Distribution'
> > > > > section of the source install but the system barfs during the
> > > > > 'make install'. Here is a screen dump starting from the ./configure
> > > > > script:
> > > > >
> > > > > %setenv LDMHOME /usr/local/ldm
> > > > > %./configure
> > > > > creating cache ./config.cache
> > > > > checking for xlc... no
> > > > > checking for c89... c89
> > > > > checking C compiler... works
> > > > > checking the installation prefix... /usr/local/ldm/ldm-5.1.2
> > > > > checking domain name... rwic.und.edu
> > > > > checking how to run the C preprocessor... c89 -E
> > > > > checking for AIX... no
> > > > > checking for HP-UX... no
> > > > > checking whether memory-mapping by region is appropriate... no
> > > > > checking the C preprocessor... works
> > > > > checking for ar... ar
> > > > > checking for perl... /usr/bin/perl
> > > > > checking for POSIX shell... /bin/sh
> > > > > checking for yacc... yacc
> > > > > checking for yacc library...
> > > > > checking for yyerror() in default library(s)... no
> > > > > checking for yyerror() in -ly... yes
> > > > > checking mmap()... yes
> > > > > checking LDMHOME... /usr/local/ldm
> > > > > checking size of int... 4
> > > > > checking size of long... 4
> > > > > checking for ANSI C header files... yes
> > > > > checking for size_t... yes
> > > > > checking for off_t... yes
> > > > > checking for ssize_t... yes
> > > > > checking for ptrdiff_t... yes
> > > > > checking for socklen_t... yes
> > > > > checking for stdlib.h... yes
> > > > > checking for unistd.h... yes
> > > > > checking for fsync... yes
> > > > > checking for ftruncate... yes
> > > > > checking for memmove... yes
> > > > > checking for memcmp... yes
> > > > > checking for rename... yes
> > > > > checking for strerror... yes
> > > > > checking for waitpid... yes
> > > > > checking for strdup... yes
> > > > > checking for seteuid... yes
> > > > > checking for setenv... yes
> > > > > checking for mmap... yes
> > > > > checking for sig_atomic_t in signal.h... defined
> > > > > checking for working const... yes
> > > > > checking for st_blksize in struct stat... yes
> > > > > checking for sigaction... yes
> > > > > checking RPC and socket references...
> > > > > checking ulog defines... /dev/log is not a socket
> > > > > checking for gdbm_open in -lgdbm... no
> > > > > configure: warning: GDBMLIB not set
> > > > > checking for dbm_open... yes
> > > > > updating cache ./config.cache
> > > > > creating ./config.status
> > > > > creating Makefile
> > > > > creating config/Makefile
> > > > > creating ulog/Makefile
> > > > > creating misc/Makefile
> > > > > creating protocol/Makefile
> > > > > creating pq/Makefile
> > > > > creating pqact/Makefile
> > > > > creating pqcat/Makefile
> > > > > creating pqmon/Makefile
> > > > > creating pqutil/Makefile
> > > > > creating pqcreate/Makefile
> > > > > creating pqexpire/Makefile
> > > > > creating pqing/Makefile
> > > > > creating pqsend/Makefile
> > > > > creating pqbinstats/Makefile
> > > > > creating pqbinstats/mailpqstats
> > > > > creating pqinsert/Makefile
> > > > > creating pqsurf/Makefile
> > > > > creating server/Makefile
> > > > > creating ldmping/Makefile
> > > > > creating scripts/Makefile
> > > > > creating scripts/ldmadmin
> > > > > creating scripts/ldmprods
> > > > > creating scripts/ldmfail
> > > > > creating scripts/netcheck
> > > > > creating scripts/syscheck
> > > > > creating scripts/ldmcheck
> > > > > creating notifyme/Makefile
> > > > > creating send/Makefile
> > > > > creating feedme/Makefile
> > > > > creating scour/Makefile
> > > > > creating config/ldmconfig.h
> > > > >
> > > > > %make install
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/bin
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/include
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/lib
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/man
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/man/man1
> > > > > mkdir /usr/local/ldm/ldm-5.1.2/man/man3
> > > > > cp: libldm.a: No such file or directory
> > > > > *** Error code 1 (ignored)
> > > > >
> > > > > Making `install' in directory /usr/local/ldm/ldm-5.1.2/src/config
> > > > >
> > > > > updated /usr/local/ldm/ldm-5.1.2/include/ldmconfig.h
> > > > >
> > > > > Returning to directory /usr/local/ldm/ldm-5.1.2/src
> > > > >
> > > > > Making `install' in directory /usr/local/ldm/ldm-5.1.2/src/ulog
> > > > >
> > > > > "Makefile", line 114: Missing dependency operator
> > > > > make: fatal errors encountered -- cannot continue
> > > > > *** Error code 1
> > > > >
> > > > > Stop in /usr/local/ldm/ldm-5.1.2/src.
> > > > > *** Error code 1
> > > > >
> > > > > Stop in /usr/local/ldm/ldm-5.1.2/src.
> > > > > %
> > > > >
> > > > > Line 114 in ldmd-5.1.2/src/ulog/Makefile is:
> > > > > $(LIBRARY)(ulog.o): ulog.c ulog.h ../config/ldmconfig.h
> > > > >
> >
> > The above line is the problem line, the make message designates that there
> > is a missing dependency operator. My assumption is that the BSD make
> > doesn't like the format of the line. Since we don't have a BSD available,
> > I would find out the format that the BSD make is expecting and then
> > correct the makefile accordingly. I would do a man on make and use some of
> > the dependencies flags, ie -d -dd -D -DD or other appropriate ones. Also
> > check the cc dependencies flags.
> >
> > An alternative would be to search the web for a different make for BSD.
> >
> > Robb...
> >
> > > > > the ldmdconfig.h file exists in the directory specified. The system
> > > > > has plenty of free disk space. Any ideas?
> > > > >
> > > > > =========================================================================
> > > > > ==)---------- |
> > > > > ----------(==
> > > > > John Nordlie N0RNB | Regional Weather Information
> > > > > Center
> > > > > address@hidden | University of North Dakota
> > > > > 701-777-6112 / 701-777-3888 fax | PO Box 9007, Grand Forks, ND
> > > > > 58202-9007
> > > > > http://people.aero.und.edu/~nordlie/
> > > > > |
> > > > > C Program. | "If you ask me, most sports
> > > > > would
> > > > > C Program Run. | benefit from an infusion of
> > > > > rocketry."
> > > > > Run, Dammit, Run! | -- Jason Fox,
> > > > > 'Foxtrot'
> > > > > ==)---------- #include <std.disclaimer.h>
> > > > > ----------(==
> > > > > =========================================================================
> > > > >
> > > > > ------- End of Forwarded Message
> > > >
> > > > Hi John,
> > > >
> > > > Would you please send me the Makefile in
> > > > /usr/local/ldm/ldm-5.1.2/src/ulog? I'd like to see the
> > > > lines around line 114. (114 may well be the last line in
> > > > this file.)
> > > >
> > > > Also, which 'make' are you using? (Do 'which make' at the
> > > > command line.) And, do you have any other 'make' available
> > > > on your machine? If you do, I would try another one. I
> > > > suspect a 'make' variant idiosyncrasy.
> > > >
> > > > Can you make in any other directory below src? Or do they
> > > > all fail on the first dependency line?
> > > >
> > > > Anne
> > > > --
> > > > ***************************************************
> > > > Anne Wilson UCAR Unidata Program
> > > > address@hidden P.O. Box 3000
> > > > Boulder, CO 80307
> > > > ----------------------------------------------------
> > > > Unidata WWW server http://www.unidata.ucar.edu/
> > > > ****************************************************
> > > >
> > >
> > > =========================================================================
> > > ==)---------- |
> > > ----------(==
> > > John Nordlie N0RNB | Regional Weather
> > > Information Center
> > > address@hidden | University of
> > > North Dakota
> > > 701-777-6112 / 701-777-3888 fax | PO Box 9007, Grand Forks,
> > > ND 58202-9007
> > > http://people.aero.und.edu/~nordlie/
> > > |
> > > C Program. | "If you ask me, most
> > > sports would
> > > C Program Run. | benefit from an infusion
> > > of rocketry."
> > > Run, Dammit, Run! | -- Jason
> > > Fox, 'Foxtrot'
> > > ==)---------- #include <std.disclaimer.h>
> > > ----------(==
> > > =========================================================================
> > >
> > > --0-287694183-975988621=:86162
> > > Content-Type: TEXT/PLAIN; charset=US-ASCII;
> > > name="Makefile.adiabat"
> > > Content-Transfer-Encoding: BASE64
> > > Content-ID:
> > > <address@hidden>
> > > Content-Description:
> > > Content-Disposition: attachment; filename="Makefile.adiabat"
> > >
> > > IyBHZW5lcmF0ZWQgYXV0b21hdGljYWxseSBmcm9tIE1ha2VmaWxlLmluIGJ5
> > > IGNvbmZpZ3VyZS4NCiMgJElkOiBNYWtlZmlsZS5pbix2IDEuMzggMjAwMC8w
> > > Ny8wNyAxNjozNDo1OSBydXNzIEV4cCAkDQojDQojCU1ha2VmaWxlIGZvciB1
> > > bG9nIHBhY2thZ2UNCiMNCi5QT1NJWDoNCg0KU0hFTEwg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gJChJTkMxKQ0KDQokKExJQlJBUlkp
> > > IDogJChMSUJSQVJZKSh1bG9nLm8pDQoNCiQoSU5DMSkgOiB1bG9nLmgNCgkt
> > > QGNtcCAtcyAkPyAkQCB8fCBcDQoJCSgkKElOU1RBTEwpICQ/ICRAICYmIGVj
> > > aG8gJ3VwZGF0ZWQgJEAnKQ0KDQpodXBzeXNsb2cgOiBodXBzeXNsb2cuYyAu
> > > Li9jb25maWcvbGRtY29uZmlnLmggLi4vbGlibGRtLmENCgkkKExJTksuYykg
> > > aHVwc3lzbG9nLmMgICQoTERMSUJTKSAtbyAkQA0KDQojDQppbnN0YWxsIDog
> > > YWxsICQoTUFOKSAkKFBST0dTKQ0KDQokKE1BTik6IHVsb2cuMw0KCS1AY21w
> > > IC1zICQ/ICRAIHx8IFwNCgkJKCQoSU5TVEFMTCkgJD8gJEAgJiYgZWNobyAn
> > > dXBkYXRlZCAkQCcpDQoNCiQoQklORElSKS9odXBzeXNsb2c6CWh1cHN5c2xv
> > > Zw0KCS1AY21wIC1zICQ/ICRAIHx8IFwNCgkJKCQoSU5TVEFMTCkgJD8gJEAg
> > > JiYgZWNobyAndXBkYXRlZCAkQCcpDQoNCiQoQklORElSKS9uZXdsb2c6CW5l
> > > d2xvZw0KCS1AY21wIC1zICQ/ICRAIHx8IFwNCgkJKCQoSU5TVEFMTCkgJD8g
> > > JEAgJiYgZWNobyAndXBkYXRlZCAkQCcpDQoNCmluc3RhbGxfc2V0dWlkczog
> > > JChCSU5ESVIpL2h1cHN5c2xvZw0KCWNob3duIHJvb3QgJChCSU5ESVIpL2h1
> > > cHN5c2xvZyAmJiBjaG1vZCA0NzU1ICQoQklORElSKS9odXBzeXNsb2cNCg0K
> > > dGVzdCA6IHRlc3QwDQoJLi90ZXN0MCAtbCAtDQoNCnRlc3QwIDogdWxvZy5j
> > > IHVsb2cuaCAuLi9jb25maWcvbGRtY29uZmlnLmgNCgkkKExJTksuYykgLURU
> > > RVNUMCB1bG9nLmMgJChMRExJQlMpIC1vIHRlc3QwIA0KDQp1bG9nZ2VyIDog
> > > dWxvZ2dlci5jIHVsb2cubyB1bG9nLmggLi4vY29uZmlnL2xkbWNvbmZpZy5o
> > > DQoJJChMSU5LLmMpIHVsb2dnZXIuYyB1bG9nLm8gJChMRExJQlMpIC1vIHVs
> > > b2dnZXIgDQoNCmNsZWFuOg0KCXJtIC1mICoubyB0ZXN0MCBodXBzeXNsb2cg
> > > dWxvZ2dlcg0KDQpkaXN0Y2xlYW46IGNsZWFuDQoJcm0gLWYgTWFrZWZpbGUg
> > > Y29uZmlnLnN0YXR1cyBjb25maWcuY2FjaGUNCg0KIyBpbnZlbnRvcnkNClBB
> > > Q0tJTkdfTElTVCA9IFwNCglSRUFETUUgXA0KCW5ld2xvZyBcDQoJdWxvZy4z
> > > IFwNCglNYWtlZmlsZS5pbiBcDQoJdWxvZy5jIFwNCgl1bG9nLmggXA0KCWh1
> > > cHN5c2xvZy5zaCBcDQoJaHVwc3lzbG9nLmMgXA0KCXVsb2dnZXIuYw0KDQpN
> > > QU5JRkVTVC5lY2hvOg0KCUAkKE1BS0UpIC1zICQoTUZMQUdTKSAkKExPQ0FM
> > > X01BQ1JPUykgXA0KCSAgICBlbnN1cmVfbWFuaWZlc3QgPiAvZGV2L251bGwN
> > > CglAZWNobyAkKFBBQ0tJTkdfTElTVCkgfCBmbXQgLTENCg0KZW5zdXJlX21h
> > > bmlmZXN0OgkkKFBBQ0tJTkdfTElTVCkNCg0KIw0KIyBiZWdpbiBkZXBlbmRz
> > > ICwgaGFuZCBidWlsdCBhbmQgbWFpbnRhaW5lZA0KIw0KJChMSUJSQVJZKSh1
> > > bG9nLm8pOiB1bG9nLmMgdWxvZy5oIC4uL2NvbmZpZy9sZG1jb25maWcuaA0K
> > >
> > > --0-287694183-975988621=:86162--
> > >
> >
> > ===============================================================================
> > Robb Kambic Unidata Program Center
> > Software Engineer III Univ. Corp for Atmospheric
> > Research
> > address@hidden WWW: http://www.unidata.ucar.edu/
> > ===============================================================================
>
> --
> James P. Koermer E-Mail: address@hidden
> Professor of Meteorology Office Phone: (603)535-2574
> Natural Science Department Office Fax: (603)535-2723
> Plymouth State College WWW: http://vortex.plymouth.edu/
> Plymouth, NH 03264
>
=========================================================================
==)---------- | ----------(==
John Nordlie N0RNB | Regional Weather Information Center
address@hidden | University of North Dakota
701-777-6112 / 701-777-3888 fax | PO Box 9007, Grand Forks, ND 58202-9007
http://people.aero.und.edu/~nordlie/
|
C Program. | "If you ask me, most sports would
C Program Run. | benefit from an infusion of rocketry."
Run, Dammit, Run! | -- Jason Fox, 'Foxtrot'
==)---------- #include <std.disclaimer.h> ----------(==
=========================================================================