I already asked this question on SO, but it seems like the problem is probably with linker.
So, the question is:
I'm trying to build a project, using
$ make, but it fails:
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
Now look at this library:
$ ls -l /usr/lib/libz.so lrwxrwxrwx 1 root root 20 2010-07-07 17:08 /usr/lib/libz.so -> /lib/libz.so.184.108.40.206 $ file /lib/libz.so.220.127.116.11 /lib/libz.so.18.104.22.168: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
and I have:
$ arch i686
I installed this library like this:
sudo apt-get install libz-dev
So.. How do I get through this? And how do I make Ubuntu download right libs in the future? And I'm actually not sure: is this the real problem, or it is somewhere else?
I'm also unable to install some required packages:
E: Couldn't find package lib32z1-dev E: Couldn't find package lib32ncurses5-dev
P.S. Ubuntu 10.04 LTS, running on Lenovo ThinkPad SL500, Core 2 DUO CPU.