<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>206517</bug_id>
          
          <creation_ts>2008-01-18 11:14 0000</creation_ts>
          <short_desc>kde-base/{krunner,systemsettings}--4.0.0 fail to compile if qt is compiled with USE=&quot;-opengl&quot;</short_desc>
          <delta_ts>2008-01-27 15:40:13 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>KDE</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mreincke@gmx.net</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mreincke@gmx.net</who>
            <bug_when>2008-01-18 11:14:43 0000</bug_when>
            <thetext>krunners error:

[ 83%] Building C object krunner/CMakeFiles/kdeinit_krunner.dir/xautolock_engine.o
[ 85%] Building CXX object krunner/CMakeFiles/kdeinit_krunner.dir/kscreensaversettings.o
CMakeFiles/krunner_lock.dir/lockprocess.o: In function `LockProcess::createSaverWindow()&apos;:
lockprocess.cc:(.text+0x8e5): undefined reference to `glXChooseVisual&apos;
collect2: ld returned 1 exit status
make[2]: *** [krunner/lock/krunner_lock] Error 1
make[1]: *** [krunner/lock/CMakeFiles/krunner_lock.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


systemsettings:
Linking CXX shared module ../../lib/kcm_screensaver.so
[ 68%] Building CXX object kcontrol/kthememanager/CMakeFiles/kcm_kthememanager.dir/kthememanager.o
[ 69%] Building CXX object kcontrol/hardware/joystick/CMakeFiles/kcm_joystick.dir/poswidget.o
CMakeFiles/kcm_screensaver.dir/kswidget.o: In function `KSWidget::KSWidget(QWidget*, QFlags&lt;Qt::WindowType&gt;)&apos;:
kswidget.cpp:(.text+0x292): undefined reference to `glXChooseVisual&apos;
CMakeFiles/kcm_screensaver.dir/kswidget.o: In function `KSWidget::KSWidget(QWidget*, QFlags&lt;Qt::WindowType&gt;)&apos;:
kswidget.cpp:(.text+0x596): undefined reference to `glXChooseVisual&apos;


There are possibly others involved. The culprit might be the line 

check_library_exists(GL glXChooseVisual &quot;&quot; HAVE_GLXCHOOSEVISUAL) 

in work/systemsettings-4.0.0/kcontrol/screensaver/CMakeLists.txt (in the case of systemsettings), which is executed even if systemsettings are built with USE=&quot;-opengl&quot;.

Not sure, but I think the comment # FIXME: is have_openglxvisual found without screensaver is about this.

Possible solution would be to manually comment out this line...

P.S.: there is a little typo in systemsettings-4.0.0.ebuild. it should be $(cmake-utils_use_with ieee1394 RAW1394) instead of $(cmake-utils_usr_with ieee1394 RAW1394)

Reproducible: Always

Steps to Reproduce:
1.USE=&quot;-opengl&quot; emerge qt
2.emerge krunner systemsettings
3.

Actual Results:  
build fails</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zlin@gentoo.org</who>
            <bug_when>2008-01-27 15:40:13 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; There are possibly others involved. The culprit might be the line 
&gt; 
&gt; check_library_exists(GL glXChooseVisual &quot;&quot; HAVE_GLXCHOOSEVISUAL) 

Correct.

&gt; P.S.: there is a little typo in systemsettings-4.0.0.ebuild. it should be
&gt; $(cmake-utils_use_with ieee1394 RAW1394) instead of $(cmake-utils_usr_with
&gt; ieee1394 RAW1394)

Yes. Should all be fixed in cvs now. Thanks for the report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>