[Bug 37540] Multiple games and applications wrapped with Enigma v4 and GG DRM schemes crash on startup (incompatible with use of position independent code (PIC) in Wine dlls)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 29 05:14:49 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=37540

--- Comment #11 from Michael Weiser <michael at weiser.dinsnail.net> ---
Hi,

I tried re-compiling with -fno-PIC and -mcmodel=large using osxwinebuilder but
get a relocation error on linking libwine.1.dylib:

ld: illegal text-relocation to '_dlldir' in config.o from '_get_dlldir' in
config.o for architecture i386

I guess, OS X doesn't like no-PIC dynamic libs. For -mdynamic-no-pic it's
explicitly documented in the man page - and clang even crashes when trying to
compile wine using it.

Is there a Mac expert around who could help me out?

Thanks,
Michael

Full call and error:
michael at nindamos:~/bin/wine/build/wine-1.7.38 #
PATH=/Users/michael/bin/wine/tools/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
make
make[1]: Nothing to be done for `all'.
version=`(GIT_DIR=../../.git git describe HEAD 2>/dev/null || echo
"wine-1.7.38") | sed -n -e '$s/\(.*\)/const char wine_build[] = "\1";/p'` &&
(echo $version | cmp -s - version.c) || echo $version >version.c || (rm -f
version.c && exit 1)
ccache gcc -m32 -dynamiclib -install_name @rpath/libwine.1.dylib
-Wl,-rpath, at loader_path/ -compatibility_version 1 -current_version 1.0 c_037.o
c_10000.o c_10001.o c_10002.o c_10003.o c_10004.o c_10005.o c_10006.o c_10007.o
c_10008.o c_10010.o c_10017.o c_10021.o c_10029.o c_1006.o c_10079.o c_10081.o
c_10082.o c_1026.o c_1250.o c_1251.o c_1252.o c_1253.o c_1254.o c_1255.o
c_1256.o c_1257.o c_1258.o c_1361.o c_20127.o c_20866.o c_20932.o c_21866.o
c_28591.o c_28592.o c_28593.o c_28594.o c_28595.o c_28596.o c_28597.o c_28598.o
c_28599.o c_28600.o c_28603.o c_28604.o c_28605.o c_28606.o c_424.o c_437.o
c_500.o c_737.o c_775.o c_850.o c_852.o c_855.o c_856.o c_857.o c_860.o c_861.o
c_862.o c_863.o c_864.o c_865.o c_866.o c_869.o c_874.o c_875.o c_878.o c_932.o
c_936.o c_949.o c_950.o casemap.o collation.o compose.o config.o cptable.o
debug.o fold.o ldt.o loader.o mbtowc.o mmap.o port.o sortkey.o string.o utf8.o
wctomb.o wctype.o version.o ../../libs/port/libwine_port.a  -framework
CoreFoundation -framework CoreServices
-L/Users/michael/bin/wine/wine-1.7.38/lib  -L/opt/X11/lib -framework
CoreServices -lz -L/opt/X11/lib -lGL -lGLU  -o libwine.1.0.dylib
ld: warning: could not create compact unwind for _wine_call_on_stack: dwarf
uses DW_CFA_same_value
ld: illegal text-relocation to '_dlldir' in config.o from '_get_dlldir' in
config.o for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libwine.1.0.dylib] Error 1
make: *** [libs/wine] Error 2

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list