Hello, I am trying to compile wine-5.0.3. The first problem is that for some reason it does not use the -fPIC option when compiling files to craate a shared object. I did the following and this "fixed" (?) the problem:
--- configure 2020-11-10 21:43:43.000000000 +0000 +++ ../../wine-5.0.3/configure 2021-01-16 18:29:42.749346792 +0000 @@ -9294,8 +9294,8 @@ *) case $host_cpu in *i[3456789]86*) - DLLFLAGS="$DLLFLAGS -fno-PIC" - LDDLLFLAGS="-fno-PIC" ;; + DLLFLAGS="$DLLFLAGS -fPIC" + LDDLLFLAGS="-fPIC" ;; *) DLLFLAGS="$DLLFLAGS -fPIC" LDDLLFLAGS="-fPIC" ;; After this I see the following error. make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/msvcrt' gcc -c -o iob.o iob.c -I. -I../../include -D__WINESRC__ -D_MT -D_MSVCR_VER=0 -D_REENTRANT -fPIC \ -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \ -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \ -gstrict-dwarf -fno-omit-frame-pointer -g -O2 gcc -c -o mathf.o mathf.c -I. -I../../include -D__WINESRC__ -D_MT -D_MSVCR_VER=0 -D_REENTRANT -fPIC \ -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \ -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \ -gstrict-dwarf -fno-omit-frame-pointer -g -O2 gcc -c -o onexit.o onexit.c -I. -I../../include -D__WINESRC__ -D_MT -D_MSVCR_VER=0 -D_REENTRANT -fPIC \ -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \ -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \ -gstrict-dwarf -fno-omit-frame-pointer -g -O2 ../../tools/winebuild/winebuild -w --implib -o libmsvcrt.a --export msvcrt.spec iob.o mathf.o onexit.o make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/msvcrt' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/msvcrtd' make[1]: 'libmsvcrtd.a' is up to date. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/msvcrtd' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/strmbase' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/strmbase' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/strmiids' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/strmiids' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/ucrtbase' make[1]: 'libucrtbase.a' is up to date. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/ucrtbase' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/uuid' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/uuid' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/winecrt0' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/winecrt0' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/wmcodecdspuuid' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/wmcodecdspuuid' make[1]: Entering directory '/opt/container/wine/wine-5.0.3/dlls/acledit' ../../tools/winegcc/winegcc -o acledit.dll.so --wine-objdir ../.. -fPIC -fasynchronous-unwind-tables -shared \ acledit.spec -mno-cygwin main.o -lsocket -lnsl -L/opt/gnu/wine/lib -R/opt/gnu/wine/lib Undefined first referenced symbol in file __wine$func$msvcrt$1016$fseek ../../dlls/msvcrt/libmsvcrt.a(msvcrt.QzX9Xq.o) __wine$func$msvcrt$1026$getenv ../../dlls/msvcrt/libmsvcrt.a(msvcrt.gjkAK5.o) __wine$func$msvcrt$1021$fwrite ../../dlls/msvcrt/libmsvcrt.a(msvcrt.KeF03G.o) __wine$func$msvcrt$1062$localtime ../../dlls/msvcrt/libmsvcrt.a(msvcrt.VvgQJY.o) __wine$func$msvcrt$971$atoi ../../dlls/msvcrt/libmsvcrt.a(msvcrt.k1sren.o) __wine$func$msvcrt$1003$fprintf ../../dlls/msvcrt/libmsvcrt.a(msvcrt.0oCzmk.o) __wine$func$msvcrt$1101$rewind ../../dlls/msvcrt/libmsvcrt.a(msvcrt.m4hlr5.o) __wine$func$msvcrt$1107$signal ../../dlls/msvcrt/libmsvcrt.a(msvcrt.EmiBA7.o) __wine$func$msvcrt$986$exit ../../dlls/msvcrt/libmsvcrt.a(msvcrt.sZ6bmO.o) __wine$func$msvcrt$1114$sscanf ../../dlls/msvcrt/libmsvcrt.a(msvcrt.HmcA6N.o) __wine$func$msvcrt$1121$strcpy ../../dlls/msvcrt/libmsvcrt.a(msvcrt.INWqaR.o) __wine$func$msvcrt$1116$strcat ../../dlls/msvcrt/libmsvcrt.a(msvcrt.XbPTAD.o) __wine$func$msvcrt$1118$strchr ../../dlls/msvcrt/libmsvcrt.a(msvcrt.fS2m9v.o) __wine$func$msvcrt$1119$strcmp ../../dlls/msvcrt/libmsvcrt.a(msvcrt.iv3kYW.o) __wine$func$msvcrt$1136$strspn ../../dlls/msvcrt/libmsvcrt.a(msvcrt.VOeGoC.o) __wine$func$msvcrt$1139$strtok ../../dlls/msvcrt/libmsvcrt.a(msvcrt.AEc1Vm.o) __wine$func$msvcrt$1141$strtol ../../dlls/msvcrt/libmsvcrt.a(msvcrt.Yxvs3z.o) __wine$func$msvcrt$1127$strlen ../../dlls/msvcrt/libmsvcrt.a(msvcrt.az7plM.o) __wine$func$msvcrt$1084$perror ../../dlls/msvcrt/libmsvcrt.a(msvcrt.BKI2EW.o) __wine$func$msvcrt$1086$printf ../../dlls/msvcrt/libmsvcrt.a(msvcrt.PWVc2f.o) __wine$func$msvcrt$1066$malloc ../../dlls/msvcrt/libmsvcrt.a(msvcrt.fCPAp2.o) __wine$func$msvcrt$1075$memchr ../../dlls/msvcrt/libmsvcrt.a(msvcrt.ECU6UG.o) __wine$func$msvcrt$1076$memcmp ../../dlls/msvcrt/libmsvcrt.a(msvcrt.z5zJ5L.o) __wine$func$msvcrt$1077$memcpy ../../dlls/msvcrt/libmsvcrt.a(msvcrt.quIPfV.o) __wine$func$msvcrt$1081$memset ../../dlls/msvcrt/libmsvcrt.a(msvcrt.UDyN7p.o) __wine$func$msvcrt$1018$ftell ../../dlls/msvcrt/libmsvcrt.a(msvcrt.6hEv79.o) __wine$func$msvcrt$976$calloc ../../dlls/msvcrt/libmsvcrt.a(msvcrt.MLY6ZY.o) __wine$func$msvcrt$992$fflush ../../dlls/msvcrt/libmsvcrt.a(msvcrt.OAKQzC.o) __wine$func$msvcrt$989$fclose ../../dlls/msvcrt/libmsvcrt.a(msvcrt.yIrmjF.o) __wine$func$msvcrt$1009$fread ../../dlls/msvcrt/libmsvcrt.a(msvcrt.O864SP.o) __wine$func$msvcrt$1098$realloc ../../dlls/msvcrt/libmsvcrt.a(msvcrt.jofE6c.o) __wine$func$msvcrt$1110$sprintf ../../dlls/msvcrt/libmsvcrt.a(msvcrt.rgqxyb.o) __wine$func$msvcrt$1151$time ../../dlls/msvcrt/libmsvcrt.a(msvcrt.Iyk6Q4.o) __wine$func$msvcrt$990$feof ../../dlls/msvcrt/libmsvcrt.a(msvcrt.qyzDkh.o) __wine$func$msvcrt$1123$strcspn ../../dlls/msvcrt/libmsvcrt.a(msvcrt.aB9UrO.o) __wine$func$msvcrt$1135$strrchr ../../dlls/msvcrt/libmsvcrt.a(msvcrt.uLcrd1.o) __wine$func$msvcrt$1142$strtoul ../../dlls/msvcrt/libmsvcrt.a(msvcrt.X6aAUc.o) __wine$func$msvcrt$1131$strncpy ../../dlls/msvcrt/libmsvcrt.a(msvcrt.GFL8BQ.o) __wine$func$msvcrt$1130$strncmp ../../dlls/msvcrt/libmsvcrt.a(msvcrt.lTwVMh.o) __wine$func$msvcrt$1156$tolower ../../dlls/msvcrt/libmsvcrt.a(msvcrt.HFG2YB.o) __wine$func$msvcrt$1157$toupper ../../dlls/msvcrt/libmsvcrt.a(msvcrt.CI0QVl.o) __wine$func$msvcrt$995$fgets ../../dlls/msvcrt/libmsvcrt.a(msvcrt.e2cqeA.o) __wine$func$msvcrt$1010$free ../../dlls/msvcrt/libmsvcrt.a(msvcrt.UPQhOB.o) __wine$func$msvcrt$1001$fopen ../../dlls/msvcrt/libmsvcrt.a(msvcrt.aYT3wP.o) __wine$func$msvcrt$303$_exit ../../dlls/msvcrt/libmsvcrt.a(msvcrt.No9AXm.o) __wine$func$msvcrt$1024$getc ../../dlls/msvcrt/libmsvcrt.a(msvcrt.cd05ik.o) __wine$func$msvcrt$1036$isdigit ../../dlls/msvcrt/libmsvcrt.a(msvcrt.8UbAWp.o) __wine$func$msvcrt$1034$isalpha ../../dlls/msvcrt/libmsvcrt.a(msvcrt.Y5fDAu.o) __wine$func$msvcrt$1039$islower ../../dlls/msvcrt/libmsvcrt.a(msvcrt.egiRNl.o) __wine$func$msvcrt$1042$isspace ../../dlls/msvcrt/libmsvcrt.a(msvcrt.QvB6Lk.o) __wine$func$msvcrt$1043$isupper ../../dlls/msvcrt/libmsvcrt.a(msvcrt.KiBI9j.o) __wine$func$msvcrt$1093$qsort ../../dlls/msvcrt/libmsvcrt.a(msvcrt.KK5rfR.o) __wine$func$msvcrt$961$abort ../../dlls/msvcrt/libmsvcrt.a(msvcrt.GKpzm1.o) __wine$func$msvcrt$1124$strerror ../../dlls/msvcrt/libmsvcrt.a(msvcrt.hsGUCh.o) __wine$func$msvcrt$1065$longjmp ../../dlls/msvcrt/libmsvcrt.a(msvcrt.yO7zX1.o) __wine$func$msvcrt$1057$isxdigit ../../dlls/msvcrt/libmsvcrt.a(msvcrt.8W9tqm.o) __wine$func$msvcrt$1079$memmove ../../dlls/msvcrt/libmsvcrt.a(msvcrt.66L3ub.o) ld: fatal: symbol referencing errors. No output written to acledit.dll.so collect2: error: ld returned 1 exit status winegcc: gcc failed make[1]: *** [Makefile:194: acledit.dll.so] Error 2 make[1]: Leaving directory '/opt/container/wine/wine-5.0.3/dlls/acledit' make: *** [Makefile:8857: dlls/acledit] Error 2 Any idea how can I fix this error? A.S. ---------------------- Apostolos Syropoulos Xanthi, Greece _______________________________________________ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss