The package compiles fine with GCC 3.4.5, but with GCC 4.0.2 I get the following error: make[1]: Entering directory `/gentoo/build/portage/isdn4k-utils-3.8_pre20050821/work/isdn4k-utils-CVS-2005-08-21/eicon' gcc -Wall -O3 -march=pentium4 -fomit-frame-pointer -pipe -DUNIX -DLINUX -I. -Iinclude -DEICONCTRL -DDATADIR=\"/lib/firmware\" -c -o eiconctrl.o eiconctrl.c eiconctrl.c: In function 'write_manage_element': eiconctrl.c:759: warning: pointer targets in passing argument 1 of '__builtin_strncpy' differ in signedness eiconctrl.c: In function 'get_manage_element': eiconctrl.c:821: warning: pointer targets in passing argument 1 of '__builtin_strncpy' differ in signedness eiconctrl.c:865: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness eiconctrl.c:874: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:877: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness eiconctrl.c:896: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:897: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness eiconctrl.c:908: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:909: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:911: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness eiconctrl.c:918: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:922: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:925: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness eiconctrl.c: In function 'eicon_management': eiconctrl.c:1252: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness eiconctrl.c:1254: warning: pointer targets in passing argument 2 of 'waddnstr' differ in signedness eiconctrl.c:1259: warning: pointer targets in passing argument 2 of 'l_edit' differ in signedness eiconctrl.c:1260: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness eiconctrl.c:1271: warning: pointer targets in passing argument 3 of 'write_manage_element' differ in signedness eiconctrl.c: In function 'main': eiconctrl.c:1684: warning: pointer targets in passing argument 2 of '__builtin_strncpy' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness eiconctrl.c:1961: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness eiconctrl.c:1962: warning: pointer targets in assignment differ in signedness eiconctrl.c:1973: error: invalid lvalue in assignment make[1]: *** [eiconctrl] Error 1 make[1]: Leaving directory `/gentoo/build/portage/isdn4k-utils-3.8_pre20050821/work/isdn4k-utils-CVS-2005-08-21/eicon' make: *** [subtargets] Error 2 !!! ERROR: net-dialup/isdn4k-utils-3.8_pre20050821 failed. Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14.4 i686) ================================================================= System uname: 2.6.14.4 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.12.0_pre12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 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-r1 sys-devel/binutils: 2.16.1-r1 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="-O3 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/gentoo/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/gentoo/build" PORTDIR="/gentoo/portage" PORTDIR_OVERLAY="/gentoo/build/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter ada afs alsa aotuv arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 caps cdb cdda cddb cdio cdparanoia cdr chipcard client-only cpudetection crypt cups dlloader doc dri dtaus dv dvd dvdread edl emacs emboss encode exif expat fam ffmpeg flac font-server foomaticdb ftp gd-external gdbm geldkarte gif glut gmp gnutls gphoto2 gpm gtk2 hardened hbci httpd icq idn imagemagick imap imlib ipppd irda irmc isdnlog jpeg jpeg2k kcal kde kerberos latex lcms ldap libg++ libwww lm_sensors lua lzo mad madwifi maildir mbox mime mng motif mozsvg mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc ofx ogg oggvorbis openexr opengl pam pam_console pcre pdflib perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qt quicktime rdesktop readline real recode rtc savedconfig slang slp sms sockets socks5 speedo speex spell sql sse ssl stream subversion svg svga symlink sysfs tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vim-with-x vlm vorbis wifi win32codecs wxwindows xine xml2 xprint xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc kernel_linux linguas_de userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
I have to take a look at it...
Created attachment 76424 [details, diff] gcc-4 patch This should work fine...please test to make sure though :) Also, just so you know, there is a file collision: existing file /usr/lib/X11/app-defaults is not owned by this package
Mark, isn't following solution better: - (unsigned short) *buffer = (unsigned short) val; + *(unsigned short*)buffer = (unsigned short) val;
Should do the same thing yea. I just dislike lots and lots of casts (especially anything on the left hand side) :)
damn, I have some other things in my isdn4k-utils queue (unfinished yet)... ;-) Ok, I'll try to include that patch ASAP, if you're done in evaluating the best method. Please attach a patch against the last stable version in portage then. thanks!
I take the solution in comment #3.
fixed in portage