Bug 194921 - app-pda/pilot-link-0.12.2 compile failed (-Werror)
Bug#: 194921 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: pda@gentoo.org Reported By: gentoobugs@budziszewski.de
Component: Applications
URL: 
Summary: app-pda/pilot-link-0.12.2 compile failed (-Werror)
Keywords:  
Status Whiteboard: 
Opened: 2007-10-06 17:35 0000
Description:   Opened: 2007-10-06 17:35 0000
>>> Emerging (1 of 5) app-pda/pilot-link-0.12.2 to /
[..]
cc1: warnings being treated as errors
address.c: In function 'unpack_AddressAppInfo':
address.c:212: warning: initialization discards qualifiers from pointer target
type
address.c: In function 'pack_AddressAppInfo':
address.c:280: warning: passing argument 1 of 'strcpy' discards qualifiers from
pointer target type
address.c:282: warning: passing argument 1 of 'strcpy' discards qualifiers from
pointer target type
address.c:301: warning: passing argument 1 of 'strcpy' discards qualifiers from
pointer target type
address.c:303: warning: passing argument 1 of 'strcpy' discards qualifiers from
pointer target type
make[2]: *** [libpisock_la-address.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include
-pthread -O2 -march=pentium4 -pipe -fomit-frame-pointer -Werror -MT
libpisock_la-unixserial.lo -MD -MP -MF .deps/libpisock_la-unixserial.Tpo -c
unixserial.c -o libpisock_la-unixserial.o >/dev/null 2>&1
cc1: warnings being treated as errors
libusb.c: In function 'u_write':
libusb.c:471: warning: passing argument 3 of 'usb_bulk_write' discards
qualifiers from pointer target type
make[2]: *** [libpisock_la-libusb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 *
 * ERROR: app-pda/pilot-link-0.12.2 failed.
 * Call stack:
 *                  ebuild.sh, line 1684:  Called dyn_compile
 *                  ebuild.sh, line 1020:  Called qa_call 'src_compile'
 *                  ebuild.sh, line   44:  Called src_compile
 *   pilot-link-0.12.2.ebuild, line   73:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/emerge/app-pda:pilot-link-0.12.2:20071006-164440.log'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Reproducible: Always

Steps to Reproduce:




emerge --info:
Portage 2.1.3.11 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0,
2.6.20-hardened-r6-sharkbait i686)
=================================================================
System uname: 2.6.20-hardened-r6-sharkbait i686 Intel(R) Pentium(R) 4 CPU
3.00GHz
Timestamp of tree: Fri, 05 Oct 2007 20:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS=" -O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LINGUAS="de"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-local /usr/local/portage-silbe
/usr/portage/local/layman/portage-budzi /usr/portage/local/layman/gentoo-de
/usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/wrobel
/usr/portage/local/layman/trauma /usr/portage/local/layman/xeffects
/usr/portage/local/layman/hanno-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apache2 bash-completion berkdb bitmap-fonts
branding cairo cli cracklib crypt cups dbus divx dlloader dri dvd dvdr encode
ffmpeg flac fortran gd gdbm geldkarte glitz gpm gtk2 hal hbci iconv imap ipv6
isdnlog jack jpeg kde kdeenablefinal kerberos ldap libcaca lirc lm_sensors midi
mmx mp3 mpeg mudflap mysql nas ncurses nls nogcj nptl nptlonly objc opengl
openmp pam pcre pda pdflib perl png postgres ppds pppd python qt qt3 qt4
readline reflection samba scanner scsh sdl session smp spl sse sse2 ssl tcpd
threads truetype-fonts type1-fonts unicode usb x86 xface xinerama xorg xprint
xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1 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 mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="de" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nv
nvidia vesa"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Jakub Moc (RETIRED) 2007-10-07 11:22:11 0000 -------
-Werror is retarded, upstream really should know better.

------- Comment #2 From Wulf Krueger (RETIRED) 2007-10-07 17:17:15 0000 -------
They do know better because they have a configure switch for -Werror and it's
actually set to --disable-compile-werror by default. The only problem with that
was that it breaks under some circumstances. Fixed in CVS.