http://bugs.winehq.org/show_bug.cgi?id=29591
Bug #: 29591 Summary: configure could be improved to check for libSM explicitly Product: Wine Version: 1.3.36 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: martin@lispworks.com Classification: Unclassified
When trying to build 32-bit on a 64-bit system, the "checking for -lGLU" phase of configure was failing even though 32-bit libGLU.so was installed. Looking in config.log, I found:
configure:8947: checking for -lGLU configure:8972: gcc -m32 -o conftest -g -O2 conftest.c -lGLU -lGL -lSM -lICE -lXext -lX11 -lm >&5 /usr/bin/ld: skipping incompatible /usr/lib64/libSM.so when searching for -lSM /usr/bin/ld: cannot find -lSM collect2: ld returned 1 exit status
The error is true (32-bit libSM.so is not installed) but this is the first reference to -lSM so the failure to use -lGLU is somewhat misleading.
Perhaps configure should check for -lSM explicitly?