i686-gentoo-freebsd6.2-gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi `pkg-config --cflags libdrm` -O2 -march=athlon-tbird -pipe -ggdb -fno-strict-aliasing -fPIC -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DUSE_XCB -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" ../../../src/mesa/x86/glapi_x86.S -o ../../../src/mesa/x86/glapi_x86.o ../../../bin/mklib -o GL -linker 'i686-gentoo-freebsd6.2-gcc' \ -major 1 -minor 2 \ -install ../../../lib -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes -lm -lpthread `pkg-config --libs libdrm` -lxcb -lXau -lpthread-stubs -lXdmcp -pthread -lX11-xcb -lX11 -lxcb -lxcb-xlib -lXau -lpthread-stubs -lXdmcp -lxcb-glx -lxcb -lXau -lpthread-stubs -lXdmcp glcontextmodes.o clientattrib.o compsize.o eval.o glxcmds.o glxext.o glxextensions.o indirect.o indirect_init.o indirect_size.o indirect_window_pos.o indirect_transpose_matrix.o indirect_vertex_array.o indirect_vertex_program.o pixel.o pixelstore.o render2.o renderpix.o single2.o singlepix.o vertarr.o xfont.o glx_pbuffer.o glx_query.o glx_texture_compression.o dri_glx.o XF86dri.o ../../../src/mesa/main/dispatch.o ../../../src/mesa/glapi/glapi.o ../../../src/mesa/glapi/glthread.o ../../../src/mesa/x86/glapi_x86.o mklib: Unknown option: -pthread gmake[3]: *** [../../../lib/libGL.so] Error 1 gmake[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src/glx/x11' gmake[2]: *** [subdirs] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src' gmake[1]: *** [default] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3' gmake: *** [freebsd-dri-x86] Error 2 !!! ERROR: media-libs/mesa-6.5.3 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile mesa-6.5.3.ebuild, line 233: Called die !!! Build failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/portage/logs-prakesh/media-libs:mesa-6.5.3:20070506-145721.log'. -pthread is probably coming from libxcb or libpthread-stubs.
Created attachment 118364 [details, diff] mesa-6.5.3-pthread.patch This patch solves the issue for me.
Submitted upstream as FreeDesktop bug #10876.
Please reopen when it's accepted upstream. fd.o is down at the moment so I can't check its status.
Upstream fixed on GIT.
(In reply to comment #4) > Upstream fixed on GIT. > Thanks, committed to 6.5.3.