Bug 98345 - kxsldbg 3.4.1 fails if libxslt is built with --without-debugger
Bug#: 98345 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: pat.callahan@earthlink.net
Component: KDE
URL: 
Summary: kxsldbg 3.4.1 fails if libxslt is built with --without-debugger
Keywords:  
Status Whiteboard: 
Opened: 2005-07-08 05:56 0000
Description:   Opened: 2005-07-08 05:56 0000
Ebuild of kxsldbg fails with "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 "WITH_DEBUGGER MACRO not defined in libxslt maybe you've disable debugger
in libxslt." "if your are sure then disable this check by defining
WITH_FORCE_DEBUGGER. eg.\n" "\nmake CFLAGS=\"$CFLAGS -D FORCE_DEBUGGER\""

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=\"/usr/kde/3.4/doc/xsldbg\" -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 'xsldbgthread.cpp' || echo
'./'`xsldbgthread.cpp
In file included from xsldbgthread.cpp:20:
xsldbg.h:59:9: #error "WITH_DEBUGGER MACRO not defined in libxslt maybe you've
disable debugger in libxslt." "if your are sure then disable this check by
defining WITH_FORCE_DEBUGGER. eg.\n" "\nmake CFLAGS=\"$CFLAGS -D FORCE_DEBUGGER\""
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="-O2 -march=pentium3 -mcpu=i686 -fomit-frame-pointer -g"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
GENTOO_MIRRORS="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/"
USE="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"

SYNC="rsync://rsync.gentoo.org/gentoo-portage"

------- Comment #1 From Pat Callahan 2005-07-08 10:09:40 0000 -------
did emerge of libxslt with -g in CFLAGS. kxsldbg still got the same error

------- Comment #2 From Gregorio Guidi (RETIRED) 2005-07-08 10:56:08 0000 -------
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="debug"... 
 
Looking at the source, it seems it changes absolutely nothing if we pass 
-DFORCE_DEBUGGER to kxsldbg, but I'm not really sure of what's the meaning of 
all this... 
 

------- Comment #3 From Pat Callahan 2005-07-08 17:38:25 0000 -------
(In reply to comment #1)
> 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="debug" emerge libxslt
USE="debug" emerge kxsldbg



------- Comment #4 From Gregorio Guidi (RETIRED) 2005-07-09 15:30:48 0000 -------
*** Bug 98504 has been marked as a duplicate of this bug. ***

------- Comment #5 From Chris Smith 2005-07-11 17:13:34 0000 -------
Adding:
-D FORCE_DEBUGGER
to the CFLAGS (as mentioned in the error) works as well.
No need to recompile libxslt.

------- Comment #6 From Gregorio Guidi (RETIRED) 2005-07-15 00:04:34 0000 -------
*** Bug 99074 has been marked as a duplicate of this bug. ***

------- Comment #7 From Gregorio Guidi (RETIRED) 2005-07-15 02:34:24 0000 -------
After a closer look, it seems kxsldbg really needs libxslt compiled with 
--with-debugger, and becomes useless without it... 

------- Comment #8 From Carsten Lohrke 2005-07-15 10:29:23 0000 -------
*** Bug 99105 has been marked as a duplicate of this bug. ***

------- Comment #9 From Carsten Lohrke 2005-07-15 10:29:53 0000 -------
*** Bug 99104 has been marked as a duplicate of this bug. ***

------- Comment #10 From Jakub Moc (RETIRED) 2005-07-21 01:14:38 0000 -------
*** Bug 99757 has been marked as a duplicate of this bug. ***

------- Comment #11 From Gregorio Guidi (RETIRED) 2005-07-27 13:49:40 0000 -------
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... ;) 
 

------- Comment #12 From Leonardo Boshell (RETIRED) 2005-07-27 15:10:56 0000 -------
Thanks for CC'ing me. I'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.

------- Comment #13 From Gregorio Guidi (RETIRED) 2005-07-27 15:32:17 0000 -------
Thank a lot Leonardo, this makes everything easier! 
 

------- Comment #14 From Michael Knappe 2005-07-28 02:04:35 0000 -------
Works for me, best regards, Michael

------- Comment #15 From Gregorio Guidi (RETIRED) 2005-07-28 05:54:00 0000 -------
Closing. 

------- Comment #16 From Jean-Christophe Choisy 2005-07-28 13:30:45 0000 -------
FYI, the stable branch of portage is still affected, since libxslt was updated,
but not brought to stable...

------- Comment #17 From Gregorio Guidi (RETIRED) 2005-07-28 14:20:41 0000 -------
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. 
 

------- Comment #18 From Jakub Moc (RETIRED) 2005-07-29 02:34:56 0000 -------
*** Bug 100668 has been marked as a duplicate of this bug. ***

------- Comment #19 From Carsten Lohrke 2005-07-30 16:29:11 0000 -------
*** Bug 100833 has been marked as a duplicate of this bug. ***

------- Comment #20 From merwan kashouty 2005-07-31 07:43:47 0000 -------
this has happened to me with libxml2 also... recompiling it with USE="debug"
fixed the compilation error 
of kdewebdev-3.4.2 i was getting.

------- Comment #21 From Marcin Kryczek (RETIRED) 2005-08-02 11:57:37 0000 -------
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?

------- Comment #22 From Leonardo Boshell (RETIRED) 2005-08-03 01:50:43 0000 -------
Since it doesn't make much sense to wait any longer for this, I marked
libxslt-1.1.14-r2.ebuild stable.

I'll remove the 'debug' USE flag from libxml2 soon to help with bug #100898.

------- Comment #23 From Gregorio Guidi (RETIRED) 2005-08-03 03:17:38 0000 -------
Ok, feel free to close bug #100898 when you do.  

------- Comment #24 From Andrei Slavoiu 2009-04-26 07:40:42 0000 -------
It looks like libxslt-1.1.24 no longer has debugger as an optional feature,
maybe it can be removed from the ebuild?

>>> 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