Re: [lfs-support] LFS 7.0 - 6.34 Perl-5.14.2 - 32bit VM Host on Slackware 13
On Sat, 24 Dec 2011 03:04:10 + Ken Moffat zarniwh...@ntlworld.com wrote: This is also why some of us have a bee in our bonnets about static libraries - if it's only used within a package, no problem. If it's installed into /usr/lib as libfoo.a then you'd better have a means of identifying what used it in case you need to fix a vulnerability. For myself, my buildscripts have a function which moves static libs in /usr/lib to libfoo.a.hidden (except for *some* toolchain libs - I've never had time to sort out all those that *need* to be static : basically, if there is a vulnerability in the toolchain, it's time to build a new LFS system). For what it's worth, I've managed to reduce the number of static libs to 8, all from gcc, binutils or glibc: andy@eccles:~$ ls /usr/lib/*.a /usr/lib/libc_nonshared.a /usr/lib/libmcheck.a /usr/lib/libg.a/usr/lib/libpthread_nonshared.a /usr/lib/libiberty.a /usr/lib/librpcsvc.a /usr/lib/libieee.a /usr/lib/libsupc++.a It may be possible to get rid of some of these, but fiddling with them got time consuming so I gave up. So, on my desktop I know that firefox uses (from memory) libcrmf.a - the build failed, so now my scripts rename the hidden static lib when building firefox. This is from nss? This works for me: ar -x libcrmf.a gcc -shared *.o -o /usr/lib/libcrmf.so rm /usr/lib/libcrmf.a Firefox is quite happy with a shared libcrmf. I wrote a function that generalises it: function convert_static_to_shared() { rm -rf /tmp/conversion mkdir /tmp/conversion pushd /tmp/conversion mv /usr/lib/lib${1}.a . ar -x lib${1}.a gcc -shared *.o -o /usr/lib/lib${1}.so popd rm -rf /tmp/conversion } convert_static_to_shared crmf Some things need to be compiled with -fPIC in there CFLAGS before their static libs can be converted to shared. Similarly, on my current desktop I've got only static libs from nettle rm /usr/lib/lib{hogweed,nettle}.a Works for me. I know that both gnutls and glib-networking use them. Security, even at this minimal level, is almost as much 'fun' as editing the books ;-) For me, gnutls and glib-networking seem to be quite happy with the shared libs. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - 6.34 Perl-5.14.2 - 32bit VM Host on Slackware 13
On Sat, Dec 24, 2011 at 12:49:55PM +, Andrew Benton wrote: On Sat, 24 Dec 2011 03:04:10 + Ken Moffat zarniwh...@ntlworld.com wrote: This is also why some of us have a bee in our bonnets about static libraries - if it's only used within a package, no problem. If it's installed into /usr/lib as libfoo.a then you'd better have a means of identifying what used it in case you need to fix a vulnerability. For myself, my buildscripts have a function which moves static libs in /usr/lib to libfoo.a.hidden (except for *some* toolchain libs - I've never had time to sort out all those that *need* to be static : basically, if there is a vulnerability in the toolchain, it's time to build a new LFS system). For what it's worth, I've managed to reduce the number of static libs to 8, all from gcc, binutils or glibc: Fascinating and very useful stuff, Andy. If I wasn't planning on spending my computer time with the gnome-3 packages, I'd be playing with this. Unfortunately, it will have to wait until later - probably much later. Actually, I can probably justify doing shared libcrmf on my next firefox upgrades (9.0.0 on my other box blew out, probably from lack of space - need bigger disks, but that means a new mobo, my via chipsets don't do sata2 Something will have to go.). Thanks. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] what to do? binutils of my host system doesn't match with LFS-7.0 host requirements
Hi, I want to build LFS-7.0 but binutils of my host system (ubuntu 11.10) is 2.21.53.20110810 (GNU Binutils for Ubuntu) which doesn't match with the host requirements of LFS-7.0. Shall I proceed building LFS-7.0 with my installed binutils version? If not, is there any workaround? -- Thanks and Regards, Karthik Bhuvanagiri -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] what to do? binutils of my host system doesn't match with LFS-7.0 host requirements
Karthik Bhuvanagiri wrote: I want to build LFS-7.0 but binutils of my host system (ubuntu 11.10) is 2.21.53.20110810 (GNU Binutils for Ubuntu) which doesn't match with the host requirements of LFS-7.0. Shall I proceed building LFS-7.0 with my installed binutils version? If not, is there any workaround? I don't think that glibc is really an issue for ubuntu 11.10. The check in host requirements is a relatively crude way to test functionality during the normal library access mechanism, not direct access. You may have to create a symlink like /lib/libc.so.6 - ubuntu's libc, but I really don't think it's necessary. The other symlinks (bash, gawk, yacc) are more important. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] LFS - Chapter 8.4 Woes - GRUB us Acting Grubby
System: Win7Home - Oracle VirtualBox - Slackware 13 (32bit) as My Host Background: So far I've managed to get through the entire book with some sort of momentum which now has come to a screeching halt. I'm sure there is something wrong being done on my part but to make a long story short: The grub Device Check in the book returns an empty text file (device.map) like it doesn't see my drives, and the grub-install fails miserably as well. The book seems to have skipped the ./configure, make and make install steps entirely for grub. Perhaps this is because there aren't any special parameters or pre or post compiling scripts that need to be run. This simple omission left me puzzled I must say because the rest of the book has been very explicit. So far as I can tell... I'm missing something crucial. Steps: i: Chroot into LFS build environment $LFS A: I untar grub-1.99 into the $LFS/sources folder. B: run ./configure , make, make install C: run grub-mkdevicemap --device-map=device.map (empty file results) D: run grub-install /dev/sdb (disk 2 - waiting for Bootloader - planning to remove drive 1 after) Grub Install returns: /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?). I think chroot is the issue, so I open a new Konsole that is not chrooted, no grub, so I add the binaries to the path $LFS/usr/sbin And still no luck: it complains that it can't find grub-module and grub-setup but these are in the same /usr/sbin I've fought this for hours now - maybe 3 hours so far.. Any help at all would be appreciated. Happy Holidays --Jason P Sage -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS - Chapter 8.4 Woes - GRUB us Acting Grubby
Jason P Sage wrote: System: Win7Home - Oracle VirtualBox - Slackware 13 (32bit) as My Host Background: So far I've managed to get through the entire book with some sort of momentum which now has come to a screeching halt. I'm sure there is something wrong being done on my part but to make a long story short: The grub Device Check in the book returns an empty text file (device.map) like it doesn't see my drives, and the grub-install fails miserably as well. The book seems to have skipped the ./configure, make and make install steps entirely for grub. http://www.linuxfromscratch.org/lfs/view/stable/chapter06/grub.html Perhaps this is because there aren't any special parameters or pre or post compiling scripts that need to be run. This simple omission left me puzzled I must say because the rest of the book has been very explicit. So far as I can tell... I'm missing something crucial. Steps: i: Chroot into LFS build environment $LFS A: I untar grub-1.99 into the $LFS/sources folder. B: run ./configure , make, make install C: run grub-mkdevicemap --device-map=device.map (empty file results) D: run grub-install /dev/sdb (disk 2 - waiting for Bootloader - planning to remove drive 1 after) Grub Install returns: /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?). Did you redo the virtual mounts in http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kernfs.html before reentering chroot? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS - Chapter 8.4 Woes - GRUB us Acting Grubby
Jason P Sage wrote: System: Win7Home - Oracle VirtualBox - Slackware 13 (32bit) as My Host The book seems to have skipped the ./configure, make and make install steps entirely for grub. http://www.linuxfromscratch.org/lfs/view/stable/chapter06/grub.html Right you are! Did that step. I suppose when I started having troubles I started compiling it myself having forgot. Fortunately the compiling switches appear non-consequential. Grub Install returns: /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?). Did you redo the virtual mounts in http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kernfs.html before reentering chroot? -- Bruce No - But I did this just before I got your speedy response! when I saw dev was just empty mostly I started searching for /dev until I found that little bit about populating dev like the system does at boot up! You're SPOT ON! I'm still having other issues (still GRUB related) but I want to hammer on it for at least a few hours before throwing up the white surrender flag. Doesn't help the Virtual Machine has device names longer than a MICROSOFT GUID.. but that's not a problem as far as I know. I just made some headway! I'm still not able to boot but I think I'm close. Getting wrong device errors now - but I'll keep chiseling away at this... Thank you Again! --Jason -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] Xulrunner with LDAP Support
I was wondering if xulrunner still has the option to enable ldap support. grep ldap on the configure script gives no response, and grep -R does not give me what I consider promising results. I was attempting to link libreoffice to my system installed xulrunner, but it wants xulrunner to have ldap support. I get the feeling that I will not be able to do this. -- Nathan Coulson (conathan) -- Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] what to do? binutils of my host system doesn't match with LFS-7.0 host requirements
Or install virtualbox and use slackware 13 for developing. On Sat, Dec 24, 2011 at 11:53 AM, Bruce Dubbs bruce.du...@gmail.com wrote: Karthik Bhuvanagiri wrote: I want to build LFS-7.0 but binutils of my host system (ubuntu 11.10) is 2.21.53.20110810 (GNU Binutils for Ubuntu) which doesn't match with the host requirements of LFS-7.0. Shall I proceed building LFS-7.0 with my installed binutils version? If not, is there any workaround? I don't think that glibc is really an issue for ubuntu 11.10. The check in host requirements is a relatively crude way to test functionality during the normal library access mechanism, not direct access. You may have to create a symlink like /lib/libc.so.6 - ubuntu's libc, but I really don't think it's necessary. The other symlinks (bash, gawk, yacc) are more important. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] what to do? binutils of my host system doesn't match with LFS-7.0 host requirements
On Sat, 24 Dec 2011 23:41:50 +0530 Karthik Bhuvanagiri karthik.bhuvanag...@gmail.com wrote: Hi, I want to build LFS-7.0 but binutils of my host system (ubuntu 11.10) is 2.21.53.20110810 (GNU Binutils for Ubuntu) which doesn't match with the host requirements of LFS-7.0. Shall I proceed building LFS-7.0 with my installed binutils version? If not, is there any workaround? Yes, binutils-2.21 is fine. Drive on. As Bruce said, make sure /bin/sh points at bash, awk is gawk, Bison and texinfo are installed. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page