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

compiling 32 bit code under amd64



I can't seem too easily (without crazy ln -s hacks) compile 32 bit
code under my 64-bit fedora core 3 (on my AMD64). Very simple C/C++
app works, but as soon as I start pkg-config'in anything, it's like
gcc ignores everything in /usr/lib.

64-bit compiles work fine. Yes, I have the i386 versions of the
libraries installed. Yes, I tried export LIBRARY_PATH=/usr/lib.

[testuser moya tmp]$ cat 1.c
#include <stdio.h>

int main(void)
{
  printf("Hello\n");
  return 0;
}

[testuser moya tmp]$ gcc -m32 `pkg-config --cflags --libs glib-2.0`
1.c
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.so when
searching for -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.a when
searching for -lglib-2.0
[testuser moya tmp]$ file /usr/lib/libglib-2.0.so.0*
/usr/lib/libglib-2.0.so.0:       symbolic link to
`libglib-2.0.so.0.400.8'
/usr/lib/libglib-2.0.so.0.400.7: ELF 32-bit LSB shared object,
Intel 80386, version 1 (SYSV), stripped
/usr/lib/libglib-2.0.so.0.400.8: ELF 32-bit LSB shared object,
Intel 80386, version 1 (SYSV), stripped

64-bit is fine:
[testuser moya tmp]$ gcc -m64 `pkg-config --cflags --libs glib-2.0`
1.c
[testuser moya tmp]$


Any ideas?


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