Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98345 - kxsldbg 3.4.1 fails if libxslt is built with --without-debugger
Summary: kxsldbg 3.4.1 fails if libxslt is built with --without-debugger
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 98504 99074 99104 99757 100668 100833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-08 05:56 UTC by Pat Callahan
Modified: 2009-04-26 07:40 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pat Callahan 2005-07-08 05:56:30 UTC
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 Pat Callahan 2005-07-08 10:09:40 UTC
did emerge of libxslt with -g in CFLAGS. kxsldbg still got the same error
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-08 10:56:08 UTC
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 Pat Callahan 2005-07-08 17:38:25 UTC
(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 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-09 15:30:48 UTC
*** Bug 98504 has been marked as a duplicate of this bug. ***
Comment 5 Chris Smith 2005-07-11 17:13:34 UTC
Adding:
-D FORCE_DEBUGGER
to the CFLAGS (as mentioned in the error) works as well.
No need to recompile libxslt.
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-15 00:04:34 UTC
*** Bug 99074 has been marked as a duplicate of this bug. ***
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-15 02:34:24 UTC
After a closer look, it seems kxsldbg really needs libxslt compiled with 
--with-debugger, and becomes useless without it... 
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-15 10:29:23 UTC
*** Bug 99105 has been marked as a duplicate of this bug. ***
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-15 10:29:53 UTC
*** Bug 99104 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-07-21 01:14:38 UTC
*** Bug 99757 has been marked as a duplicate of this bug. ***
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-27 13:49:40 UTC
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 Leonardo Boshell (RETIRED) gentoo-dev 2005-07-27 15:10:56 UTC
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 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-27 15:32:17 UTC
Thank a lot Leonardo, this makes everything easier! 
 
Comment 14 Michael Knappe 2005-07-28 02:04:35 UTC
Works for me, best regards, Michael
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-28 05:54:00 UTC
Closing. 
Comment 16 Jean-Christophe Choisy 2005-07-28 13:30:45 UTC
FYI, the stable branch of portage is still affected, since libxslt was updated, but not brought to stable...
Comment 17 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-28 14:20:41 UTC
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 Jakub Moc (RETIRED) gentoo-dev 2005-07-29 02:34:56 UTC
*** Bug 100668 has been marked as a duplicate of this bug. ***
Comment 19 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-30 16:29:11 UTC
*** Bug 100833 has been marked as a duplicate of this bug. ***
Comment 20 merwan kashouty 2005-07-31 07:43:47 UTC
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 Marcin Kryczek (RETIRED) gentoo-dev 2005-08-02 11:57:37 UTC
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 Leonardo Boshell (RETIRED) gentoo-dev 2005-08-03 01:50:43 UTC
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 Gregorio Guidi (RETIRED) gentoo-dev 2005-08-03 03:17:38 UTC
Ok, feel free to close bug #100898 when you do.  
Comment 24 Andrei Slavoiu 2009-04-26 07:40:42 UTC
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