[lsb-discuss] Getting started with LSB Sample Implementation environment

Stew Benedict stewb at aysenterprises.com
Fri Mar 2 13:22:03 PST 2007

On Fri, 2 Mar 2007, Daniel Yek wrote:

> Hi,
> I didn't manage to get LSB Sample Implementation working the last time I 
> tried it. I'm attacking the problem again and I really need support from 
> LSB SI expert if I ever have a chance of getting it working.
> So, I built a C HelloWord program in the LSB Build Environment:
> bash-3.1$ gcc -o helloworld helloworld.c
> I then copied helloworld into the SI environment and attempt to execute it:
> bash-3.1$ ./helloworld
> bash: ./helloworld: No such file or directory
> I couldn't.
> I tried a lot of workaround the last time around and was only barely making 
> ever slight progress.

I haven't really used the SI before, but probably a good time for me to 
try. I set it up basically the same as you, although on an x86_64 host:

alias chrootSI='linux32 sudo /usr/local/bin/chroot /mnt/LSB/lsbsi-core-ia32'

Compiled a hello.c both with lsbcc and gcc on a SLES10 ia32 chroot.

The lsbcc compiled "hello" runs in the SI, while the gcc compiled one does 
not, likely due to the lack of /lib/ld-linux.so.

[stew at presario30 ~]$ ldd lsbsi-core-ia32/home/stew/hello.lsbcc 
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf7f41000)
        libm.so.6 => /lib/libm.so.6 (0xf7f1a000)
        libc.so.6 => /lib/libc.so.6 (0xf7deb000)
        /lib/ld-lsb.so.3 (0xf7f69000)

[stew at presario30 ~]$ ldd lsbsi-core-ia32/home/stew/hello       
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xf7dd2000)
        /lib/ld-linux.so.2 (0xf7f15000)

[stew at presario30 ~]$ ls -l lsbsi-core-ia32/lib/ld*
-rwxr-xr-x 1 root root 600802 Jul 15  2006 lsbsi-core-ia32/lib/ld-2.4.so*
lrwxrwxrwx 1 root root      9 Mar  2 16:10 lsbsi-core-ia32/lib/ld-lsb.so.3 
-> ld-2.4.so*

It looked like your original compile in the build environment was with 
gcc, not lsbcc?

Hope this helps.
Stew Benedict

More information about the lsb-discuss mailing list