Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126458 - libgdiplus fails to compile due to unused variables.
Summary: libgdiplus fails to compile due to unused variables.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
: 130507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-16 13:51 UTC by Alan
Modified: 2006-04-19 14:02 UTC (History)
1 user (show)

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


Attachments
Simple patch that strips out the unused variables that cause the compile to fail. (compile-fix.patch,2.81 KB, patch)
2006-03-16 13:53 UTC, Alan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan 2006-03-16 13:51:56 UTC
I'm getting these errors when compiling libgdiplus on a mostly x86 system:

font.c: In function `GdipCreateFontFromHfontA':
font.c:699: warning: unused variable `face'
font.c: In function `gdip_create_font_from_logfont':
font.c:772: warning: unused variable `face'
make: *** [font.lo] Error 1


Most likely something in my portage setup or CFLAGS  that tells it to fail on warnings, maybe something that can be stripped out on build?  Patch will be next.

Emerge info:
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Wall -march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -falign-jumps=4 -falign-loops=4 -falign-functions=64 -funroll-loops -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-Wall -march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -falign-jumps=4 -falign-loops=4 -falign-functions=64 -funroll-loops -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages prelink sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlay/portage-catalyst"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl alsa amarok animation apache2 apm arts artworkextra audiofile avi bash-completion beagle berkdb bitmap-fonts bittorrent bluetooth bonobo browserplugin bzip2 cairo ccache cdb cdr cdrom chm cli crypt cscope css cups curl daap dba dbus dga directfb dpms dri dts dvd dvdr dvdread dvi eds emboss encode epiphany escreen esd ethereal evo evolution examples exif expat exscalibar fam fastcgi fbcon ffmpeg firefox flac foomaticdb fortran fping ftp fuse gcj gd gdbm geoip gif gimp gimpprint glitz glut gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hddtemp howl icu idn imagemagick imap imlib innodb ipv6 java javascript jpeg junit kde lame lcms libg++ libnotify libsexy libwww logitech-mouse lzo mad mhash mikmod mitshm mmx mng mono mozcalendar mozilla mozsvg mp3 mpeg mplayer msn musicbrainz mysql nas nautilus ncurses network nntp nomalloccheck nptl nsplugin nvidia offensive ogg oggvorbis ole openal opengl oss pam pcre pdf pdflib perl php pic plugin pmount png postgres python qt qtmt quicktime rar readline real recode ruby samba scanner sdl slang slp speex spell spreadsheet sqlite sse ssl svg svga tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev usb vcd vim-pager vim-with-x visualization vorbis webservices win32codecs wma wmf wv xine xinerama xml xml2 xmms xrandr xscreensaver xv xvid zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Alan 2006-03-16 13:53:18 UTC
Created attachment 82315 [details, diff]
Simple patch that strips out the unused variables that cause the compile to fail.
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2006-03-29 22:08:03 UTC
Marking this INVALID. Your CFLAGS aren't even close to sane, and we do not support fixing every single warning that results in folks compiling with -Wall.

Please feel free to re-open this if you actually have a problem with saner CFLAGS. Thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-19 14:02:34 UTC
*** Bug 130507 has been marked as a duplicate of this bug. ***