On 2/4/06, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote: > > Proposal: If all of the above gets verified, add the equivalent of the > following sed to the perl -libc patch: > > sed -i 's,in \$usrinc,in /tools/include,' Configure
Alexander, After looking over Configure for a while, I would suggest this sed -i 's,/usr/include,/tools/include,g' Configure The reason is two-fold. 1. Unless you're doing a cross compile, usrinc is set to dflt, and dflt=/usr/include. This sed alters that value at the beginning. 2. Other tests in Configure (like the one for gdbm.h that Greg referred to), explicitly look in /usr/include. This sed would also remove the possibility that gdbm or db are linked into perl from your host. In the event that you're cross-compiling perl uses the value in incpth to decide incdir. In this case, I believe you can pass in -Dincpth=/tools/include or whatever. I don't have a cross-compiler to test it, though. Here's a diff of Config_heavy.pl using the sed from above. diff d1/lib/perl5/5.8.7/Config_heavy.pl d3/lib/perl5/5.8.7/Config_heavy.pl 17c17 < ## Configuration time: Sat Feb 4 13:08:38 PST 2006 --- > ## Configuration time: Sat Feb 4 13:43:44 PST 2006 128c128 < cf_time='Sat Feb 4 13:08:38 PST 2006' --- > cf_time='Sat Feb 4 13:43:44 PST 2006' 990c990 < strings='/usr/include/string.h' --- > strings='/tools/include/string.h' 1000c1000 < timeincl='/usr/include/sys/time.h /usr/include/time.h ' --- > timeincl='/tools/include/sys/time.h /tools/include/time.h ' 1049c1049 < usrinc='/usr/include' --- > usrinc='/tools/include' Using the sed you proposed shows that usrinc is still /usr/include in Config_heavy.pl. What do you guys think? -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page