<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mesa-9.1.3: undefined reference to `wglGetProcAddress@4'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91711">91711</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>mesa-9.1.3: undefined reference to `wglGetProcAddress@4'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yugiohjcj@1s.fr
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

Since I have cross-compiled mesa-9.1.3 (linux -> windows), I am unable to
cross-compile software that are using the opengl32 library:

1) glfw-3.1.1:
$ make
[ 23%] Built target glfw
Linking C executable boing.exe
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0xa9): undefined
reference to `wglGetProcAddress@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0xd0): undefined
reference to `wglGetProcAddress@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x140): undefined
reference to `wglGetProcAddress@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x207): undefined
reference to `wglGetProcAddress@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x248): undefined
reference to `wglGetProcAddress@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0xe07): undefined
reference to `wglCreateContext@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0xe5b): undefined
reference to `wglShareLists@8'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0xebe): undefined
reference to `wglDeleteContext@4'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x10da): undefined
reference to `wglMakeCurrent@8'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x10f3): undefined
reference to `wglMakeCurrent@8'
../src/libglfw3.a(wgl_context.c.obj):wgl_context.c:(.text+0x1213): undefined
reference to `wglGetProcAddress@4'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/boing.exe] Error 1
make[1]: *** [examples/CMakeFiles/boing.dir/all] Error 2
make: *** [all] Error 2

2) glew-1.13.0:
$ make SYSTEM=linux-mingw32 CC=i686-pc-mingw32-gcc LD=i686-pc-mingw32-ld
i686-pc-mingw32-gcc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude   -o
tmp/linux-mingw32/default/shared/glew.o -c src/glew.c
i686-pc-mingw32-ld -shared -soname libglew32.dll --out-implib
lib/libglew32.dll.a     -o lib/glew32.dll
tmp/linux-mingw32/default/shared/glew.o  -lopengl32 -lgdi32 -luser32 -lkernel32 
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x3cc): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x3e8): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x404): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x418): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x42c): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x440): more undefined
references to `wglGetProcAddress@4' follow
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x1783f): undefined
reference to `wglGetCurrentDC@0'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x178af): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x178c3): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x178de): undefined
reference to `wglGetCurrentDC@0'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x1795a): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x17ae0): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x17afc): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x17b1a): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x17efc): undefined
reference to `wglGetProcAddress@4'
tmp/linux-mingw32/default/shared/glew.o:glew.c:(.text+0x17f18): more undefined
references to `wglGetProcAddress@4' follow
make: *** [lib/glew32.dll] Error 1

Maybe this can help to understand the problem:
$ nm /usr/i686-pc-mingw32/lib/libopengl32.a | grep wglGetProc
00000000 I __imp__wglGetProcAddress
00000000 T _wglGetProcAddress

Any idea why it happens?

Thank you.
Best regards.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>