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

Bug 275169

Summary: dev-libs/xqilla fails to build with gcc-4.4
Product: Gentoo Linux Reporter: Heiko Becker <heiko>
Component: [OLD] LibraryAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, haavardw
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: build log

Description Heiko Becker 2009-06-23 11:33:44 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./src/config -I./include/ -I/usr/include -I./src/lexer/ -D_GNU_SOURCE -D_REENTRANT -march=core2 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block -ftemplate-depth-50 -MT XSLT2Lexer.lo -MD -MP -MF .deps/XSLT2Lexer.Tpo -c src/lexer/XSLT2Lexer.cpp  -fPIC -DPIC -o .libs/XSLT2Lexer.o                  
In file included from /usr/include/stdio.h:908,                                                                       
                 from ../src/parser/XQParser.cpp:4677:                                                                
/usr/include/bits/stdio.h: In function 'int XQParser::fgetc_unlocked(FILE*)':                                         
/usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct _IO_FILE'                                 
/usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'                                              
/usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct _IO_FILE'                                 
/usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'                                              
/usr/include/bits/stdio.h:56: error: cannot convert 'FILE*' to 'XQParser::_IO_FILE*' for argument '1' to 'int XQParser::__uflow(XQParser::_IO_FILE*)'                                                                                       
/usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct _IO_FILE'                                 
/usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'

...

Reproducible: Always

Steps to Reproduce:




(Note that the bellow info comes from 'paludis --info'; if you want 'emerge
--info' in additon to this, let me know.)

paludis --info dev-libs/xqilla
paludis 0.36.1
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.4.0
        CXXFLAGS:               -march=core2 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block -pedantic
        LDFLAGS:               -Wl,-O1
        DATE:                  2009-05-29T05:24:13+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20090421

    Reduced Privs:
        reduced_uid:           101
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           1001
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

...
Comment 1 Heiko Becker 2009-06-23 11:35:36 UTC
Created attachment 195550 [details]
build log
Comment 2 Samuli Suominen gentoo-dev 2009-08-10 12:39:59 UTC
+  10 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> xqilla-2.2.0.ebuild,
+  +files/xqilla-2.2.0-gcc44.patch:
+  Fix building with GCC 4.4+ wrt #275169.
+