LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2007, 01:26 AM   #1
betrussell23
LQ Newbie
 
Registered: Sep 2006
Posts: 16

Rep: Reputation: 0
yacc error during installation of xmgr


Dear linux users,

I am using CentOS-4.4 in my IBM laptop. I am trying to install XMGR a plotting program. While installing I configured it as per the instruction given in the INSTALL file. Configuration went fine, but when I tried to make it I am getting the following,
[root@electron xmgr-4.1.2]# make
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/cephes'
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o airy.o airy.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
- - - - - - - - - - - - - - - - - --- - - - - - - --
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - (these lines shows no problems)
pars.yacc:4140: error: `log2' undeclared here (not in a function)
pars.yacc:4140: error: initializer element is not constant
pars.yacc:4140: error: (near initialization for `ikey[265].fnc')
pars.yacc:4140: error: initializer element is not constant
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(the same thing but different numbers in increasing order from 4140)
pars.yacc:4353: error: initializer element is not constant
pars.yacc:4353: error: (near initialization for `ikey[478]')
make[1]: *** [pars.o] Error 1
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/src'
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/acegr_np'
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o acegr_np.o acegr_np.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o acegrf_np.o acegrf_np.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
rm -f libacegr_np.a
ar cr libacegr_np.a acegr_np.o acegrf_np.o
ranlib libacegr_np.a
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/acegr_np'
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/grconvert'
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o grconvert.o grconvert.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o defaults.o defaults.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o readbin.o readbin.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o writeasc.o writeasc.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -O2 -Wall -pedantic -m486 -malign-double -I/usr/X11R6/include -I.. -I. -c -o util.o util.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
gcc -o grconvert grconvert.o defaults.o readbin.o writeasc.o util.o -lm
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/grconvert'
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/doc'
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/examples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/examples'
make[1]: Entering directory `/root/insprogrms/xmgr-4.1.2/auxiliary'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/insprogrms/xmgr-4.1.2/auxiliary'

I could not understand what is happening and What is needed to be done to make XMGR to work in my laptop. Could any one help me to solve this problem with lucid explanation ( I am a newbie).

Many thanks in advance.
 
Old 02-27-2007, 02:39 AM   #2
tbutttbutt
Member
 
Registered: Jan 2006
Location: India
Distribution: Fedora 7, Linuxfromscratch 6.2
Posts: 66

Rep: Reputation: 15
It seems to be finding an error in the code.

You should not be running make as root. Move all the files to your home directory and try again. Only run 'make install' as root.

You may need to get a more recent copy of the program source if there is really an error there. Try at sourceforge.net or the homepage of the program.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
n Rules Never Reduced error in Yacc ssg14j Programming 1 12-09-2005 11:46 PM
Error in Makefile for Lex and Yacc oulevon Programming 2 10-24-2005 12:52 AM
lex & yacc installation sharathg786 Ubuntu 3 10-12-2005 01:21 AM
an yacc error message question feetyouwell Programming 1 10-16-2004 04:33 PM
xmgr on mandrake jano31coa Linux - Software 1 09-09-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration