Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148731 - app-admin/cpu-1.4.3-r1 won't compile on GCC 4
Summary: app-admin/cpu-1.4.3-r1 won't compile on GCC 4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-09-22 20:57 UTC by Howard B. Golden
Modified: 2006-12-16 19:50 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 Howard B. Golden 2006-09-22 20:57:58 UTC
While compiling commandline.c the following error is received:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include -march=athlon-xp -O2 -pipe -w -MT commandline.lo -MD -MP -MF .deps/commandline.Tpo -c commandline.c  -fPIC -DPIC -o .libs/commandline.lo
commandline.c: In function 'parseCommand':
commandline.c:86: error: invalid lvalue in assignment
make[4]: *** [commandline.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/cpu-1.4.3-r1/work/cpu-1.4.3/src/plugins/ldap'

Line 86 is:

  (int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;

According to the patch commentary (below), GCC 4 doesn't like left-hand-side casts. See http://sourceforge.net/tracker/index.php?func=detail&aid=1378339&group_id=45948&atid=444582 for a submitted patch. I have not tested this patch so far.

emerge --info:

Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.5
Last Sync: Fri, 22 Sep 2006 03:30:08 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.29
dev-lang/python:     2.3.5-r2, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/service /var/spool/fax/etc /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j1"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X X509 a52 aac acpi alsa amd ansi apache2 apm arts artswrappersuid artworkextra asf bcmath berkdb bitmap-fonts browserplugin bzip2 c++ cairo calendar caps cdda cddb cdf cdparanoia chroot cjk clamav cli cln cpudetection crypt css ctype cups curl curlwrappers dba dbase dbus dbx dio directfb djbfft dlloader dnd doc dri dv dvd dvdr dvdread dvi dynagraph ecc eds elibc_glibc emacs emboss encode erandom esd evo examples exif fastcgi fbcon fdftk ffmpeg fftw firefox flac flatfile font-server foomaticdb fortran ftp gb gcj gcl gd gdbm gif ginac glep gmp gnome gnomedb gnuplot gnustep gnutls gpm gprof graphviz gstreamer gtk gtk2 hal haskell iconv icq idea idl idn imagemagick imap imlib inifile innodb input_devices_keyboard input_devices_mouse insecure-drivers ipv6 isdnlog ithreads jabber java java5 javacomm javamail javascript jce jms jpeg junit jython kde kdeenablefinal kdepim kdexdeltas kerberos kernel_linux kexi kqemu latex ldap leim libclamav libg++ libgda libwww lids live lm_sensors log4j ltsp mad maildir mailwrapper math mbox mdb memlimit mikmod mime mmap mmx motif mozdevelop mozilla moznoirc moznomail mozsha1 mozsvg mozxmlterm mp3 mpeg mpi mplayer mysql ncurses netboot nls nptl nptlonly nsplugin oav objc ocaml odbc ofx ogg openexr opengl oss pam parse-clocks patented pcntl pcre pda pdf perl pg-hier pg-intdatetime php pic plotutils png posix postgres ppds pppd prelude pwdb python pyzor qdbm qemu-fast qmail qt3 qt4 quicktime rdesktop readline reflection rhino rss ruby samba sasl sdk sdl session sguil sharedmem simplexml skey slp soap sockets socks5 source spell spl sql sqlite sqlite3 sse ssl subversion svg svga syslog sysvipc t1lib tcltk tcpd tetex theora threads tidy tiff tk tokenizer toolbar truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU utf8 verbose vhosts video_cards_ati video_cards_fbdev video_cards_radeon video_cards_vesa vorbis wddx webdav win32codecs winbind wxwindows xemacs xine xml xmlreader xmlrpc xmlwriter xmms xorg xpm xsl xslt xv xvmc yahoo yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-12-16 19:50:32 UTC
fixed.