Re: Issue: TORCS won't link libpng on Ubuntu 13.10
ajavibp <[email protected]> Mon, 19 May 2014 11:16:24 +0000 (UTC)
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <[email protected]> |
Toms Lēšmanis <lithe08 <at> inbox.lv> writes: > > > 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_structSo 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.0the 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.0And all the files have the "png_create_info_struct"Does this give you anything?Thanks,ReinisQuoting Bernhard Wymann <berniw <at> bluewin.ch> : 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 > Torcs-users <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/torcs-users > Hello, I had the same problem, but I renamed /lib/x86_64-linux-gnu/libpng12.so.0 and /lib/x86_64-linux-gnu/libpng12.so.0.49.0 to *.bak and make works fine! ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users