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"
did emerge of libxslt with -g in CFLAGS. kxsldbg still got the same error
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...
(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
*** Bug 98504 has been marked as a duplicate of this bug. ***
Adding: -D FORCE_DEBUGGER to the CFLAGS (as mentioned in the error) works as well. No need to recompile libxslt.
*** Bug 99074 has been marked as a duplicate of this bug. ***
After a closer look, it seems kxsldbg really needs libxslt compiled with --with-debugger, and becomes useless without it...
*** Bug 99105 has been marked as a duplicate of this bug. ***
*** Bug 99104 has been marked as a duplicate of this bug. ***
*** Bug 99757 has been marked as a duplicate of this bug. ***
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... ;)
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.
Thank a lot Leonardo, this makes everything easier!
Works for me, best regards, Michael
Closing.
FYI, the stable branch of portage is still affected, since libxslt was updated, but not brought to stable...
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.
*** Bug 100668 has been marked as a duplicate of this bug. ***
*** Bug 100833 has been marked as a duplicate of this bug. ***
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.
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?
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.
Ok, feel free to close bug #100898 when you do.
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