Re: Issue: TORCS won't link libpng on Ubuntu 13.10
"Toms Lēšmanis" <[email protected]> Wed, 04 Dec 2013 15:41:56 +0200
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, 1. "nm /usr/lib/x86_64-linux-gnu/libpng.a | grep create_info_struct" on ./lib/x86_64-linux-gnu/libpng.a gives: 00000000000002e0 T png_create_info_struct So it's defined there. 2. locate libpng* gives: /lib/i386-linux-gnu/libpng12.so.0 /lib/i386-linux-gnu/libpng12.so.0.49.0 /lib/x86_64-linux-gnu/libpng12.so.0 /lib/x86_64-linux-gnu/libpng12.so.0.49.0 /usr/lib/x86_64-linux-gnu/libpng.a /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libpng12.a /usr/lib/x86_64-linux-gnu/libpng12.so /usr/lib/x86_64-linux-gnu/libpng12.so.0 the file command gives: /lib/x86_64-linux-gnu/libpng12.so.0: symbolic link to `libpng12.so.0.49.0' /lib/x86_64-linux-gnu/libpng12.so.0.49.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x01b6604fb7db9154179ae8f67378fe56b0791a3f, stripped /usr/lib/x86_64-linux-gnu/libpng.so: symbolic link to `libpng12.so' /usr/lib/x86_64-linux-gnu/libpng12.so: symbolic link to `libpng12.so.0' /usr/lib/x86_64-linux-gnu/libpng12.so.0: symbolic link to `/lib/x86_64-linux-gnu/libpng12.so.0' So it all comes down to this one file /lib/x86_64-linux-gnu/libpng12.so.0.49.0 And all the files have the "png_create_info_struct" Does this give you anything? Thanks, Reinis Quoting Bernhard Wymann <[email protected]> : Hi Tom This looks good: > When I do "nm -D ./lib/x86_64-linux-gnu/libpng12.so | grep > create_info_struct", I get: > 0000000000003e80 T png_create_info_struct > So it's defined there. > COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/ > LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/ But this is suspect: 1. ./lib/x86_64-linux-gnu/libpng.a I do not have this on my system, what does nm on this file say (without the "-D" option this time, because it is a static library), maybe it tries to link with the static version (your output does not indicate this, but check it anyway). > P.S. when I do "ldd png_test" [my sample program], I get the following: > linux-vdso.so.1 => (0x00007fff2bbc0000) > libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 > (0x00007f651a44f000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f651a087000) > libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f6519e6a000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6519b66000) > /lib64/ld-linux-x86-64.so.2 (0x00007f651a68e000) 2. The libpng here seems to be in /lib/..., where the former one was in /usr/lib, could you check if this is the same file (symbolic/hard link?) Does the file in lib has the symbol as well (check this as well with nm)? Which packages do these files belong to, are these in the same one? Kind regards Bernhard ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users