LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-13-2005, 05:14 AM   #1
bmfan
Member
 
Registered: Mar 2005
Posts: 74

Rep: Reputation: 15
grep fails to install


everything seems to go just fine untill i get to grep , make fails . it also fails on patch and i notice after i run configure and i run make configure runs and then make will run. im not sure if thats normal or not . up untill i get to grep everything goes just fine. any ideas what might be going wrong or where i should look ?
 
Old 11-13-2005, 06:41 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Which version of LFS are you building?

what are the last lines of the error?
 
Old 11-13-2005, 07:27 AM   #3
bmfan
Member
 
Registered: Mar 2005
Posts: 74

Original Poster
Rep: Reputation: 15
lfs-6.1 , I'll have to start from scratch to get the error message again. which im doing right now. is it normal for configure to run again when i run make ? another question. its the only part im not sure about. for adjusting the toolchain it says to run
Code:
SPECFILE=`gcc --print-file specs` &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE
where am i supose to run that from , the gcc-build directory ?
 
Old 11-13-2005, 09:31 AM   #4
bmfan
Member
 
Registered: Mar 2005
Posts: 74

Original Poster
Rep: Reputation: 15
ok here is the error
Code:
lfs:/mnt/lfs/sources/grep-2.5.1a$ make
cd . && /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run aclocal
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/a...ending-aclocal
/usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
aclocal:configure.in:82: warning: macro `AM_SEP' not found in library
cd . && \
  /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run automake --gnu  Makefile
cd . && /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run autoconf
configure.in:37: error: possibly undefined macro: jm_AC_TYPE_UINTMAX_T
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:45: error: possibly undefined macro: AC_MBSTATE_T
configure.in:55: error: possibly undefined macro: jm_AC_PREREQ_XSTRTOUMAX
configure.in:78: error: possibly undefined macro: AC_DOSFILE
configure.in:82: error: possibly undefined macro: AM_SEP
WARNING: `autoconf' is missing on your system.  You should only need it if
         you modified `configure.in'.  You might want to install the
         `Autoconf' and `GNU m4' packages.  Grab them from any GNU
         archive site.
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --prefix=/tools --disable-perl-regexp  --no-create --no-recursion
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu

./configure: line 6344: jm_AC_PREREQ_XSTRTOUMAX: command not found
./configure: line 6346: syntax error near unexpected token `newline'
./configure: line 6346: `jm_CHECK_DECLARATIONS(#include <stdlib.h>, strtoul strtoull)'
make: *** [config.status] Error 2
lfs:/mnt/lfs/sources/grep-2.5.1a$
I think the error might be coming from pass two of gcc install, make runs for half an hour or so but make install only takes ten seconds. and after pss two off gcc is when i start seeing it run configure again when i type make
 
Old 11-14-2005, 12:20 PM   #5
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
Originally posted by bmfan
is it normal for configure to run again when i run make ?
another question. its the only part im not sure about. for adjusting the toolchain it says to run
where am i supose to run that from , the gcc-build directory ? [/B]
1. Sometimes it does and with some packages it is normal.
2. Just copy and paste the code and run it from the terminal/console. from the gcc-build directory.
3. Depends on the package, some packages requires you to build the package outside the source tree/directory. GCC requires you to run make in the gcc-build directory,so yes.

I hope it is clear for you now.

Last edited by mr_demilord; 11-14-2005 at 12:44 PM.
 
Old 11-14-2005, 12:31 PM   #6
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
You can try to rebuild and cheat with the build of LFS to do everything with copy/paste.
Especialy GCC which is a pain is the best to copy past the configure code.
I had the same problem with GCC

Last edited by mr_demilord; 11-14-2005 at 12:37 PM.
 
  


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
grep input/output error on slackware 10.1 install dpp777 Linux - Newbie 1 09-07-2005 09:25 AM
grep in shell script fails on redhat 3.0 rlangsto Linux - General 4 03-06-2005 07:42 PM
ps -ef|grep -v root|grep apache<<result maelstrombob Linux - Newbie 1 09-24-2003 11:38 AM
Mandrake install halts at grep Jiawen Mandriva 3 09-03-2003 02:23 PM
grep-2.5 static fails ca9mbu Linux From Scratch 1 06-09-2002 10:50 AM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration