Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 254256

Summary: app-misc/strigi-0.6.4 fails to build with GCC 4.4 - patches attached
Product: Gentoo Linux Reporter: Daniel J. <sleeperseven>
Component: [OLD] GCC PortingAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: asturm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/tracker2/?func=detail&aid=2494338&group_id=171000&atid=856302
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: explicitly include stdint.h and stdio.h
work around undefined HAVE_STDINT_H
Patch to add #include's to enable GCC 4.4 build

Description Daniel J. 2009-01-08 19:11:28 UTC
app-misc/strigi header files are missing several includes (stdint.h and stdio.h) which prevent building on GCC 4.4.  Reported upstream.

Also, HAVE_STDINT_H does not appear to be defined in dbusmessagewriter.h, resulting in further GCC 4.4 failures.
Comment 1 Daniel J. 2009-01-08 19:12:08 UTC
Created attachment 177789 [details, diff]
explicitly include stdint.h and stdio.h
Comment 2 Daniel J. 2009-01-08 19:12:46 UTC
Created attachment 177790 [details, diff]
work around undefined HAVE_STDINT_H
Comment 3 Daniel J. 2009-02-12 16:19:14 UTC
Created attachment 181797 [details, diff]
Patch to add #include's to enable GCC 4.4 build

Strigi 0.6.4 requires one additional include.  However, it doesn't suffer from HAVE_STDINT_H being undefined, so that patch is no longer necessary.
Comment 4 Andreas Sturmlechner gentoo-dev 2009-03-25 13:58:47 UTC
strigi-0.6.4 unfortunately fails despite the patch (which does fix breakage sooner in the build) being applied:


In file included from /var/tmp/portage/app-misc/strigi-0.6.4/work/strigi-0.6.4/src/luceneindexer/jsgzipcompressstream.h:25,                                                                                                           
                 from /var/tmp/portage/app-misc/strigi-0.6.4/work/strigi-0.6.4/src/luceneindexer/jsgzipcompressstream.cpp:20:                                                                                                         
/usr/include/CLucene/util/bufferedstream.h: In member function ‘void jstreams::BufferedInputStream<T>::resetBuffer()’:                                                                                                                
/usr/include/CLucene/util/bufferedstream.h:54: error: there are no arguments to ‘printf’ that depend on a template parameter, so a declaration of ‘printf’ must be available                                                          
/usr/include/CLucene/util/bufferedstream.h:54: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)                                                                 
make[2]: *** [src/luceneindexer/CMakeFiles/clucene.dir/jsgzipcompressstream.cpp.o] Error 1                         
make[1]: *** [src/luceneindexer/CMakeFiles/clucene.dir/all] Error 2                                                
make[1]: *** Waiting for unfinished jobs....                                                                       
[ 80%] Building CXX object src/streamanalyzer/xesam/CMakeFiles/strigi_xesam.dir/xesam2strigi.cpp.o                 
Linking CXX shared library libstrigihtmlgui.so                                                                     
[ 80%] Built target strigihtmlgui                                                                                  
Linking CXX static library libstrigi_xesam.a                                                                       
[ 80%] Built target strigi_xesam                                                                                   
make: *** [all] Error 2


Fix: strigi-9999 from kde-testing works.
Comment 5 Daniel J. 2009-03-25 20:05:25 UTC
That is a clucene issue, not a strigi issue; you need to patch clucene with the patch attached to bug 254254.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2009-03-26 05:22:21 UTC
Fixed, thanks.