[2] error in compiling grep 2.4.2

luca de filippis merloplano at tiscalinet.it
Thu Oct 25 10:27:52 PDT 2001

"Jeroen Coumans" <jeroencoumans at hotmail.com> wrote on 10/20/01 7:25:23 PM 
>> well, this is the output (used the 1st
>> version, for glibc 2.1):
>> make[3]: Entering directory `/lfs/usr/src/grep-2.4.2/src'
>> gcc  -g -O2 -static -o grep  grep.o dfa.o kwset.o obstack.o savedir.o
>> getopt.o getopt1.o search.o grepmat.o regex.o  /usr/lib/libc.a(regex.
>> o): In function `init_syntax_once': /rpm/BUILD/glibc-2.1.3/posix/regex.
>> c:257: multiple definition of `re_max_failures' regex.
>> o:/lfs/usr/src/grep-2.4. 
>It seems you didn't export re_max_failures properly. Make sure the 
>commands are exactly as
>in the book:
>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
>../configure --prefix=$LFS/usr --disable-nls &&
>unset CPPFLAGS &&
>make LDFLAGS=-static &&
>make install

it was. i chmoded che lfs-commands, then ./commands.
i solved changing distro, now rh 7.1. chap5 is ended
and i'm moving to 6.

thanks for all the suggestions.


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