Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252619 - sci-electronics/gspeakers-0.11 fails to compile (different failure that one desribed in bug#205303)
Summary: sci-electronics/gspeakers-0.11 fails to compile (different failure that one d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Marcus D. Hanwell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-26 17:09 UTC by David Kredba
Modified: 2009-08-01 21:21 UTC (History)
1 user (show)

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


Attachments
gspeakers-0.11.ebuild.patch (gspeakers-0.11.ebuild.patch,801 bytes, patch)
2009-08-01 05:26 UTC, Rafael Martins (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2008-12-26 17:09:19 UTC
Sci-electronics/gspeakers-0.11 fails to compile:

if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -g -pipe -mtune=core2 -march=core2 -mssse3 -msse4.1 -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libxml2   -Wall -O0 -MT crossoverhistory.o -MD -MP -MF ".deps/crossoverhistory.Tpo" \                                                                                                                                              
          -c -o crossoverhistory.o `test -f 'crossoverhistory.cc' || echo './'`crossoverhistory.cc; \                                                                                                                                       
        then mv -f ".deps/crossoverhistory.Tpo" ".deps/crossoverhistory.Po"; \                                                                                                                                                              
        else rm -f ".deps/crossoverhistory.Tpo"; exit 1; \                                                                                                                                                                                  
        fi                                                                                                                                                                                                                                  
speakereditor.cc: In member function 'void Speaker_ListStore::on_new()':                                                                                                                                                                    
speakereditor.cc:378: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'                                                                                                                                  
speakereditor.cc: In member function 'void Speaker_ListStore::on_selection_changed()':                                                                                                                                                      
speakereditor.cc:554: error: 'strtok' was not declared in this scope                                                                                                                                                                        
speakereditor.cc: In member function 'void Speaker_ListStore::draw_imp_plot(Speaker&, bool)':                                                                                                                                               
speakereditor.cc:662: error: 'strstr' was not declared in this scope                                                                                                                                                                        
speakereditor.cc:668: error: 'strtok' was not declared in this scope                                                                                                                                                                        
speakereditor.cc:702: error: 'strtok' was not declared in this scope                                                                                                                                                                        
make[2]: *** [speakereditor.o] Error 1                                                                                                                                                                                                      
make[2]: *** Waiting for unfinished jobs....                                                                                                                                                                                                
crossoverhistory.cc: In member function 'void CrossoverHistory::on_new_copy()':                                                                                                                                                             
crossoverhistory.cc:288: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'                                                                                                                               
crossoverhistory.cc: In member function 'void CrossoverHistory::on_new_from_menu(int)':                                                                                                                                                     
crossoverhistory.cc:320: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'                                                                                                                               
crossoverhistory.cc: In member function 'void CrossoverHistory::on_new()':                                                                                                                                                                  
crossoverhistory.cc:349: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'                                                                                                                               
make[2]: Leaving directory `/var/tmp/portage/sci-electronics/gspeakers-0.11/work/gspeakers-0.11/src'                                                                                                                                        
make[1]: *** [all-recursive] Error 1                                                                                                                                                                                                        
make[1]: Leaving directory `/var/tmp/portage/sci-electronics/gspeakers-0.11/work/gspeakers-0.11'                                                                                                                                            
make: *** [all] Error 2

I have these automake packages installed:

[I--] [  ] sys-devel/automake-1.4_p6 (1.4)
[I--] [  ] sys-devel/automake-1.5 (1.5)
[I--] [  ] sys-devel/automake-1.7.9-r1 (1.7)
[I--] [  ] sys-devel/automake-1.8.5-r3 (1.8)
[I--] [  ] sys-devel/automake-1.9.6-r2 (1.9)
[I--] [ ~] sys-devel/automake-1.10.2 (1.10)
[I--] [  ] sys-devel/automake-wrapper-3-r1


Reproducible: Always

Steps to Reproduce:
1. On ~amd64 try to emerge sci-electronics/gspeakers
2.
3.

Actual Results:  
Fails to compile with:

speakereditor.cc: In member function 'void Speaker_ListStore::on_new()':                                                                                                                                                                    
speakereditor.cc:378: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'                                                                                                                                  
speakereditor.cc: In member function 'void Speaker_ListStore::on_selection_changed()':                                                                                                                                                      
speakereditor.cc:554: error: 'strtok' was not declared in this scope                                                                                                                                                                        
speakereditor.cc: In member function 'void Speaker_ListStore::draw_imp_plot(Speaker&, bool)':                                                                                                                                               
speakereditor.cc:662: error: 'strstr' was not declared in this scope                                                                                                                                                                        
speakereditor.cc:668: error: 'strtok' was not declared in this scope                                                                                                                                                                        
speakereditor.cc:702: error: 'strtok' was not declared in this scope

Expected Results:  
Compiles fine.

emerge --info                                  
Portage 2.1.6.3 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.28-gentoo x86_64)
=================================================================                                            
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-glibc2.2.5          
Timestamp of tree: Fri, 26 Dec 2008 07:40:01 +0000                                                           
app-shells/bash:     3.2_p48                                                                                 
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                     
dev-lang/python:     2.5.2-r8                                                                                
dev-util/cmake:      2.6.2                                                                                   
sys-apps/baselayout: 2.0.0                                                                                   
sys-apps/openrc:     0.4.1                                                                                   
sys-apps/sandbox:    1.3.2                                                                                   
sys-devel/autoconf:  2.13, 2.63                                                                              
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                       
sys-devel/binutils:  2.19                                                                                    
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -g -pipe -mtune=core2 -march=core2 -mssse3 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -g -pipe -mtune=core2 -march=core2 -mssse3 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.inode.at/ http://gentoo.lagis.at/ http://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1"
LINGUAS="cs en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode esd evo examples fam fftw firefox fltk fortran gdbm gif gimp gmp gnome gpm gs gstreamer gtk hal htmlhandbook iconv idn isdnlog ithreads java jpeg kde kdeprefix lapack latex ldap libedit libnotify mad mbox midi mikmod mmx mp3 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin objc objc++ objc-gc ogg opengl openmp pam pch pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis wxwindows xattr xcb xcomposite xinerama xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="sony_dscf1 sony_dscf55" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv radeon savage sis tdfx trident vesa vga via vmware voodoo nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2008-12-26 20:56:36 UTC
Seems like a gcc 4.3 issue
Comment 2 Rafael Martins (RETIRED) gentoo-dev 2009-08-01 05:26:38 UTC
Created attachment 199784 [details, diff]
gspeakers-0.11.ebuild.patch

Seems to works fine with this patch. Additionally I've fixed some QA issues.

Tested with gcc 4.4.1 and glibc 2.10.1 on ~amd64
Comment 3 Marcus D. Hanwell (RETIRED) gentoo-dev 2009-08-01 21:21:52 UTC
OK, I applied your patch, works fine.