LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-03-2004, 03:22 PM   #1
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 32
bison-1.875... error during ./configure help!!!


this is what the out put shows

root:/sources/bison-1.875# ./configure --prefix=/usr
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for gcc option to accept ANSI C... none needed
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking whether m4 supports frozen files... no
configure: error: GNU M4 1.4 is required

I installed m4-1.4 as in the previous page by following all steps on p137(in pdf file)
all check passed during make check but i do get the above error when configuring bison as on page 138... what can i do?
 
Old 02-03-2004, 03:55 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Where did you install m4? Check it's in /usr/bin
On a side note, can you copy and paste from a .pdf file? I've had good results working from html as I can open it in Firebird and copy it into a terminal. It helps to avoid typo errors. That's why I find the hardest part of Linux From Scratch is starting Beyond LFS as it's all at the command prompt with no Firebird till I get X windows (and a few other things- gtk2) up.
Go back and re-do M4. Check you havent installed it in /ussr/bin or /ur/bin something. Typo errors can really screw you up. Try
Code:
find / -name m4
Then make a temporary folder in your home directory, untar a fresh copy and configure it with --prefix=~/tmp and install it in there. That way you can see all the files it's installed which makes it easier to hunt down whatever you've installed in the wrong place, if that is the problem.
 
Old 02-03-2004, 04:08 PM   #3
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
thanks...

when installing m4... i did

./configure --prefix=/usr

(i did remove the m4-1.4 and bison-1.875 source directories several times and untar'd it and followed steps in p137 all over again - but to no avail)

how ever i ln -s /usr/bin/m4 /bin/m4

and the configure script ran without any problem and was able to do "make" how ever during "make check" it gave an error about "autom4te" was missing... so i copied this from the host system (slackware 9.1 running kernel 2.4.24) and ran
and ln -s /usr/bin/autom4te /bin/autom4te

./configure --prefix=/usr
make
make check

where it said failed to compile autom4te... then i remove the link and the autom4te file from /usr/bin and /bin directories... and ran

make check

and it all ran without giving any error's and was able to install bison

(all the above commands were executed in the /sources/bison-1.875 directory)

but slightly concerned now that what i did above would cause problems in the future...
 
Old 02-03-2004, 04:35 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Sorry my ramblings above were way off target. Did you apply the bison-1.875-attribute.patch before you compiled bison?
 
Old 02-04-2004, 02:34 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It sounds to me, if
ln -s /usr/bin/m4 /bin/m4
fixes the problem it seems that /usr/bin isn't in your $PATH. As for copying things from your host system...don't go there. Error messages are a sign that there's something wrong that needs fixing. Find out what's wrong, fix it and then go back to installing m4 and bison again so that it gets done properly. try
echo $PATH
and see what your $PATH is.
 
Old 02-04-2004, 12:25 PM   #6
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
thanks mate... i'll have to read through chpater five and six again to see ...

yeah i did apply the patch...
 
Old 02-04-2004, 01:31 PM   #7
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
yeah mate u were right... coz knowing will have to do chroot many times... had a script to do if for me and in the script instead of

/usr/bin i had typed usr/bin

well luckily only used the script after binutils was installed... so will have to re compile and install from zlib-1.1.4 onwards

thanks for your help again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bison / flex zaman Programming 1 08-16-2005 10:19 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
Installing Bison lectraplayer Linux - Newbie 2 09-25-2003 07:43 PM
need to find bison bicjoe Linux - Newbie 3 07-11-2003 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:32 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