Hi all.
I get the following errors when build wine on OpenIndiana (full log attached)
../../tools/winegcc/winegcc -o acledit.dll.so -B../../tools/winebuild -shared -fPIC \ -fasynchronous-unwind-tables -shared \ /home/src/oi-userland/components/runtime/wine/wine-4.15/dlls/acledit/acledit.spec -mno-cygwin \ main.o -lsocket -lnsl -m32 Undefined first referenced symbol in file __wine$func$msvcrt$1016$ftell ../../dlls/msvcrt/libmsvcrt.a(msvcrt.fnrAK8.o) __wine$func$msvcrt$1024$getenv ../../dlls/msvcrt/libmsvcrt.a(msvcrt.L9RCyU.o) __wine$func$msvcrt$1060$localtime ../../dlls/msvcrt/libmsvcrt.a(msvcrt.JYRNHL.o) __wine$func$msvcrt$1019$fwrite ../../dlls/msvcrt/libmsvcrt.a(msvcrt.sHMkOc.o)
I suppose the libmsvcrt.a is built incorrectly - it misses the needed functions.
When I run ../../tools/winebuild/winebuild --save-temps -w --implib -o libmsvcrt.a --export \ /home/src/oi-userland/components/runtime/wine/wine-4.15/dlls/msvcrt/msvcrt.spec iob.o mathf.o \ onexit.o in dlls/msvcrt/ I get the assembler code with the simbol "__wine$func$msvcrt$1016$ftell" - see attached libmsvcrt.iJQgve.s
Should I place implementation of these functions (ftell(), getenv(), etc) to dlls/msvcrt/ (like the file dlls/msvcrt/mathf.c) or should I call them from libc (what is the correct way to call libc's funcs)? Or may be the problem is in another place?
thanks, evgeny