[Bug 28247] New: d3dx9_36/mesh.c compile broken on uclibc

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Sep 1 14:48:42 CDT 2011


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 at winehq.org
        ReportedBy: austinenglish at gmail.com
                CC: wine-bugs at 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.patch?id=c9b491b6099eec02a835ffd05539b5c783c6c43a

though perhaps that definition should go in libs/port/wine instead?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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