Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254256 - app-misc/strigi-0.6.4 fails to build with GCC 4.4 - patches attached
Summary: app-misc/strigi-0.6.4 fails to build with GCC 4.4 - patches attached
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
Depends on:
Blocks: gcc-4.4
  Show dependency tree
Reported: 2009-01-08 19:11 UTC by Daniel J.
Modified: 2009-03-26 05:22 UTC (History)
1 user (show)

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

explicitly include stdint.h and stdio.h (strigi-0.5.11-gcc-4.4.patch,1.37 KB, patch)
2009-01-08 19:12 UTC, Daniel J.
Details | Diff
work around undefined HAVE_STDINT_H (strigi-0.5.11-have_stdint_h.patch,481 bytes, patch)
2009-01-08 19:12 UTC, Daniel J.
Details | Diff
Patch to add #include's to enable GCC 4.4 build (strigi-0.6.4-gcc-4.4.patch,1.74 KB, patch)
2009-02-12 16:19 UTC, Daniel J.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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                                                                     
[ 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.