skipping incompatible libwine build problem.

Matthew Watchinski mwatchinski at sourcefire.com
Tue Jan 30 15:54:06 CST 2007


Hopefully this is the right mailing list to ask this.  If not please
point me to the correct list.

I have a simple application that use to build just fine using
libwine/wine-0.9.30 on ubuntu edgy 32-bit.  I just upgraded to a 64 bit
system and got wine-0.9.30 installed and working, however, now my
application doesn't build.

uname -a:

Linux ebx 2.6.17-10-generic #2 SMP Tue Dec 5 21:16:35 UTC 2006 x86_64
GNU/Linux

When i run make everything builds correctly but it won't link and it
exits as follows:

wineg++ -c -Wall -Wextra -Wwrite-strings -Wcast-align -Wsign-compare
-pedantic -m32 -mno-cygwin -municode -mconsole -Wb,--exe -Wb,-w
-DCOMMAND_LINE -DWINDOWSNATIVE -DBUILD_CLI  -o simpleapp.o simpleapp.cpp

wineg++ -c -Wall -Wextra -Wwrite-strings -Wcast-align -Wsign-compare
-pedantic -m32 -mno-cygwin -municode -mconsole -Wb,--exe -Wb,-w
-DCOMMAND_LINE -DWINDOWSNATIVE -DBUILD_CLI  -o simpleappList.o
simpleappList.cpp

wineg++ -mwindows -mno-cygwin -municode -mconsole -o simpleapp.exe.so
simpleapp.o simpleappList.o      -lodbc32 -lole32 -loleaut32 -lwinspool
-luuid
/usr/bin/ld: skipping incompatible /usr/local/lib/libwine.so when
searching for -lwine
/usr/bin/ld: skipping incompatible /usr/local/lib/libwine.so when
searching for -lwine
/usr/bin/ld: skipping incompatible /usr/local/lib/libwine.so when
searching for -lwine
/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: g++ failed.
make: *** [simpleapp.exe.so] Error 2

Everything in /usr/local/lib looks right to me.

ebx:~/Downloads/cvs/sfeng/research/tools/doccheck$ file
/usr/local/lib/libwine.so*
/usr/local/lib/libwine.so:     symbolic link to `libwine.so.1.0'
/usr/local/lib/libwine.so.1:   symbolic link to `libwine.so.1.0'
/usr/local/lib/libwine.so.1.0: ELF 32-bit LSB shared object, Intel
80386, version 1 (SYSV), not stripped

And the makefile is pretty simple

The only lines I've modified from the original winemaker Makefile are these:

CXXFLAGS              = -Wall -Wextra -Wwrite-strings -Wcast-align
-Wsign-compare -pedantic -m32
#CXXFLAGS              =
CEXTRA                = -mno-cygwin -municode -mconsole -Wb,--exe -Wb,-w
CXXEXTRA              = -mno-cygwin -municode -mconsole -Wb,--exe -Wb,-w
RCEXTRA               =
INCLUDE_PATH          =

simpleapp_exe_LDFLAGS = -mwindows \
                        -mno-cygwin \
                        -municode \
                        -mconsole

I assume I'm missing some magic ld switch, but I'm not sure what.  Can
anyone point me in the right direction?

Thanks
-matt



More information about the wine-devel mailing list