[Bug 47090] wine fails to build with certain LDFLAGS

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 29 03:23:21 CDT 2019


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

--- Comment #2 from Rafał Mużyło <galtgendo at o2.pl> ---
(In reply to Alexandre Julliard from comment #1)
> I can't reproduce, it builds fine here.

Command that builds libwine:
x86_64-pc-linux-gnu-gcc -m32 -o libwine.so.1.0 config.o debug.o ldt.o loader.o
mmap.o port.o version.o -shared \
  -Wl,-soname,libwine.so.1 \
 
-Wl,--version-script=/mnt/buildbox/builds/portage/app-emulation/wine-4.7/work/wine-4.7/libs/wine/wine.map
\
  ../../libs/port/libwine_port.a -ldl -Wl,-O1 -Wl,--as-needed -Wl,--sort-common
-Wl,-z,relro

A failing command:
x86_64-pc-linux-gnu-gcc -m32 -o wine-installed main.o \
  -Wl,--rpath,\$ORIGIN/`../tools/makedep -R /usr/bin /usr/lib32`
-Wl,--enable-ne
w-dtags \
  -Wl,--export-dynamic -Wl,-Ttext-segment=0x7c000000
-Wl,-z,max-page-size=0x1000
 -lwine -lpthread \
  ../libs/port/libwine_port.a -L../libs/wine -Wl,-O1 -Wl,--as-needed
-Wl,--sort-
common -Wl,-z,relro

../libs/wine/libwine.so: undefined reference to `__wine_dbg_header'
../libs/wine/libwine.so: undefined reference to `__wine_dbg_output'


so, I don't know...
Any chance that during your build the already installed libwine is getting
picked up ? Going by '-L' it shouldn't, but perhaps '-rpath' interferes...?
Anyway, 'nm -C -D' does show those two symbols as undefined in the built lib...

gcc 7.3.0
binutils 2.29.1

-- 
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