When emerging net-dialup/freeradius-2.0.3 i got a compile error Reproducible: Always Steps to Reproduce: 1. emerge freeradius Actual Results: x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -I/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src -DH OSTINFO=\"x86_64-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.0.3\" -DOPENSSL_NO_KRB5 -c xlat.c -fPIC -DPIC -o .libs/xlat.o xlat.c: In function 'xlat_register': xlat.c:484: warning: passing argument 3 of 'xlat_register' discards qualifiers from pointer target type xlat.c:493: warning: passing argument 3 of 'xlat_register' discards qualifiers from pointer target type xlat.c:505: warning: passing argument 3 of 'xlat_register' discards qualifiers from pointer target type x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -I/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src -DHOSTINFO=\"x86_64-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.0.3\" -DOPENSSL_NO_KRB5 -c xlat.c -o xlat.o >/dev/null 2>&1 /var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -I/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src -DHOSTINFO=\"x86_64-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.0.3\" -DOPENSSL_NO_KRB5 -c event.c x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -I/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src -DHOSTINFO=\"x86_64-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.0.3\" -DOPENSSL_NO_KRB5 -c event.c -fPIC -DPIC -o .libs/event.o event.c: In function 'event_socket_handler': event.c:2305: error: 'argval' undeclared (first use in this function) event.c:2305: error: (Each undeclared identifier is reported only once event.c:2305: error: for each function it appears in.) gmake[4]: *** [event.lo] Error 1 gmake[4]: Leaving directory `/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src/main' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/net-dialup/freeradius-2.0.3/work/freeradius-server-2.0.3' make: *** [all] Error 2 * * ERROR: net-dialup/freeradius-2.0.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2697: Called die * The specific snippet of code: * make || die "make failed" * The die message: * make 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/portage/net-dialup:freeradius-2.0.3:20080422-055420.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dialup/freeradius-2.0.3/temp/environment'. * Expected Results: a good merge ;-) Portage 2.1.5_rc6 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo x86_64) ================================================================= System uname: 2.6.24-gentoo x86_64 Intel(R) Pentium(R) 4 CPU 2.80GHz Timestamp of tree: Tue, 22 Apr 2008 05:30:11 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.4.4-r9, 2.5.2-r2 dev-python/pycrypto: 2.0.1-r5 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="ccache distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="C" LDFLAGS="" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/zugaina /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 7zip X Xaw3d a52 aac aalib acl acpi additions aim alsa amd64 amr amrnb amrwb apache2 artworkextra asf audiofile avahi ax25 bash-completion berkdb bluetooth bonjour bzip2 caca cairo calendar cddb cdparanoia cdr cgi clamav cli console cpudetection cracklib crypt css cups curl curlwrappers dba dbus dga divx divx4linux dri dts dv dvb dvd dvdr dvdread emerald enca epiphany esd ethereal evo exif expat extrafilters fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb ftp fuse gadu gb gd gdbm gif gimp glitz glut gmp gnome gnutls gphoto2 gpm gps groupwise gsm gtk gtkhtml h323 hal hfs ical iconv icq idn ieee1394 imagemagick imap imlib insecure-drivers ipv6 isdnlog jabber jack java javascript jfs joystick jpeg jpeg2k kerberos kodak krb4 ladcca ladspa lcd lcms ldap libcaca libnotify libwww lirc live lm_sensors logrotate logwatch lua lzo mad matroska mbox mbrola mdnsresponder-compat meanwhile midi mikmod milter mime ming mjpeg mmap mmx mng mono mp2 mp3 mp4 mp4live mplayer msn mtp mudflap musepack musicbrainz mysql mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses netcdf network nls nptl nptlonly nsplugin ntfs nvidia offensive ogg openal openexr opengl openmp osc oscar oss pam pcmcia pcntl pcre pda pdf perl php pic png pnm posix ppds pppd python qq qt3 qt3support qt4 quicktime radio radius rar readline realmedia reflection reiser4 reiserfs rle rrdtool rtsp samba sasl scanner sdl session sharedext sharedmem shorten shout silc skey slang slp sms sndfile snmp sockets speex spell spl sqlite sqlite3 sse sse2 ssl stream streamzap svg tcltk tcpd teletext tga theora tidy tiff tokenizer transcode truetype udev unicode upnp usb userlocales v4l v4l2 vboxbfe vcd vdr vfat vhosts videos visualization vorbis wddx wifi wma wmp wxwindows x264 xcb xcomposite xface xfs xine xml xml2 xorg xosd xpm xprint xrandr xscreensaver xsl xvid xvmc yahoo zephyr zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev v4l" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 150571 [details] Complete log
I have the same error on x86
Sorry for not searching in googzilla ;-) It seems like a fix is committed for the next release. http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg43432.html I diff'ed the 2.0.3 with a snapshot release and found the attached 'freeradius-server-argval-undeclared.diff' patch.
Created attachment 150630 [details] Declare 'argval' as a int
Hummm. that patch was too short and didn't work. I'll attach 2 files. - a patch - new ebuild These compiled fine and it works for me now.
Created attachment 150640 [details, diff] Working patch
Created attachment 150641 [details] Changed ebuild (only an extra patch line)
Fixed by upstream in freeradius-2.0.4. Thanks anyway!