[SOLVED] Request for statically compiled syslinux, extlinux

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

[SOLVED] Request for statically compiled syslinux, extlinux

Post#1 by fanthom » 19 May 2011, 14:29

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
Please add [Solved] to your thread title if the solution was found.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Request for statically compiled 32bit syslinux, extlinux

Post#2 by Ahau » 20 May 2011, 06:15

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
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Request for statically compiled 32bit syslinux, extlinux

Post#3 by fanthom » 20 May 2011, 08:53

@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)
Please add [Solved] to your thread title if the solution was found.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Request for statically compiled 32bit syslinux, extlinux

Post#4 by Ahau » 20 May 2011, 12:02

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.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Request for statically compiled 32bit syslinux, extlinux

Post#5 by fanthom » 03 Sep 2011, 06:58

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
Please add [Solved] to your thread title if the solution was found.

User avatar
ponce
Contributor
Contributor
Posts: 89
Joined: 28 Dec 2010, 10:15
Location: IT
Contact:

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

Post#6 by ponce » 03 Sep 2011, 08:27

good news! :Bravo: :beer:

Post Reply