﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2713	Problem in chapter 6 of LFS-BOOK-6.6 with sed in editing the ext/Compress-Raw-Zlib/config.in file	Mahmoud	lfs-book@…	"When editing the ext/Compress-Raw-Zlib/config.in with sed command as shown in the book the resulted changes in the file are:

{{{
BUILD_ZLIB = False
INCLUDE= /usr/include
LIB= /usr/lib
}}}

this will lead to following error in make

{{{
Running Makefile.PL in ext/Compress-Raw-Zlib
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic
Parsing config.in...
Unknown keys in config.in ignored [INCLUDE= /USR/INCLUDE LIB= /USR/LIB]
The following keys are missing from config.in  [INCLUDE LIB]
65280 from ext/Compress-Raw-Zlib's Makefile.PL at make_ext.pl line 301.
Warning: No Makefile!
make[1]: Entering directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib'
make[1]: *** No rule to make target `config'.  Stop.
make[1]: Leaving directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib'
 make config PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic failed, continuing anyway...
Making all in ext/Compress-Raw-Zlib
 make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic
make[1]: Entering directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib'
Unsuccessful make(ext/Compress-Raw-Zlib): code=512 at make_ext.pl line 360.
make: *** [lib/auto/Compress/Raw/Zlib/Zlib.so] Error 2
}}}

Using vim to edit the file we have:

{{{
BUILD_ZLIB      = False
INCLUDE         = /usr/include
LIB             = /usr/lib
}}}

Although this edition seems almost similar to the previous result, but make and make test will go error free"	defect	closed	normal	6.7	Book	SVN	normal	invalid		
