Adsun701 / aur-packages

My PKGBUILDS and built packages for Arch Linux
MIT License
2 stars 0 forks source link

mingw-w64-freealut fails #1

Open qubodup opened 5 years ago

qubodup commented 5 years ago

Thanks for providing this only mingw-w64-freealut AUR PKGBUILD

I was trying to get help building that package at https://bbs.archlinux.org/viewtopic.php?pid=1856211 when I found this repo.

Unfortunately it fails to build http://ix.io/1PWN :

/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutBufferData.o:alutBufferData.c:(.text+0x11c): undefined reference to `_imp__alGenBuffers'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutBufferData.o:alutBufferData.c:(.text+0x122): undefined reference to `_imp__alGetError'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutBufferData.o:alutBufferData.c:(.text+0x18b): undefined reference to `_imp__alBufferData'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0xf): undefined reference to `_imp__alcGetCurrentContext'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x1b): undefined reference to `_imp__alGetError'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x28): undefined reference to `_imp__alcGetContextsDevice'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x31): undefined reference to `_imp__alcGetError'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0xc3): undefined reference to `_imp__alcOpenDevice'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0xda): undefined reference to `_imp__alcCreateContext'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0xe9): undefined reference to `_imp__alcMakeContextCurrent'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x156): undefined reference to `_imp__alcCloseDevice'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x16d): undefined reference to `_imp__alcDestroyContext'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x176): undefined reference to `_imp__alcCloseDevice'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x219): undefined reference to `_imp__alcMakeContextCurrent'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x22b): undefined reference to `_imp__alcGetContextsDevice'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x23b): undefined reference to `_imp__alcDestroyContext'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x244): undefined reference to `_imp__alcGetError'
/usr/lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/bin/ld: .libs/libalut_la-alutInit.o:alutInit.c:(.text+0x251): undefined reference to `_imp__alcCloseDevice'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:453: libalut.la] Error 1
make[2]: Leaving directory '/home/user/Downloads/try2/src/freealut-1.1.0/build-i686-w64-mingw32/src'
make[1]: *** [Makefile:446: all-recursive] Error 1
make[1]: Leaving directory '/home/user/Downloads/try2/src/freealut-1.1.0/build-i686-w64-mingw32'
make: *** [Makefile:376: all] Error 2
==> ERROR: A failure occurred in build().

Any ideas?

Adsun701 commented 5 years ago

Hi @qubodup, the official mingw-w64-openal package on the AUR does not apply MinGW-w64 specific patches to allow compilation of mingw-w64-freealut. This repository includes a patched mingw-w64-openal that resolves this.