[Bug 39696] New: -fPIC compile option required
https://bugs.winehq.org/show_bug.cgi?id=39696 Bug ID: 39696 Summary: -fPIC compile option required Product: Wine Version: 1.8-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: blake1024(a)gmail.com Distribution: --- When I built my app in 64 bit mode it wouldn't link. It said: winegcc -g -o main main.o main.res ../../lib/wds.a ../../lib/dynace.a -lkernel -luser -lgdi -lcomdlg -lcomctl -ladvapi -lshell -lmpr -lwine -lmsvcrt -lmsimg -lm /usr/bin/ld: ../../lib/dynace.a(Object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC ../../lib/dynace.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status winegcc: gcc failed I tried recompiling everything with -fPIC and the link then succeeded. If 64 bit WINE apps require -fPIC then the docs should be very clear about it. Thanks. Blake McBride -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 Blake McBride <blake1024(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blake1024(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de --- Comment #1 from Sebastian Lackner <sebastian(a)fds-team.de> --- Wines ./configure script should automatically add -fPIC to the CFLAGS. Please provide more details how exactly you tried to build it, and which host environment you have (OS, distribution, ...). -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 --- Comment #2 from Blake McBride <blake1024(a)gmail.com> --- Yes, it did auto-add the -fPIC to the _WINE_ build. That didn't affect my application build. I was unaware that my application had to be built with -fPIC. What I was suggesting is making it very clear that any apps built in 64 bits must use -fPIC. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 --- Comment #3 from Alexandre Julliard <julliard(a)winehq.org> --- Did you use winegcc when building your library? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 --- Comment #4 from Austin English <austinenglish(a)gmail.com> --- (In reply to Sebastian Lackner from comment #1)
Please provide more details how exactly you tried to build it, and which host environment you have (OS, distribution, ...).
Where/how should this warning occur? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 --- Comment #5 from Blake McBride <blake1024(a)gmail.com> --- I think the readme file should make clear the-fPIC requirement as well as the need for Win32 in order for Win64 to run. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 --- Comment #6 from Austin English <austinenglish(a)gmail.com> --- It's still not clear if you used winegcc to build your library as Alexandre asked in comment #3 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |dark.shadow4(a)web.de Status|UNCONFIRMED |NEEDINFO --- Comment #7 from Fabian Maurer <dark.shadow4(a)web.de> --- Any update on this? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #8 from joaopa <jeremielapuree(a)yahoo.fr> --- No news from the OP since 5 years. Can an administrator close this bug as ABANDONED? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39696 Zebediah Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|NEEDINFO |CLOSED CC| |z.figura12(a)gmail.com --- Comment #9 from Zebediah Figura <z.figura12(a)gmail.com> --- Closing abandoned. -- 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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla