Hello,

I am trying to compile grep in 5.20. When I run ./configure --prefix=/tools it compiles just fine.

When I run .configure --prefix=/tools --disable-perl-regexp

It fails giving the following output:

ranlib libgreputils.a
make[3]: Leaving directory `/lfs/tools/grep-2.5.1a/lib'
make[2]: Leaving directory `/lfs/tools/grep-2.5.1a/lib'
Making all in doc
make[2]: Entering directory `/lfs/tools/grep-2.5.1a/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/lfs/tools/grep-2.5.1a/doc'
Making all in src
make[2]: Entering directory `/lfs/tools/grep-2.5.1a/src'
gcc -g -O2 -o grep grep.o dfa.o kwset.o search.o grepmat.o ../lib/libgreputils.a
search.o(.text+0x1104): In function `Pcompile':
/lfs/tools/grep-2.5.1a/src/search.c:655: undefined reference to `pcre_maketables' search.o(.text+0x1128):/lfs/tools/grep-2.5.1a/src/search.c:655: undefined reference to `pcre_compile' search.o(.text+0x1143):/lfs/tools/grep-2.5.1a/src/search.c:659: undefined reference to `pcre_study' search.o(.text+0x1192):/lfs/tools/grep-2.5.1a/src/search.c:659: undefined reference to `pcre_study'
search.o(.text+0x1221): In function `Pexecute':
/lfs/tools/grep-2.5.1a/src/search.c:678: undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make[2]: *** [grep] Error 1
make[2]: Leaving directory `/lfs/tools/grep-2.5.1a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lfs/tools/grep-2.5.1a'
make: *** [all] Error 2

I noticed that Gerard commented on this error in regards to Chapter six in this post:

http://linuxfromscratch.org/pipermail/lfs-support/2002-April/005733.html

but i'm not sure if this applies to what i'm doing here in 5.20.

Seth
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to