By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2949

Summary: Build issue: tdewebdev FTBFS on current opensuse Tumbleweed
Product: TDE Reporter: Francois Andriot <albator78>
Component: tdewebdevAssignee: Francois Andriot <albator78>
Status: RESOLVED FIXED    
Severity: blocker CC: albator78, bugwatch, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: amd64   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2696    
Attachments: tdewebdev: fix FTBFS with libxml2 >= 2.9.8

Description Francois Andriot 2018-07-15 14:27:24 CDT
It looks like something has changed in libxml2 library that breaks tdewebdev.

Current version: libxml2 2.9.8, exact package name: libxml2-2-2.9.8-2.2.i586

Making all in libxsldbg
make[4]: Entering directory '/tmp/BUILD.oss150.i386/trinity-tdewebdev-14.0.4/kxsldbg/kxsldbgpart/libxsldbg'
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..  -DDOCS_PATH=\"/opt/trinity/doc/xsldbg\" -I.. -I/usr/include/libxml2 -I/opt/trinity/include/tde -I/usr/include/tqt3 -I. -include tqt.h  -I/usr/include/tqt -DQT_THREAD_SUPPORT  -D_REENTRANT -DKOMMANDER -DDESIGNER -DQT_NO_SQL -DHAVE_KDE  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DCOMPAT_KMDI -DENABLE_CVSSERVICE -DENABLE_EDITORS -std=c++11  -c -o breakpoint.lo breakpoint.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -DDOCS_PATH=\"/opt/trinity/doc/xsldbg\" -I.. -I/usr/include/libxml2 -I/opt/trinity/include/tde -I/usr/include/tqt3 -I. -include tqt.h -I/usr/include/tqt -DQT_THREAD_SUPPORT -D_REENTRANT -DKOMMANDER -DDESIGNER -DQT_NO_SQL -DHAVE_KDE -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DCOMPAT_KMDI -DENABLE_CVSSERVICE -DENABLE_EDITORS -std=c++11 -c breakpoint.cpp  -fPIC -DPIC -o .libs/breakpoint.o
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /usr/include/libxml2/libxml/tree.h:15,
                 from /usr/include/libxslt/xslt.h:13,
                 from xsldbg.h:79,
                 from breakpoint.cpp:10:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
breakpoint.cpp: In function 'void lineNoItemFree(void*)':
breakpoint.cpp:115:27: error: invalid conversion from 'void (*)(void*, xmlChar*)' {aka 'void (*)(void*, unsigned char*)'} to 'xmlHashDeallocator' {aka 'void (*)(void*, const unsigned char*)'} [-fpermissive]
         xmlHashFree(hash, breakPointItemFree);
                           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/libxml2/libxml/parser.h:18,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxslt/xslt.h:13,
                 from xsldbg.h:79,
                 from breakpoint.cpp:10:
/usr/include/libxml2/libxml/hash.h:113:26: note:   initializing argument 2 of 'void xmlHashFree(xmlHashTablePtr, xmlHashDeallocator)'
       xmlHashDeallocator f);
       ~~~~~~~~~~~~~~~~~~~^
breakpoint.cpp: In function 'int lineNoItemDelete(xmlHashTablePtr, breakPointPtr)':
breakpoint.cpp:135:32: error: invalid conversion from 'void (*)(void*, xmlChar*)' {aka 'void (*)(void*, unsigned char*)'} to 'xmlHashDeallocator' {aka 'void (*)(void*, const unsigned char*)'} [-fpermissive]
                                breakPointItemFree) == 0){
                                ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/libxml2/libxml/parser.h:18,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxslt/xslt.h:13,
                 from xsldbg.h:79,
                 from breakpoint.cpp:10:
/usr/include/libxml2/libxml/hash.h:160:47: note:   initializing argument 3 of 'int xmlHashRemoveEntry(xmlHashTablePtr, const xmlChar*, xmlHashDeallocator)'
                            xmlHashDeallocator f);
                            ~~~~~~~~~~~~~~~~~~~^
make[4]: *** [Makefile:655: breakpoint.lo] Error 1
make[4]: Leaving directory '/tmp/BUILD.oss150.i386/trinity-tdewebdev-14.0.4/kxsldbg/kxsldbgpart/libxsldbg'
make[3]: *** [Makefile:881: all-recursive] Error 1
make[3]: Leaving directory '/tmp/BUILD.oss150.i386/trinity-tdewebdev-14.0.4/kxsldbg/kxsldbgpart'
make[2]: *** [Makefile:877: all-recursive] Error 1
make[2]: Leaving directory '/tmp/BUILD.oss150.i386/trinity-tdewebdev-14.0.4/kxsldbg'
make[1]: *** [Makefile:618: all-recursive] Error 1
make[1]: Leaving directory '/tmp/BUILD.oss150.i386/trinity-tdewebdev-14.0.4'
make: *** [Makefile:535: all] Error 2
error: Bad exit status from /tmp/rpm-tmp.PlnkIj (%build)
Comment 1 Francois Andriot 2018-07-15 15:53:36 CDT
Created attachment 2883 [details]
tdewebdev: fix FTBFS with libxml2 >= 2.9.8

As I thought this is a change introduced in libxml2 2.9.8.

The commit is here:
https://gitlab.gnome.org/GNOME/libxml2/commit/e03f0a199a67017b2f8052354cf732b2b4cae787

Attached patch fixes the FTBFS.
Comment 2 Michele Calgaro 2018-07-18 05:55:02 CDT
Pushed in commit 9a0e630 (R14.1.x) and 70747ed (R14.0.x). Thanks.