How to compile wine under Solaris. Part II

See Part I

Beginning with wine 0.9.57 “-lsunmath” is needed. You can get the libsunmath library from blastwave, for example:

LIBS      = -lsocket -lnsl -lintl -L/opt/csw/lib -lsunmath

This is the error you might get if the library is not specified in dlls/wined3d/Makefile:

Undefined                       first referenced
symbol                             in file
isinf                               surface_base.o
ld: fatal: Symbol referencing errors. No output written to wined3d.dll.so
collect2: ld returned 1 exit status
winegcc: gcc failed
gmake[2]: *** [wined3d.dll.so] Error 2
gmake[2]: Leaving directory `/var/tmp/wine-0.9.57/dlls/wined3d'
gmake[1]: *** [wined3d] Error 2
gmake[1]: Leaving directory `/var/tmp/wine-0.9.57/dlls'
gmake: *** [dlls] Error 2

The isinf related discussion can be found here.

5 thoughts on “How to compile wine under Solaris. Part II”

  1. Shouldn’t you use the libsunmath that comes with Sun Studio if you’ve got that installed? That makes it compile, and you can specify it all from the configure line by setting variables.

    But wine 0.9.61 still doesn’t work under most recent (5/08) Solaris for me. Is that because I’m running 64-bit or something?

    ab

  2. Yes, the libsunmath from Sun Studio is the ideal case. BTW, I’m not sure if libsunmath is used in 0.9.61. i could not find any reference to this lib:

    xeon:/var/tmp/wine-0.9.61/dlls/wined3d> ldd wined3d.dll.so
    libsocket.so.1 => /lib/libsocket.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libintl.so.1 => /lib/libintl.so.1
    libwine.so.1 => (file not found)
    libm.so.2 => /lib/libm.so.2
    libc.so.1 => /lib/libc.so.1
    libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd.so.1 => /lib/libmd.so.1
    libscf.so.1 => /lib/libscf.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    libgen.so.1 => /lib/libgen.so.1

    Very strange that wine 0.9.61 does not work for you. As I mentioned here v0.9.61 was the 1st wine version that compiled cleanly. I did not have to do anything. Just configure and gmake.

    I have just checked the Makefile – I was using gcc not /opt/SUNWspro/bin/cc:

    xeon:/var/tmp/wine-0.9.61> fgrep CC Makefile
    CC = gcc

Leave a Reply

Your email address will not be published. Required fields are marked *