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
collect2: ld returned 1 exit status
winegcc: gcc failed
gmake[2]: *** [] 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?


  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 => /lib/ => /lib/ => /lib/ => (file not found) => /lib/ => /lib/ => /usr/sfw/lib/ => /lib/ => /lib/ => /lib/ => /lib/ => /lib/

    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.