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

Re: 20020608: Building LDM 5.1.4 RedHat 7.2



Unidata Support wrote:
> 
> ------- Forwarded Message
> 
> >To: address@hidden
> >From: address@hidden
> >Subject: Building LDM 5.1.4
> >Organization: UCAR/Unidata
> >Keywords: 200206082150.g58LomJ13265
> 
> I am trying to build LDM 5.1.4 on a new system, a RedHat 7.2 system
> (just patched as up-to-date as possible). The build chokes with a
> problem with "yacc". I noticed on my older RedHat system that yacc is
> linked to gcc. This wasn't true on the system in question. I made a link
> and tried to build, still no dice.
> 
> ORIGINAL ERRORS (no link to yacc)
> 
> make[2]: Entering directory `/usr/local/ldm/ldm-5.1.4/src/server'
> cc -g -I../config -I. -I../misc -I../ulog -I../protocol -I../pq
> -DHAVE_CONFIG_H -c -o abbr.o abbr.c
> cc -g -I../config -I. -I../misc -I../ulog -I../protocol -I../pq
> -DHAVE_CONFIG_H -c -o acl.o acl.c
> yacc conf.y
> make[2]: yacc: Command not found
> make[2]: *** [conftab.c] Error 127
> make[2]: Leaving directory `/usr/local/ldm/ldm-5.1.4/src/server'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/usr/local/ldm/ldm-5.1.4/src'
> make: *** [server/all] Error 2
> 
> ERRORS AFTER MAKING LINK FROM yacc to gcc
> 
> make[2]: Entering directory `/usr/local/ldm/ldm-5.1.4/src/server'
> cc -g -I../config -I. -I../misc -I../ulog -I../protocol -I../pq
> -DHAVE_CONFIG_H -c -o abbr.o abbr.c
> cc -g -I../config -I. -I../misc -I../ulog -I../protocol -I../pq
> -DHAVE_CONFIG_H -c -o acl.o acl.c
> yacc conf.y
> /usr/bin/ld:conf.y: file format not recognized; treating as linker
> script
> /usr/bin/ld:conf.y:5: parse error
> collect2: ld returned 1 exit status
> make[2]: *** [conftab.c] Error 1
> make[2]: Leaving directory `/usr/local/ldm/ldm-5.1.4/src/server'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/usr/local/ldm/ldm-5.1.4/src'
> make: *** [server/all] Error 2
> 
> I saw something in archived support e-mail about setting an environment
> variable for YACC to bison and tried this, but with no luck.
> 
> I'd rather not do a binary install of 5.1.2 for reasons I can share if
> needed.
> 
> Thanks for any help you can provide.
> 
> Tom
> 
> Thomas L. Mote
> University of Georgia
> 
> ------- End of Forwarded Message

Hi Tom,

My Redhat 7.2 system, which was a straightforward installation, has this
yacc:

[anne@localhost anne]$ ls -l /usr/bin/yacc
-rwxr-xr-x    1 root     root        61076 Jun 24  2001 /usr/bin/yacc

Is this on your system?  Can you find any yacc on your system?  ('locate
yacc' might show you some results.)

I'm a little surprised that on your other system yacc is a link to gcc -
I don't see how gcc can substitute for yacc.  Did you build the LDM from
source on that system?

Anne
-- 
***************************************************
Anne Wilson                     UCAR Unidata Program            
address@hidden                  P.O. Box 3000
                                  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************