i currently have 2 approches to get the perl zlib up and running. both
don't please me.


first:

as mentionned, removeing the sed-stuff everything runs fine.



second:

i didn't build the static zlib as i remove all static libs whenever a
dynamic one is installed too. i didn't have a zlib.a just the zlib.so
(in /lib to have it available during boot).

the problem i had seems to be made from
/usr/lib/perl5/5.10.0/i686-linux/auto/Compress/Raw/Zlib/Zlib.so

i now built the static one too, and ldd shows no dependency to libz.so.
the Zlib.so is about 120kb.

with the old one, Zlib.so is just 65k in size but ldd shows no
dependency to libz.so too!!

ldd outputs for both versions just linux-gate, libc and ld-linux.

checking with "nm -Dg" shows the new one has "zlibVersion", the old one
is missing it. thus Zlib.so seems to be built without any reference to
the dynamic linked libz.so!!


my conclusion:

the sed-stuff in the book does not force perl to use the systems dynamic
zlib but the static one. thus i can't see any benefit using the
sed-stuff as perl has to be recompiled whenever a new zlib is installed.

tobias


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

Reply via email to