https://bugzilla.novell.com/show_bug.cgi?id=331740#c3
Tamas Farago changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |farago1@zonnet.nl
--- Comment #3 from Tamas Farago 2007-11-12 05:27:44 MST ---
I would like to reopen this bug, as I don't think the issue is resolved.
As seen, I have glibc-devel-32bit installed:
tfarago@arrakis:/tmp> rpm -qa | grep glibc
glibc-i18ndata-2.6.1-18.3
glibc-locale-2.6.1-18.3
glibc-2.6.1-18.3
glibc-info-2.6.1-18.3
glibc-locale-32bit-2.6.1-18.3
glibc-32bit-2.6.1-18.3
glibc-devel-2.6.1-18.3
glibc-devel-32bit-2.6.1-18.3
Still, programs in 32bit will not compile on my x86_64 openSUSE 10.3.
See the attachment for a very simple testcase. The #suse irc channel suggested
compiling the program with 'linux32 g++ test.cc -o test' (Linux32), but that
does not change a thing and program output is 64 bits.
The only solution I've been able to find is to manually create proper symlinks
in /usr/lib. For my simple testcase an ' sudo ln -s libstdc++.so.6.0.9
libstdc++.so' was enough.
To sum it up:
g++ test.cc -o test >> works, 64bit binary
g++ -m32 test.cc -o test >> does not work, incompatible libraries
linux32 g++ test.cc -o test >> works, 64bit binary
linux32 g++ -m32 test.cc -o test >> does not work, incompatible libraries
adding symlink to libstdc++ and any other libs that the program requires for
linking:
g++ -m32 test.cc -o test >> works, 32bit binary.
See attachment for more information. The openSUSE x86_64 installation is
unchanged/unmodified except for the symlink for this bug. The problem appeared
when I tried to compile mplayerplug-in on my x86_64 machine in 32bits (for
Opera). It only worked once I added symlinks to the proper libs (about a
dozen). Since then the plugin works perfectly.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.