Re: compiling 32 bit code under amd64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 9 Dec 2004, Aleksandar Milivojevic wrote:

> Hmmm...  I don't have x86_64 either, so this might be stupid suggestion.
>   Why don't you fetch glib2-devel.i386 from i386 repository?  Comparing
> sizes of i386 packages from i386 repo and x86_64 repo, they seem
> identical.  I have no idea if it there is overlapping between x86_64 and
> i386 devel packages (probably there isn't for runtime library packages),
> so be carefull ;-)

Satish suggested this too, and its crazy/clever enough that it
might just work (and it kind of makes sense, as the 64-bit
distribution could theoretically be twice the sice of the 32-bit
one if it had to double each rpm). Here goes:

yum for some reason said it had "nothing to do" when I did a yum
install glib2-devel.i386 and had the FC3-32bit repos also in my
yum.conf. So I went to raw rpm:

rpm complained about conflicts about mostly doc files. So I
--force'ed it.

Summary, success. Now to do this for all the other things I need :)

[ademko@moya ademko]$ gcc -m32 -lglib-2.0 1.c
[ademko@moya ademko]$ ldd a.out
        linux-gate.so.1 =>  (0xffffe000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00689000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0039a000)
        /lib/ld-linux.so.2 (0x00381000)
[ademko@moya ademko]$ gcc -m64 -lglib-2.0 1.c
[ademko@moya ademko]$ ldd a.out
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x000000324ae00000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x000000324a100000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003249f00000)


--
// scopira.org | ninjacoder.com //


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux