<?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>98345</bug_id>
          
          <creation_ts>2005-07-08 05:56 0000</creation_ts>
          <short_desc>kxsldbg 3.4.1 fails if libxslt is built with --without-debugger</short_desc>
          <delta_ts>2009-04-26 07:40:42 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>pat.callahan@earthlink.net</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>alex@rigbo.net</cc>
    
    <cc>ansla80@yahoo.com</cc>
    
    <cc>bug1@iinet.net.au</cc>
    
    <cc>chris@realcomputerguy.com</cc>
    
    <cc>cuse@users.sourceforge.net</cc>
    
    <cc>dakkar@thenautilus.net</cc>
    
    <cc>hartforda@gmail.com</cc>
    
    <cc>leonardop@gentoo.org</cc>
    
    <cc>notellin@speakeasy.net</cc>
    
    <cc>patrick@gentoo.org</cc>
    
    <cc>sgtphou@fire-eyes.org</cc>

      

      
          <long_desc isprivate="0">
            <who>pat.callahan@earthlink.net</who>
            <bug_when>2005-07-08 05:56:30 0000</bug_when>
            <thetext>Ebuild of kxsldbg fails with &quot;WITH_DEBUGGER MACRO not defined in libxslt 

Reproducible: Always
Steps to Reproduce:
Note: build done on a ~x86 install

1. emerge --unmerge kde
2. emerge kdebase-startkde
3. emerge quanta or emerge kxsldbg

Actual Results:  

the first ebuild is kde-base/kxsldbg-3.4.1.  This ebuild fails with the
following message:   

#error &quot;WITH_DEBUGGER MACRO not defined in libxslt maybe you&apos;ve disable debugger
in libxslt.&quot; &quot;if your are sure then disable this check by defining
WITH_FORCE_DEBUGGER. eg.\n&quot; &quot;\nmake CFLAGS=\&quot;$CFLAGS -D FORCE_DEBUGGER\&quot;&quot;

The full context of the message is shown below. 

/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++
-DHAVE_CONFIG_H -I. -I. -I../../..  -DDOCS_PATH=\&quot;/usr/kde/3.4/doc/xsldbg\&quot; -I..
-I/usr/include/libxml2 -I/usr/kde/3.4/include -I/usr/qt/3/include -I. 
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG
-O2 -O2 -march=pentium3 -mcpu=i686 -fomit-frame-pointer -g -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-DENABLE_CVSSERVICE  -c -o xsldbgthread.lo `test -f &apos;xsldbgthread.cpp&apos; || echo
&apos;./&apos;`xsldbgthread.cpp
In file included from xsldbgthread.cpp:20:
xsldbg.h:59:9: #error &quot;WITH_DEBUGGER MACRO not defined in libxslt maybe you&apos;ve
disable debugger in libxslt.&quot; &quot;if your are sure then disable this check by
defining WITH_FORCE_DEBUGGER. eg.\n&quot; &quot;\nmake CFLAGS=\&quot;$CFLAGS -D FORCE_DEBUGGER\&quot;&quot;
make[4]: *** [xsldbgthread.lo] Error 1




cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS=&quot;-O2 -march=pentium3 -mcpu=i686 -fomit-frame-pointer -g&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
MAKEOPTS=&quot;-j2&quot;
ACCEPT_KEYWORDS=&quot;~x86&quot;
GENTOO_MIRRORS=&quot;ftp://mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/
http://gentoo.netnitco.net http://212.219.56.152/sites/www.ibiblio.org/gentoo/&quot;
USE=&quot;X aalib alsa avi audiofile cdr composite cups dba dvd foomaticdb gb 
gtk2 gnome kde qt mozilla mysql python spell theora usb wxwindows xv xvid zlib&quot;

SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pat.callahan@earthlink.net</who>
            <bug_when>2005-07-08 10:09:40 0000</bug_when>
            <thetext>did emerge of libxslt with -g in CFLAGS. kxsldbg still got the same error</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-08 10:56:08 0000</bug_when>
            <thetext>It seems kxsldbg needs libxslt compiled with --with-debugger. 
This was enabled by default before 1.1.14, while libxslt-1.1.4 needs 
USE=&quot;debug&quot;... 
 
Looking at the source, it seems it changes absolutely nothing if we pass 
-DFORCE_DEBUGGER to kxsldbg, but I&apos;m not really sure of what&apos;s the meaning of 
all this... 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pat.callahan@earthlink.net</who>
            <bug_when>2005-07-08 17:38:25 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; did emerge of libxslt with -g in CFLAGS. kxsldbg still got the same error

A workaround: kxsldbg will build ok with these two commands:

USE=&quot;debug&quot; emerge libxslt
USE=&quot;debug&quot; emerge kxsldbg


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-09 15:30:48 0000</bug_when>
            <thetext>*** Bug 98504 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chris@realcomputerguy.com</who>
            <bug_when>2005-07-11 17:13:34 0000</bug_when>
            <thetext>Adding:
-D FORCE_DEBUGGER
to the CFLAGS (as mentioned in the error) works as well.
No need to recompile libxslt.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-15 00:04:34 0000</bug_when>
            <thetext>*** Bug 99074 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-15 02:34:24 0000</bug_when>
            <thetext>After a closer look, it seems kxsldbg really needs libxslt compiled with 
--with-debugger, and becomes useless without it... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2005-07-15 10:29:23 0000</bug_when>
            <thetext>*** Bug 99105 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2005-07-15 10:29:53 0000</bug_when>
            <thetext>*** Bug 99104 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-07-21 01:14:38 0000</bug_when>
            <thetext>*** Bug 99757 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-27 13:49:40 0000</bug_when>
            <thetext>Probably I will going to add a big warning that kxsldbg may not work if  
libxslt is compiled with --without-debugger and pass -DFORCE_DEBUGGER. 
 
The alternative is to change libxslt to always pass --with-debugger (the 
performance loss is negligible). But this is up to Leonardo... ;) 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leonardop@gentoo.org</who>
            <bug_when>2005-07-27 15:10:56 0000</bug_when>
            <thetext>Thanks for CC&apos;ing me. I&apos;ve committed libxslt-1.1.14-r1 to pass --with-debugger
unconditionally. Please try it out and let me know if it solves this or I need
to modify something else.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-27 15:32:17 0000</bug_when>
            <thetext>Thank a lot Leonardo, this makes everything easier! 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michael.knappe@styrianspirit.com</who>
            <bug_when>2005-07-28 02:04:35 0000</bug_when>
            <thetext>Works for me, best regards, Michael</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-28 05:54:00 0000</bug_when>
            <thetext>Closing. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eltino@nullctl.org</who>
            <bug_when>2005-07-28 13:30:45 0000</bug_when>
            <thetext>FYI, the stable branch of portage is still affected, since libxslt was updated, but not brought to stable...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-07-28 14:20:41 0000</bug_when>
            <thetext>Oh, this is serious, I missed the fact that libxslt-1.1.14 went stable. 
I committed a temporary workaround to the stable kdewebdev now. 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-07-29 02:34:56 0000</bug_when>
            <thetext>*** Bug 100668 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2005-07-30 16:29:11 0000</bug_when>
            <thetext>*** Bug 100833 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkashouty@gmail.com</who>
            <bug_when>2005-07-31 07:43:47 0000</bug_when>
            <thetext>this has happened to me with libxml2 also... recompiling it with USE=&quot;debug&quot; fixed the compilation error 
of kdewebdev-3.4.2 i was getting.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkay@gentoo.org</who>
            <bug_when>2005-08-02 11:57:37 0000</bug_when>
            <thetext>the same problem with libxml2. reemerging it with USE=debug made compilation of 
kxsldbg possible.
maybe add 

if ! built_with_use libxml2 debug; then
....
fi

into kxsldbg ebuild?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leonardop@gentoo.org</who>
            <bug_when>2005-08-03 01:50:43 0000</bug_when>
            <thetext>Since it doesn&apos;t make much sense to wait any longer for this, I marked
libxslt-1.1.14-r2.ebuild stable.

I&apos;ll remove the &apos;debug&apos; USE flag from libxml2 soon to help with bug #100898.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-08-03 03:17:38 0000</bug_when>
            <thetext>Ok, feel free to close bug #100898 when you do.  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ansla80@yahoo.com</who>
            <bug_when>2009-04-26 07:40:42 0000</bug_when>
            <thetext>It looks like libxslt-1.1.24 no longer has debugger as an optional feature, maybe it can be removed from the ebuild?

&gt;&gt;&gt; Completed installing libxslt-1.1.24-r1 into /var/tmp/portage/dev-libs/libxslt-1.1.24-r1/image/                                                                                  

 * QA Notice: Unrecognized configure options:                                                                   
 *                                                                                                              
 *      configure: WARNING: unrecognized options: --with-debugger                                               
 *      configure: WARNING: unrecognized options: --with-debugger                                               
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>