Winelib under Solaris/SPARC

Robin KAY komadori at
Mon Aug 9 23:11:54 CDT 2004

Mike Hearn wrote:
> wine_pthread_* functions are supposed to be defined in the 
> wine-pthread/wine-kthread binaries. The DSOs then have their symbols 
> resolved to the executable at runtime. I don't know why this isn't 
> working for you but it's almost certainly related to using 
> Solaris/SPARC.

It looks like GNU binutils were at fault. I rebuilt gcc to use Sun's 
linker, fixed the bad flags specified for it in, and wine 
builds without the error (not counting a bunch of other minor 
portability fixes to the tree). Of course, the binaries still segfault.

$ wineprefixcreate
$ winemine
Segmentation Fault - core dumped
$ gdb /usr/local/bin/wine core
GNU gdb 6.1
Core was generated by `/usr/local/bin/wine winemine.exe'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/
Loaded symbols for /usr/local/lib/wine/
#0  0xfec92814 in NtCurrentTeb () from /usr/local/lib/wine/
(gdb) bt
#0  0xfec92814 in NtCurrentTeb () from /usr/local/lib/wine/
#1  0xfec068c0 in __wine_kernel_init () at process.c:1016
#2  0xff04955c in __wine_process_init (argc=-16477044, argv=0xff3853d8)
     at loader.c:2057
#3  0xff384618 in wine_init (argc=1, argv=0x0, error=0xffbff0f8 "",
     error_size=1024) at loader.c:536
#4  0x00010fdc in main (argc=1, argv=0xffbff56c) at main.c:44

> You'd have greater success running Linux I suspect, if 
> it's just a UNIXish environment you're after .... 

Or Solaris/IA32 for that matter. This is the only machine I have at the 
moment though.

Wishing you good fortune,
--Robin Kay-- (komadori)

More information about the wine-devel mailing list