Michael Ploujnikov
2006-Jul-16 08:55 UTC
[Wine] latest git fails to compile, amstream.c:77: undefined ref to `IID_IUnknown'
git revision: ded4fbcc3c0d1e5f65cfb4e0e575f111c1e8974a I get the following: ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./amstream.spec amstream.o main.o mediastream.o regsvr.o version.res -Wl,--rpath,\$ORIGIN/`../../tools/relpath /usr/local/lib/wine /usr/local/lib` -o amstream.dll.so -lole32 -luser32 -ladvapi32 -lkernel32 -lstrmiids -luuid ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib amstream.o: In function `IAMMultiMediaStreamImpl_QueryInterface': /home/plouj/apps/wine-git/dlls/amstream/amstream.c:77: undefined reference to `IID_IUnknown' main.o: In function `AMCF_QueryInterface': /home/plouj/apps/wine-git/dlls/amstream/main.c:87: undefined reference to `IID_IUnknown' /home/plouj/apps/wine-git/dlls/amstream/main.c:87: undefined reference to `IID_IClassFactory' main.o: In function `DllGetClassObject': /home/plouj/apps/wine-git/dlls/amstream/main.c:176: undefined reference to `IID_IClassFactory' /home/plouj/apps/wine-git/dlls/amstream/main.c:176: undefined reference to `IID_IUnknown' mediastream.o: In function `IMediaStreamImpl_QueryInterface': /home/plouj/apps/wine-git/dlls/amstream/mediastream.c:74: undefined reference to `IID_IUnknown' collect2: ld returned 1 exit status winegcc: gcc failed. make[2]: *** [amstream.dll.so] Error 2 make[2]: Leaving directory `/home/plouj/apps/wine-git/dlls/amstream' make[1]: *** [amstream] Error 2 make[1]: Leaving directory `/home/plouj/apps/wine-git/dlls' make: *** [dlls] Error 2 I compile wine using the following script because I'm running on a Gentoo 64bit machine: $ cat build.sh #!/bin/bash ./configure --x-libraries=/emul/linux/x86/usr/lib/ \ LDFLAGS="-L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib" && \ make depend && \ make && \ ./wine --version && \ echo "use find . -name '*.o' -exec rm \"{}\" \; to cleanup after the compilation" I've successfully compiled wine 0.9.14-0.9.17 from CVS with this script. Someone suggested that my LDFLAGS is could be messing up configure and makes it use my system's libuuid instead of wines. I have found the following libraries on my system: $ locate libuuid /mnt/gentoo32/lib/libuuid.so.1.2 /mnt/gentoo32/lib/libuuid.so /mnt/gentoo32/lib/libuuid.so.1 /mnt/gentoo32/usr/lib/libuuid.a /mnt/gentoo32/usr/lib/libuuid.so /usr/lib64/libuuid.a /usr/lib64/libuuid.so /emul/linux/x86/lib/libuuid.so.1.2 /emul/linux/x86/lib/libuuid.so /emul/linux/x86/lib/libuuid.so.1 /home/plouj/apps/wine-0.9.2/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.2/dlls/libuuid.a /home/plouj/apps/wine-0.9.5/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.5/dlls/libuuid.a /home/plouj/apps/wine-0.9.6/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.6/dlls/libuuid.a /home/plouj/apps/wine-0.9.7/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.7/dlls/libuuid.a /home/plouj/apps/wine-0.9.9/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.9/dlls/libuuid.a /home/plouj/apps/wine-0.9.10/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.10/dlls/libuuid.a /home/plouj/apps/wine-0.9.11/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.12/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.13/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.14/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.15/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.16/dlls/uuid/libuuid.a /home/plouj/apps/wine-0.9.17/dlls/uuid/libuuid.a /lib64/libuuid.so.1.2 /lib64/libuuid.so /lib64/libuuid.so.1 /initrd/lib/libuuid.so.1 /initrd/lib/libuuid.so.1.2 Let me know if it would be appropriate to mail this to wine-devel@winehq.org
Daniel Skorka
2006-Jul-16 09:50 UTC
[Wine] Re: latest git fails to compile, amstream.c:77: undefined ref to `IID_IUnknown'
Michael Ploujnikov <ploujj@gmail.com> wrote:> Let me know if it would be appropriate to mail this to > wine-devel@winehq.orgI am by no means an expert when it comes to 64bit systems, but here's my two cents: The code in the repository can break at any given time. Breaking includes failure to compile. Maybe this only happens on 64bit platforms, which is why nobody has noticed yet. My advice is to wait at least 4 days from time of breakage, check again and report to wine-devel if still broken. Daniel>