http://bugs.winehq.org/show_bug.cgi?id=28247
Summary: d3dx9_36/mesh.c compile broken on uclibc Product: Wine Version: 1.3.27 Platform: x86 URL: http://git.alpinelinux.org/cgit/aports/tree/main/wine/ uclibc-fmaxf-fminf.patch?id=c9b491b6099eec02a835ffd055 39b5c783c6c43a OS/Version: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: directx-d3dx9 AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com CC: wine-bugs@winehq.org
I found Alpine Linux, which uses busybox/uclibc by default instead of glibc. First problem, build fails on d3dx9_36/mesh.c: ../../tools/winegcc/winegcc -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./d3dx9_36.spec core.o d3dx9_36_main.o effect.o font.o line.o math.o mesh.o shader.o skin.o sprite.o surface.o texture.o util.o volume.o version.res -o d3dx9_36.dll.so -ld3d9 -ld3dcompiler -ldxguid -ld3dxof -lole32 -lgdi32 -luser32 ../../libs/port/libwine_port.a mesh.o: In function `parse_vertex_colors': /root/wine-git/dlls/d3dx9_36/mesh.c:2551: undefined reference to `fmaxf' /root/wine-git/dlls/d3dx9_36/mesh.c:2551: undefined reference to `fminf' /root/wine-git/dlls/d3dx9_36/mesh.c:2552: undefined reference to `fmaxf' /root/wine-git/dlls/d3dx9_36/mesh.c:2552: undefined reference to `fminf' /root/wine-git/dlls/d3dx9_36/mesh.c:2553: undefined reference to `fmaxf' /root/wine-git/dlls/d3dx9_36/mesh.c:2553: undefined reference to `fminf' /root/wine-git/dlls/d3dx9_36/mesh.c:2554: undefined reference to `fmaxf' /root/wine-git/dlls/d3dx9_36/mesh.c:2554: undefined reference to `fminf' collect2: ld returned 1 exit status winegcc: gcc failed make: *** [d3dx9_36.dll.so] Error 2
there's a patch available on the alpine package: http://git.alpinelinux.org/cgit/aports/tree/main/wine/uclibc-fmaxf-fminf.pat...
though perhaps that definition should go in libs/port/wine instead?
http://bugs.winehq.org/show_bug.cgi?id=28247
--- Comment #1 from André H. nerv@dawncrow.de 2011-09-03 08:25:24 CDT --- Created an attachment (id=36215) --> (http://bugs.winehq.org/attachment.cgi?id=36215) adding the functiosn to libport
could you please try that patch
http://bugs.winehq.org/show_bug.cgi?id=28247
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #2 from Austin English austinenglish@gmail.com 2011-09-06 17:36:34 CDT --- (In reply to comment #1)
Created an attachment (id=36215)
--> (http://bugs.winehq.org/attachment.cgi?id=36215) [details]
adding the functiosn to libport
could you please try that patch
Works, thanks!
http://bugs.winehq.org/show_bug.cgi?id=28247
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=28247
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from André H. nerv@dawncrow.de 2011-09-08 15:48:06 CDT --- fixed by http://source.winehq.org/git/wine.git/commit/4cddd5ffdf0c568445365c6c62e7788...
http://bugs.winehq.org/show_bug.cgi?id=28247
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2011-09-09 12:54:52 CDT --- Closing bugs fixed in 1.3.28.
https://bugs.winehq.org/show_bug.cgi?id=28247
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4cddd5ffdf0c568445365c6c62e | |7788d7dbbca7d