grep and perl issues

beally at westnet.com.au beally at westnet.com.au
Sun Oct 13 09:17:15 PDT 2002


Book Version - Linux From Scratch 3.3

Problem Package - Grep 2.5

make[2]: Leaving directory `/usr/src/lfsp/g/grep-2.5/doc'
Making all in src
make[2]: Entering directory `/usr/src/lfsp/g/grep-2.5/src'
gcc     -o grep  grep.o dfa.o kwset.o search.o grepmat.o 
../lib/libgreputils.a
search.o: In function `Pcompile':
/lfs/usr/src/lfsp/g/grep-2.5/src/search.c:655: undefined reference to 
`pcre_maketables'
/lfs/usr/src/lfsp/g/grep-2.5/src/search.c:655: undefined reference to 
`pcre_compile'
/lfs/usr/src/lfsp/g/grep-2.5/src/search.c:659: undefined reference to 
`pcre_study'
search.o: In function `Pexecute':
/lfs/usr/src/lfsp/g/grep-2.5/src/search.c:678: undefined reference to 
`pcre_exec'
collect2: ld returned 1 exit status
make[2]: *** [grep] Error 1
make[2]: Leaving directory `/usr/src/lfsp/g/grep-2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lfsp/g/grep-2.5'
make: *** [all] Error 2

When the above package was initially compiled during the preparation 
stage (chapter 5), there was no errors.
However, since chrooting the package fails to make. It configures without 
any problems, I haven't deviated
from the book and there have been no errors with any other packages. I've 
also since discovered that
book 4 introduces the "--disable-perl-regexpr" switch which undoubtedly 
fixes this problem. I have tried to
go back and recompile grep as outlined in chapter 5 but without success. 
Is there a way to resolve this
issue this late in the book? Can I add these PCRE shared libraries to my 
lfs install, and if so where 
might I find the libraries?




-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list