Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177329 - media-libs/mesa-6.5.3, fails to build with xcb enabled (-pthread option unrecognized by mklib)
Summary: media-libs/mesa-6.5.3, fails to build with xcb enabled (-pthread option unrec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-06 14:02 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-05-13 16:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mesa-6.5.3-pthread.patch (mesa-6.5.3-pthread.patch,298 bytes, patch)
2007-05-06 17:30 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-06 14:02:12 UTC
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.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-06 17:30:51 UTC
Created attachment 118364 [details, diff]
mesa-6.5.3-pthread.patch

This patch solves the issue for me.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-06 18:02:02 UTC
Submitted upstream as FreeDesktop bug #10876.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2007-05-07 01:25:12 UTC
Please reopen when it's accepted upstream. fd.o is down at the moment so I can't check its status.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-08 20:15:40 UTC
Upstream fixed on GIT.
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2007-05-13 16:15:44 UTC
(In reply to comment #4)
> Upstream fixed on GIT.
> 

Thanks, committed to 6.5.3.