Page 1 of 1

[SOLVED] Request for statically compiled syslinux, extlinux

Posted: 19 May 2011, 14:29
by fanthom
Porteus needs statically compiled 32bit (i486/i586) syslinux, extlinux binaries (these one which resides in /boot/syslinux folder).

Reason:
- statically compiled 32bit binaries can be executed by both 32/64bit processors and they are independent from libs included in currently running OS

Recent status (with dynamically linked utilities):
- If you want to install 32bit Porteus version on USB stick from another linux distro then it also must be 32bit (or 64bit with multilib environment).
- if you want to install 64bit version then it must be done from another 64bit linux distro.

Problem:
- Makefile seems to ignore '-static' flag which is passed to gcc

Possible solution:
- compile utils manually
- grab them from another distro

How to check if utility is compiled statically:
run "ldd extlinux" on 32bit system and make sure it returns:
"not a dynamic executable"

in case if success please post download link in this thread.

Thanks

Re: Request for statically compiled 32bit syslinux, extlinux

Posted: 20 May 2011, 06:15
by Ahau
fanthom,

Please check this one:
http://pkgs.org/archlinux/archlinux-cor ... ar.xz.html

ldd on /sbin/extlinux and /bin/syslinux show not dynamically linked.

Posted after 13 hours 50 minutes 5 seconds:
OK, so that one won't work because it's for i686 and not i486...

I found one for i386, but it's an rpm, and I'm having issues converting an rpm to xzm for some reason... rpm2cpio fails. So, I can't test if it is statically compiled or not: http://pkgs.org/centos-5-rhel-5/rpmforg ... 6.rpm.html

Re: Request for statically compiled 32bit syslinux, extlinux

Posted: 20 May 2011, 08:53
by fanthom
@Ahau
rpm2cpio in 32bit is broken due to missing symlinks to libs which are present in firefox module.
edit /etc/ld.so.conf and add this line:
/usr/lib/firefox
now run 'ldconfig' and try again.
(brokenamn is aware of it and this issue will be corrected in rc2)

Re: Request for statically compiled 32bit syslinux, extlinux

Posted: 20 May 2011, 12:02
by Ahau
thanks, fanthom! I converted it in 64 bit, then checked the ldd in 32. They are not statically compiled :( In fact, neither were the binaries in the first package I listed (since I checked them in 64 bit instead of 32). Sorry for being of no help, lol.

Re: Request for statically compiled 32bit syslinux, extlinux

Posted: 03 Sep 2011, 06:58
by fanthom
Finally found a way to compile and link all loaders statically :Yahoo!:
No more troubles with installation under different arch and OS - everything should work now even under DEBIAN.

@Ahau
Please remove warnings related to this issue from the docs.

Giving SOLVED.

Cheers

Re: [SOLVED] Request for statically compiled syslinux, extli

Posted: 03 Sep 2011, 08:27
by ponce
good news! :Bravo: :beer: