Building Wine with the lsb sdk

Dan Kegel dank at kegel.com
Mon Aug 28 00:18:55 CDT 2006


I've been a longtime fan of the idea behind the LSB,
i.e. build once, run everywhere.  (If you're an anti-fan of
the LSB, please kindly skip this message.)

So tonight I downloaded the current LSB SDK from
http://www.freestandards.org/en/Download
and gave it a shot.  Here's the script I came up with:

#!/bin/sh
set -ex
PATH=/opt/lsb/bin:$PATH
CC=lsbcc
CXX=lsbc++
export CC
export CXX
# Must define RTLD_DEFAULT because of
http://bugs.linuxbase.org/show_bug.cgi?id=375
# Must define MAP_FILE because it's not in Unix's SUS3
# Must disable linux/videodev.h as it's not supported by the LSB,
# and won't compile with lsbcc
LSBCC_SHAREDLIBS=wine
export LSBCC_SHAREDLIBS
ac_cv_header_linux_videodev_h=no \
 ./configure --prefix=/usr/local/wine-lsb
make depend LDFLAGS=-ldl
make LDFLAGS=-ldl CFLAGS="-g -O2 \"-DRTLD_DEFAULT=((void *)0)\" -DMAP_FILE=0"

This worked past a number of problems, but the build breaks with the error
/opt/lsb/include/unistd.h:342: error: syntax error before
'Include_winsock_h_before_stdlib_h_or_use_the_MSVCRT_library'
while building dlls/comctl32/tests/imagelist.c

The fix is not obvious.  I'll try giving it another look sometime this week.
- Dan



More information about the wine-devel mailing list