[kde-freebsd] build kde-workspace-4.11.2 with clang

Schaich Alonso alonsoschaich at fastmail.fm
Thu Oct 24 08:44:47 UTC 2013


On Thu, 24 Oct 2013 04:10:30 +0000
Rianav Antares <kerenskyy at myopera.com> wrote:

> On Thu, 24 Oct 2013, at 01:48 AM, Schaich Alonso wrote:
> > On Wed, 23 Oct 2013 23:35:34 +0000
> > Rianav Antares <kerenskyy at myopera.com> wrote:
> > 
> > > Greetings all,
> > > 
> > > I would like to ask, is it possible to build  x11/kde4-workspace from
> > > area51 with clang? Or does it only build using gcc?
> > > 
> > > Thank you.
> > > 
> > > RA
> > 
> > Other than science/step, all ports in area51 can be built using clang at
> > this
> > time.
> 
> 
> Thank you for your reply.
> 
> Reason I ask is the kde4-workspace failed to build with the following:
> 
> [ 96%] Building CXX object
> kwin/CMakeFiles/kdeinit_kwin.dir/glxbackend.cpp.o
> /usr/ports/x11/kde4-workspace/work/kde-workspace-4.11.2/kwin/scene_opengl.cpp:309:10:
> error: use of undeclared identifier
>       'GL_GUILTY_CONTEXT_RESET_ARB'
>     case GL_GUILTY_CONTEXT_RESET_KWIN:
>          ^
> /usr/ports/x11/kde4-workspace/work/kde-workspace-4.11.2/kwin/scene_opengl.cpp:297:43:
> note: expanded from macro 'GL_GUILTY_CONTEXT_RESET_KWIN'
> #  define GL_GUILTY_CONTEXT_RESET_KWIN    GL_GUILTY_CONTEXT_RESET_ARB
>                                           ^
> /usr/ports/x11/kde4-workspace/work/kde-workspace-4.11.2/kwin/scene_opengl.cpp:313:10:
> error: use of undeclared identifier
>       'GL_INNOCENT_CONTEXT_RESET_ARB'
>     case GL_INNOCENT_CONTEXT_RESET_KWIN:
> 
> complete output: http://pastebin.com/pkU1D3JH
> 
> Is there any work-around for this?
> 
> Thanks.

You have to use the most recent Xorg version available in ports for kde-4.11,
i.e. define WITH_NEW_XORG in make.conf and run a ports update before builing
kde.

Alonso


More information about the kde-freebsd mailing list