<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>137928</bug_id>
          
          <creation_ts>2006-11-26 19:03:45 +0000</creation_ts>
          <short_desc>kpilot ( kdepim 3.5.5-svn rev 608081 ) does not compile</short_desc>
          <delta_ts>2007-01-03 17:17:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpilot</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Gabriel C">crazy</reporter>
          <assigned_to>groot</assigned_to>
          <cc>vR</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>489825</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriel C">crazy</who>
    <bug_when>2006-11-26 19:03:45 +0000</bug_when>
    <thetext>Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-4.1.1 
OS:                Linux

Hi,

I got this compile error with kdepim-3.5.5-svn :

/usr/lib/qt/bin/moc ./kpilotConfigWizard.h -o kpilotConfigWizard.moc
/bin/sh ../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../../kpilot/lib -I../../libkdepim -I/usr/lib/qt/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1  -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O2 -pipe -Wno-deprecated -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o kpilotConfigWizard.lo kpilotConfigWizard.cc
../../kpilot/lib/options.h: In member function &apos;kdbgstream KPilotDepthCount::debug(int)&apos;:
../../kpilot/lib/options.h:138: error: conversion from &apos;kndbgstream&apos; to non-scalar type &apos;kdbgstream&apos; requested
make[4]: *** [kpilotConfigWizard.lo] Error 1
make[4]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot/kpilot&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot/kpilot&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn&apos;
make: *** [all] Error 2

Kdepim is compiled with:

./configure --prefix=/usr \
                --disable-debug \
                --without-debug \
                --disable-warnings \
                --with-gnu-ld \
                --enable-gcc-hidden-visibility \
                --disable-final \
                --disable-dependency-tracking

I&apos;m not sure now but I think this commit :

http://websvn.kde.org/branches/KDE/3.5/kdepim/kpilot/lib/options.h?rev=605527&amp;r1=442714&amp;r2=605527

cause the error.

Regards 

Gabriel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>489925</commentid>
    <comment_count>1</comment_count>
    <who name="Jason &apos;vanRijn&apos; Kasper">vR</who>
    <bug_when>2006-11-27 06:12:45 +0000</bug_when>
    <thetext>SVN commit 608204 by vanrijn:

- compilation breakage fix.  use CERR (matches kdepim-3.5.5+ branch anyway)
CCBUGS:137928


 M  +1 -1      options.h  


--- branches/KDE/3.5/kdepim/kpilot/lib/options.h #608203:608204
@@ -64,7 +64,7 @@
 #ifndef DEBUG
 #define DEBUG			(1)
 #endif
-// #define DEBUG_CERR			(1)
+#define DEBUG_CERR			(1)
 
 #ifdef HAVE_CONFIG_H
 #include &quot;config.h&quot;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>489926</commentid>
    <comment_count>2</comment_count>
    <who name="Jason &apos;vanRijn&apos; Kasper">vR</who>
    <bug_when>2006-11-27 06:13:46 +0000</bug_when>
    <thetext>Sorry about that.  This should be fixed in rev 608204.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497728</commentid>
    <comment_count>3</comment_count>
    <who name="Gabriel C">crazy</who>
    <bug_when>2007-01-03 06:42:15 +0000</bug_when>
    <thetext>Hi ,

I do know you fixed this once but you did it again ;) is broken by &apos;Revision 611839&apos; with the same compile error. ( feel free to slap me because I&apos;ve reopened this but I&apos;m lazy to open a new one bugs.kde.org is damn slow for me today and I don&apos;t have much time =) )

snip 

Making all in lib
make[3]: Entering directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot/lib&apos;
/usr/bin/kconfig_compiler ./kpilotlib.kcfg ./kpilotlibSettings.kcfgc; ret=$?; \
        if test &quot;$ret&quot; != 0; then rm -f kpilotlibSettings.h ; exit $ret ; else mv kpilotlibSettings.cpp kpilotlibSettings.cc ;  fi
kconfig_compiler: WARNING: No entries.
/bin/sh ../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../libkdepim -I/usr/lib/qt/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1  -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O2 -pipe -Wno-deprecated -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o options.lo options.cc
options.h: In member function &apos;kdbgstream KPilotDepthCount::debug(int)&apos;:
options.h:103: error: conversion from &apos;kndbgstream&apos; to non-scalar type &apos;kdbgstream&apos; requested
make[3]: *** [options.lo] Error 1
make[3]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot/lib&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn/kpilot&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/fst/src/kdepim-3.5.5-svn&apos;
make: *** [all] Error 2

snip

I guess the #ifdef DEBUG need be #ifndef .. I&apos;ll attach a patch ( not sure is the right solution )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497729</commentid>
    <comment_count>4</comment_count>
      <attachid>19088</attachid>
    <who name="Gabriel C">crazy</who>
    <bug_when>2007-01-03 06:43:44 +0000</bug_when>
    <thetext>Created attachment 19088
fix DEBUG defines</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497891</commentid>
    <comment_count>5</comment_count>
    <who name="">groot</who>
    <bug_when>2007-01-03 17:17:01 +0000</bug_when>
    <thetext>SVN commit 619524 by adridg:

Fix compilation when NDEBUG is on (ie --enable-debug=no) where kdDebug() returns a kndbgstream. Patch by bug submitter, munged to not enable debugging always.

BUG: 137928


 M  +4 -0      options.h  


--- branches/KDE/3.5/kdepim/kpilot/lib/options.h #619523:619524
@@ -99,7 +99,11 @@
 	// if DEBUG_CERR is defined, we can&apos;t return std::cerr (by value),
 	// since the copy constructor is private!
 #ifndef DEBUG_CERR
+#ifdef NDEBUG
+	inline kndbgstream debug(int area=0)
+#else
 	inline kdbgstream debug(int area=0)
+#endif
 	{ return kdDebug(debug_level &gt;= fLevel, area); }
 #endif
 
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19088</attachid>
            <date>2007-01-03 06:43:44 +0000</date>
            <delta_ts>2007-01-03 06:43:44 +0000</delta_ts>
            <desc>fix DEBUG defines</desc>
            <filename>kpilot-lib_options.h.diff</filename>
            <type>text/plain</type>
            <size>426</size>
            <attacher name="Gabriel C">crazy</attacher>
            
              <data encoding="base64">SW5kZXg6IGtwaWxvdC9saWIvb3B0aW9ucy5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGtwaWxvdC9saWIvb3B0
aW9ucy5oCShSZXZpc2lvbiA2MTkxOTkpCisrKyBrcGlsb3QvbGliL29wdGlvbnMuaAkoQXJiZWl0
c2tvcGllKQpAQCAtNzgsOSArNzgsMTAgQEAKIC8vIER1bm5vLCByZWFsbHkuIFByb2JhYmx5IGJl
Y2F1c2UgZXZlcnl0aGluZyBuZWVkcyBpdC4KICNpbmNsdWRlIDxrbG9jYWxlLmg+CiAvLyBGb3Ig
dGhlIGRlYnVnIHN0dWZmLgotI2lmZGVmIERFQlVHCisjaWZuZGVmIERFQlVHCiAjdW5kZWYgTkRF
QlVHCiAjdW5kZWYgTk9fREVCVUcKKyNkZWZpbmUgREVCVUcKICNpZm5kZWYgREVCVUdfQ0VSUgog
I2RlZmluZSBERUJVR19DRVJSCiAjZW5kaWYK
</data>

          </attachment>
      

    </bug>

</bugzilla>