Open forum for end-user questions about
Wine . Before asking questions, check out the
Wiki as a first step.
Forum Rules
houdini
Newbie
Posts: 3 Joined: Mon Aug 02, 2010 6:32 pm
Post
by houdini » Mon Aug 02, 2010 6:38 pm
CFLAGS="-m32 $(CFLAGS)" LDFLAGS="-L/usr/lib32 $(LDFLAGS)" ./configure
I notice here some strange lines:
...
checking whether we need to define __i386__... no
...
configure: lib(n)curses 32-bit development files not found, curses won't be supported.
configure: libv4l 32-bit development files not found.
When I do make:
Code: Select all
/usr/bin/ld: i386:x86-64 architecture of input file `hash.o' is incompatible with i386 output
/usr/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [widl] Error 1
make[1]: Leaving directory `/media/backup/wine/tools/widl'
make: *** [tools/widl] Error 2
I did symlink lib32 to wine directory and install all I found about wine.
Thanks in advance[/code]
ryan woodsmall
Post
by ryan woodsmall » Mon Aug 02, 2010 6:45 pm
CFLAGS="-m32 $(CFLAGS)" LDFLAGS="-L/usr/lib32 $(LDFLAGS)" ./configure
Did you follow the steps on WineOn64bit page?
http://wiki.winehq.org/WineOn64bit
Your CFALGS and LDFLAGS don't look correct. $(...) is command substitution, similar to `...` in bash:
http://www.gnu.org/software/bash/manual ... bstitution
You probably want something more like:
CFLAGS="-m32 ${CFLAGS}" LDFLAGS="-L/usr/lib32 ${LDFLAGS}" ./configure --verbose
Again, using bash, ${...} is a parameter expansion, not a command substitution.
houdini
Newbie
Posts: 3 Joined: Mon Aug 02, 2010 6:32 pm
Post
by houdini » Mon Aug 02, 2010 7:25 pm
Thanks for your reply, but with this flags result is the same
Code: Select all
gcc -m32 -m32 -o widl client.o expr.o hash.o header.o proxy.o server.o typegen.o typelib.o typetree.o utils.o widl.o write_msft.o parser.tab.o parser.yy.o ../../libs/wpp/libwpp.a ../../libs/port/libwine_port.a -L/usr/lib32
/usr/bin/ld: i386:x86-64 architecture of input file `hash.o' is incompatible with i386 output
/usr/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [widl] Error 1
make[1]: Leaving directory `/media/backup/wine/tools/widl'
make: *** [tools/widl] Error 2
Do you have any other ideas?[/code]
ryan woodsmall
Post
by ryan woodsmall » Mon Aug 02, 2010 7:33 pm
Do you have any other ideas?
I don't use Ubuntu, but I would...
Clean the source directory to clear out any compiled object files, clear and set your CFLAGS and LDFLAGS again and try again:
cd /path/to/wine/source
make distclean
unset CFLAGS
unset LDFLAGS
export CFLAGS="-m32"
export LDFLAGS="-L./lib32"
rm -f lib32
mkdir -p ./lib32
ln -s /usr/lib32/mesa/libGL.so.1 ./lib32/libGL.so
./configure --verbose
make
The page says "There is no need to specify the -m32 or an explicit gcc version in Lucid." No idea if that's true or not; it's worth a try with and without CFLAGS="-m32" set. -r
houdini
Newbie
Posts: 3 Joined: Mon Aug 02, 2010 6:32 pm
Post
by houdini » Mon Aug 02, 2010 9:52 pm
Wow it helps! Thanks a lot!
But I get one error in any simple command
Code: Select all
houdini@mozart:/media/backup/wine$ wine --version
ERROR: ld.so: object '/lib/libgcc_s.so.1' from LD_PRELOAD cannot be preloaded: ignored.
wine-1.3.0
This error appeared a lot of times during install.
Do you know how to fix it?
Thanks again[/code]