How to build WineLib on Solaris
From Genunix
WineLib build instructions
I built WineLib on Solaris (both x86 and sparc platforms) last week. Most of the build issues on x86 were resolved by patchkit available at [1] .
There were certain issues specific to sparc platform related to opengl and assembler which were resolved later after searching Wine Headquarters [2] and a9/google. I was able to run simple apps like notepad and wordpad.
I have used 'gcc' to build WineLib.
WineLib build issues/resolution :-
(a) A very first error you can face is
Undefined first referenced symbol in file
GetStartupInfoA ../../dlls/libwinecrt0.a(exe_main.o)
GetModuleHandleA ../../dlls/libwinecrt0.a(exe_main.o)
GetCommandLineA ../../dlls/libwinecrt0.a(exe_main.o)
WinMain ../../dlls/libwinecrt0.a(exe_main.o)
ld: warning: Symbol referencing errors
The above error and lots lots of other errors can be definitely removed by applying the wine patches (specifically 20051015) available at [3] . For x86 this patchkit is sufficient. And for sparc too, it'll resolve lots of issues. So, make sure you implement the complete changes.
(b) Errors while building on sparc :-
“activeds.AtyNYe.s: Assembler messages:
activeds.AtyNYe.s:171: Error: operation combines symbols in different segments
activeds.AtyNYe.s:172: Error: operation combines symbols in different segments”
This will go away by applying patch for "wine/tools/winebuild/import.c" as available at,
(c) Make sure that you have xorg mesa packages installed.
