Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130507 - libgdiplus-1.1.13.4 - doesn't compile due to -Werror
Summary: libgdiplus-1.1.13.4 - doesn't compile due to -Werror
Status: RESOLVED DUPLICATE of bug 126458
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-19 11:56 UTC by dhx
Modified: 2006-04-19 14:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dhx 2006-04-19 11:56:35 UTC
had to use the following line on my platform too (x86) to be able to compile:
sed -i -e 's:-Werror::g' src/Makefile

gcc -v:
Lese Spezifikationen von /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Konfiguriert mit: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread-Modell: posix
gcc-Version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-19 12:48:09 UTC
Reopen with actual error and emerge --info. 
Comment 2 dhx 2006-04-19 13:29:12 UTC
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cairo/pixman/src -I../cairo/pixman/src -I../cairo/src -I../cairo/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2   -Wall -Werror -Wno-unused -Wno-format    -g -mtune=pentium3 -march=pentium3 -O2 -pipe -Wall -fno-inline-functions -pthread -MT font.lo -MD -MP -MF ".deps/font.Tpo" -c -o font.lo font.c; \
        then mv -f ".deps/font.Tpo" ".deps/font.Plo"; else rm -f ".deps/font.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cairo/pixman/src -I../cairo/pixman/src -I../cairo/src -I../cairo/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -g -mtune=pentium3 -march=pentium3 -O2 -pipe -Wall -fno-inline-functions -pthread -MT font.lo -MD -MP -MF .deps/font.Tpo -c font.c  -fPIC -DPIC -o .libs/font.o
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[2]: *** [font.lo] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.13.4/work/libgdiplus-1.1.13.4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.13.4/work/libgdiplus-1.1.13.4'
make: *** [all] Fehler 2

!!! ERROR: dev-dotnet/libgdiplus-1.1.13.4 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  libgdiplus-1.1.13.4.ebuild, line 64:   Called die

!!! (no error message)



emerge --info:
Portage 2.1_pre7-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.12.0_pre17
distcc 2.5 i686-pc-linux-gnu (protocol 1) (default port 3632) [disabled]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -mtune=pentium3 -march=pentium3 -O2 -pipe -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-g -mtune=pentium3 -march=pentium3 -O2 -pipe -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://gentoo.inode.at/"
LANG="de_AT.UTF-8"
LC_ALL="de_AT.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth cairo cdparanoia cli cpudetection crypt css cups dba dnd dri dvd dvdr dvdread edl eds effects emboss encode fame firefox flac foomaticdb fortran gdbm gif gimp gimpprint gnokii gnome gnutls gopher gpgme gpm gs gstreamer gtk gtk2 hal imlib inkjar ipv6 irda isdnlog jpeg jpeg2k kde leim libg++ libwww mad mikmod mmx mmxext motif mozcalendar mozdevelop mozsvg mozxmlterm mp3 mpeg musicbrainz mysql ncurses nls nosendmail nptl nsplugin ofx ogg oggvorbis openexr opengl pam pcre pdflib perl plugin png posix pppd print python qt quicktime readline real reflection rtc screen sdl session simplexml slp sms soap sockets spell spl sqlite sse sse-filters sse2 ssl tcpd tiff toolbar transcode truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd visualization vorbis win32codecs xml2 xmlrpc xmms xprint xv xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-19 14:02:34 UTC
Remove -Wall from your C[XX]FLAGS... If you want those warning fixed, then submit this upstream.

*** This bug has been marked as a duplicate of 126458 ***