Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279135 - sci-visualization/paraview-3.6.1 fails building with USE="-threads"
Summary: sci-visualization/paraview-3.6.1 fails building with USE="-threads"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 09:58 UTC by Carles Pagès
Modified: 2009-07-26 10:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carles Pagès 2009-07-26 09:58:55 UTC
Paraview fails building when USE flag "threads" is not set.

Reproducible: Always

Steps to Reproduce:
leaf ~ # emerge paraview -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sci-visualization/paraview-3.6.1  USE="doc python -boost -examples -hdf5 -mpi -plugins -qt4 -threads" 0 kB
Actual Results:  
...
Linking C executable ../../../bin/ProcessShader
[  4%] Built target ProcessShader
[  4%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkDataArray.o
/var/tmp/portage/sci-visualization/paraview-3.6.1/work/ParaView3/VTK/Common/vtkConditionVariable.cxx:27: error: conflicting declaration 'typedef int pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:105: error: 'pthread_condattr_t' has a previous declaration as 'typedef union pthread_condattr_t pthread_condattr_t'
make[2]: *** [VTK/Common/CMakeFiles/vtkCommon.dir/vtkConditionVariable.o] Error 1
make[2]: *** Waiting for unfinished jobs....
...


As you can see there is a redefinition of pthread_condattr_t as /usr/include/bits/pthreadtypes.h is being included, when I think it shouldn't. Setting USE flag "threads" solves the problem, and paraview builds fine.
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2009-07-26 10:08:08 UTC
Hi Carles,

Please re-sync portage and try again. This has been
fixed yesterday and the threads useflag is gone
from ebuild since pthreads are now forces always.
See bug #278982.

Thanks,
Markus
Comment 2 Carles Pagès 2009-07-26 10:28:12 UTC
Oh, that was fast. Sorry for semi-duplicating the bug, I didn't see the other one was also related to pthreads.

Thanks!