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

Bug 219524

Summary: media-gfx/showimg-0.9.5 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: showimg-0.9.5-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-27 19:54:11 UTC
/bin/sh ../../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../showimg/kexi -I../../../../showimg/kexi/kexidb -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -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 -Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions  -include ../../../../showimg/kexi/kexi_global.h -DYYERROR_VERBOSE=1 -DMAKE_KEXI_DB_LIB -c -o sqlparser.lo `test -f 'sqlparser.cpp' || echo './'`sqlparser.cpp
sqlparser.y:592:5: warning: "YYDEBUG" is not defined
sqlparser.y:641:5: warning: "YYDEBUG" is not defined
sqlparser.y:657:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:149:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:291:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:394:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:403:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:428:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:442:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:451:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:493:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:526:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:550:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:657:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:690:5: warning: "YYDEBUG" is not defined
/usr/local/share/bison.simple:725:5: warning: "YYDEBUG" is not defined
In file included from /usr/qt/3/include/qwindowdefs.h:45,
                 from /usr/qt/3/include/qobject.h:44,
                 from sqlparser.y:460:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
In file included from /usr/qt/3/include/qobject.h:46,
                 from sqlparser.y:460:
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':
/usr/qt/3/include/qevent.h:520: warning: conversion to 'unsigned char' from 'uint' may alter its value
/usr/local/share/bison.simple: In function 'int yyparse()':
/usr/local/share/bison.simple:317: warning: conversion to 'short int' from 'int' may alter its value
/usr/local/share/bison.simple:361: error: 'free' was not declared in this scope
/usr/local/share/bison.simple:375: error: 'alloca' was not declared in this scope
sqlparser.y:674: warning: conversion to 'uint' from 'Q_LLONG' may alter its value
sqlparser.y:680: warning: conversion to 'uint' from 'Q_LLONG' may alter its value
/usr/local/share/bison.simple:614: warning: comparison between signed and unsigned integer expressions
/usr/local/share/bison.simple:617: error: 'malloc' was not declared in this scope
/usr/local/share/bison.simple:626: warning: comparison between signed and unsigned integer expressions
/usr/local/share/bison.simple:636: error: 'free' was not declared in this scope
/usr/local/share/bison.simple:742: error: 'free' was not declared in this scope
/usr/local/share/bison.simple:754: error: 'free' was not declared in this scope
sqlparser.y: At global scope:
sqlparser.y:1265: warning: type qualifiers ignored on function return type
make[5]: *** [sqlparser.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
sqlscanner.cpp:540:5: warning: "YY_STACK_USED" is not defined
sqlscanner.cpp:1685:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
sqlscanner.cpp:1979:5: warning: "YY_MAIN" is not defined
In file included from /usr/qt/3/include/qvariant.h:43,
                 from ../../../../showimg/kexi/kexidb/field.h:26,
                 from sqlscanner.l:23:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
In file included from /usr/qt/3/include/qobject.h:46,
                 from parser.h:25,
                 from sqlparser.h:3,
                 from sqlscanner.l:26:
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':
/usr/qt/3/include/qevent.h:520: warning: conversion to 'unsigned char' from 'uint' may alter its value
sqlscanner.cpp: In function 'int yylex()':
sqlscanner.cpp:703: warning: conversion to 'YY_CHAR' from 'const int' may alter its value
sqlscanner.cpp:713: warning: conversion to 'YY_CHAR' from 'const int' may alter its value
sqlscanner.cpp: In function 'yy_state_type yy_get_previous_state()':
sqlscanner.cpp:1383: warning: conversion to 'YY_CHAR' from 'int' may alter its value
sqlscanner.cpp:1393: warning: conversion to 'YY_CHAR' from 'const int' may alter its value
sqlscanner.cpp: In function 'yy_state_type yy_try_NUL_trans(yy_state_type)':
sqlscanner.cpp:1428: warning: conversion to 'YY_CHAR' from 'const int' may alter its value
make[5]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5/work/showimg-0.9.5/showimg/kexi/kexidb/parser'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5/work/showimg-0.9.5/showimg/kexi/kexidb'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5/work/showimg-0.9.5/showimg/kexi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5/work/showimg-0.9.5/showimg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5/work/showimg-0.9.5'
make: *** [all] Error 2
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-27 19:57:30 UTC
Created attachment 151175 [details, diff]
showimg-0.9.5-gcc43.patch

Absolute minimum patch to fix this with USE="exif kipi mysql". There's also "dereferencing type-punned pointer" QA issues in this program, but I don't want to touch that.
Snatched a bit from Debian. Added the sqlparser bits myself.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-05-11 18:18:41 UTC
Thanks for reporting, fixed now.