Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210837 - net-dialup/ppp-2.4.4-r14 fails to compile
Summary: net-dialup/ppp-2.4.4-r14 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 234915
  Show dependency tree
 
Reported: 2008-02-20 07:00 UTC by Andriy Baranskyy
Modified: 2008-08-16 13:03 UTC (History)
9 users (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 Andriy Baranskyy 2008-02-20 07:00:14 UTC
net-dialup/ppp-2.4.4-r14 fails to compile with the following message:
i686-pc-linux-gnu-gcc  -O2 -march=i686 -pipe -D_GNU_SOURCE -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -o radius.so radius.o libradiusclient.a
i686-pc-linux-gnu-gcc  -O2 -march=i686 -pipe -D_GNU_SOURCE -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -o radrealms.so radrealms.o
i686-pc-linux-gnu-gcc  -O2 -march=i686 -pipe -D_GNU_SOURCE -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -o radattr.so radattr.o
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
radrealms.o: In function `plugin_init':
radrealms.c:(.text+0x14): undefined reference to `radius_pre_auth_hook'
radrealms.c:(.text+0x2a): undefined reference to `add_options'
radrealms.c:(.text+0x38): undefined reference to `info'
radrealms.o: In function `lookup_realm':
radrealms.c:(.text+0xc6): undefined reference to `info'
radrealms.c:(.text+0x11a): undefined reference to `info'
radrealms.c:(.text+0x22b): undefined reference to `info'
radrealms.c:(.text+0x2bb): undefined reference to `info'
radrealms.o:radrealms.c:(.text+0x313): more undefined references to `info' follow
radrealms.o: In function `lookup_realm':
radrealms.c:(.text+0x41c): undefined reference to `option_error'
radrealms.c:(.text+0x435): undefined reference to `info'
radrealms.c:(.text+0x474): undefined reference to `option_error'
radrealms.c:(.text+0x4b9): undefined reference to `option_error'
radrealms.c:(.text+0x4f8): undefined reference to `option_error'
radrealms.c:(.text+0x537): undefined reference to `option_error'
collect2: ld returned 1 exit status
make[2]: *** [radrealms.so] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
radius.o: In function `radius_allowed_address':
radius.c:(.text+0x69): undefined reference to `ipcp_wantoptions'
radius.o: In function `plugin_init':
radius.c:(.text+0xd4): undefined reference to `pap_check_hook'
radius.c:(.text+0xe8): undefined reference to `pap_auth_hook'
radius.c:(.text+0xf0): undefined reference to `chap_check_hook'
radius.c:(.text+0xfe): undefined reference to `chap_verify_hook'
radius.c:(.text+0x106): undefined reference to `ip_choose_hook'
radius.c:(.text+0x114): undefined reference to `allowed_address_hook'
radius.c:(.text+0x12c): undefined reference to `ip_up_notifier'
radius.c:(.text+0x13c): undefined reference to `add_notifier'
radius.c:(.text+0x14c): undefined reference to `ip_down_notifier'
radius.c:(.text+0x15c): undefined reference to `add_notifier'
radius.c:(.text+0x19a): undefined reference to `strlcpy'
radius.c:(.text+0x1a8): undefined reference to `add_options'
radius.c:(.text+0x1b6): undefined reference to `info'
radius.o: In function `radius_ip_down':
radius.c:(.text+0x375): undefined reference to `link_stats_valid'
radius.c:(.text+0x385): undefined reference to `remote_number'
radius.c:(.text+0x390): undefined reference to `ipparam'
radius.c:(.text+0x3c0): undefined reference to `using_pty'
radius.c:(.text+0x3ff): undefined reference to `status'
radius.o: In function `.L36':
radius.c:(.text+0x43e): undefined reference to `ipcp_hisoptions'
radius.c:(.text+0x4f2): undefined reference to `sync_serial'
radius.c:(.text+0x505): undefined reference to `link_connect_time'
radius.c:(.text+0x537): undefined reference to `link_stats'
radius.o: In function `radius_ip_up':
radius.c:(.text+0x812): undefined reference to `remote_number'
radius.c:(.text+0x81d): undefined reference to `ipparam'
radius.c:(.text+0x878): undefined reference to `using_pty'
radius.c:(.text+0x889): undefined reference to `sync_serial'
radius.c:(.text+0x8be): undefined reference to `ipcp_hisoptions'
radius.c:(.text+0x982): undefined reference to `timeout'
radius.o: In function `radius_acct_interim':
radius.c:(.text+0xb31): undefined reference to `update_link_stats'
radius.c:(.text+0xb37): undefined reference to `link_stats_valid'
radius.c:(.text+0xb47): undefined reference to `remote_number'
radius.c:(.text+0xb52): undefined reference to `ipparam'
radius.c:(.text+0xb82): undefined reference to `using_pty'
radius.c:(.text+0xbc1): undefined reference to `ipcp_hisoptions'
radius.c:(.text+0xc78): undefined reference to `timeout'
radius.c:(.text+0xc86): undefined reference to `sync_serial'
radius.c:(.text+0xc9f): undefined reference to `link_connect_time'
radius.c:(.text+0xcd1): undefined reference to `link_stats'
radius.o: In function `radius_init':
radius.c:(.text+0xeca): undefined reference to `strlcpy'
radius.c:(.text+0xeed): undefined reference to `slprintf'
radius.o: In function `make_username_realm':
radius.c:(.text+0xf58): undefined reference to `strlcpy'
radius.c:(.text+0xfb6): undefined reference to `strlcat'
radius.c:(.text+0xfca): undefined reference to `strlcat'
radius.o: In function `.L158':
radius.c:(.text+0x1163): undefined reference to `slprintf'
radius.o: In function `.L187':
radius.c:(.text+0x11ef): undefined reference to `strlcpy'
radius.o: In function `.L186':
radius.c:(.text+0x129e): undefined reference to `MD5_Init'
radius.c:(.text+0x12c2): undefined reference to `MD5_Update'
radius.c:(.text+0x12df): undefined reference to `MD5_Update'
radius.c:(.text+0x12fc): undefined reference to `MD5_Update'
radius.c:(.text+0x1311): undefined reference to `MD5_Final'
radius.c:(.text+0x134e): undefined reference to `MD5_Init'
radius.c:(.text+0x1372): undefined reference to `MD5_Update'
radius.c:(.text+0x1392): undefined reference to `MD5_Update'
radius.c:(.text+0x13aa): undefined reference to `MD5_Final'
radius.c:(.text+0x13c7): undefined reference to `mppe_recv_key'
radius.o: In function `.L185':
radius.c:(.text+0x145b): undefined reference to `MD5_Init'
radius.c:(.text+0x147f): undefined reference to `MD5_Update'
radius.c:(.text+0x14a1): undefined reference to `MD5_Update'
radius.c:(.text+0x14b9): undefined reference to `MD5_Final'
radius.c:(.text+0x14f1): undefined reference to `MD5_Init'
radius.c:(.text+0x1515): undefined reference to `MD5_Update'
radius.c:(.text+0x152f): undefined reference to `MD5_Update'
radius.c:(.text+0x1541): undefined reference to `MD5_Final'
radius.c:(.text+0x1575): undefined reference to `mppe_set_keys'
radius.o: In function `.L183':
radius.c:(.text+0x15d1): undefined reference to `maxconnect'
radius.c:(.text+0x1601): undefined reference to `maxoctets_dir'
radius.c:(.text+0x1614): undefined reference to `maxoctets'
radius.c:(.text+0x16af): undefined reference to `bad_ip_adrs'
radius.c:(.text+0x170c): undefined reference to `slprintf'
radius.c:(.text+0x176d): undefined reference to `mppe_keys_set'
radius.c:(.text+0x1795): undefined reference to `set_mppe_enc_types'
radius.c:(.text+0x17b7): undefined reference to `mppe_send_key'
radius.c:(.text+0x181a): undefined reference to `slprintf'
radius.c:(.text+0x1879): undefined reference to `slprintf'
radius.c:(.text+0x18d3): undefined reference to `slprintf'
radius.o: In function `radius_chap_verify':
radius.c:(.text+0x1a94): undefined reference to `remote_number'
radius.c:(.text+0x1aa3): undefined reference to `ipparam'
radius.c:(.text+0x1b6d): undefined reference to `strlcpy'
radius.c:(.text+0x1bb7): undefined reference to `ifname'
radius.c:(.text+0x1c74): undefined reference to `devnam'
radius.o: In function `radius_pap_auth':
radius.c:(.text+0x1fdb): undefined reference to `ifname'
radius.c:(.text+0x20a7): undefined reference to `remote_number'
radius.c:(.text+0x20b2): undefined reference to `ipparam'
radius.c:(.text+0x2172): undefined reference to `devnam'
libradiusclient.a(avpair.o): In function `rc_avpair_copy':
avpair.c:(.text+0x40b): undefined reference to `novm'
libradiusclient.a(avpair.o): In function `rc_avpair_parse':
avpair.c:(.text+0x766): undefined reference to `novm'
libradiusclient.a(avpair.o): In function `rc_avpair_gen':
avpair.c:(.text+0xd2e): undefined reference to `novm'
avpair.c:(.text+0xd41): undefined reference to `novm'
libradiusclient.a(avpair.o): In function `rc_avpair_new':
avpair.c:(.text+0xf3a): undefined reference to `novm'
libradiusclient.a(buildreq.o): In function `rc_guess_seqnbr':
buildreq.c:(.text+0x13): undefined reference to `magic'
libradiusclient.a(config.o): In function `rc_conf_srv':
config.c:(.text+0x148): undefined reference to `fatal'
libradiusclient.a(config.o): In function `rc_conf_int':
config.c:(.text+0x1a1): undefined reference to `fatal'
libradiusclient.a(config.o): In function `rc_conf_str':
config.c:(.text+0x1f8): undefined reference to `fatal'
libradiusclient.a(config.o): In function `rc_read_config':
config.c:(.text+0x66b): undefined reference to `fatal'
config.c:(.text+0xc5e): undefined reference to `novm'
libradiusclient.a(dict.o): In function `rc_read_dictionary':
dict.c:(.text+0x8af): undefined reference to `novm'
libradiusclient.a(ip_util.o): In function `rc_own_ipaddress':
ip_util.c:(.text+0x1da): undefined reference to `hostname'
libradiusclient.a(clientid.o): In function `rc_read_mapfile':
clientid.c:(.text+0x27d): undefined reference to `novm'
libradiusclient.a(sendserver.o): In function `rc_send_server':
sendserver.c:(.text+0xb95): undefined reference to `magic'
libradiusclient.a(md5.o): In function `rc_md5_calc':
md5.c:(.text+0x21): undefined reference to `MD5_Init'
md5.c:(.text+0x37): undefined reference to `MD5_Update'
md5.c:(.text+0x46): undefined reference to `MD5_Final'
collect2: ld returned 1 exit status
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
radattr.o: In function `plugin_init':
radattr.c:(.textmake[2]: *** [radius.so] Error 1
+0x14): undefined reference to `radius_attributes_hook'
radattr.c:(.text+0x2c): undefined reference to `exitnotify'
radattr.c:(.text+0x3c): undefined reference to `add_notifier'
radattr.c:(.text+0x4a): undefined reference to `info'
radattr.o: In function `cleanup':
radattr.c:(.text+0x8d): undefined reference to `ifname'
radattr.c:(.text+0xa0): undefined reference to `slprintf'
radattr.c:(.text+0xba): undefined reference to `dbglog'
radattr.o: In function `print_attributes':
radattr.c:(.text+0xf4): undefined reference to `ifname'
radattr.c:(.text+0x116): undefined reference to `slprintf'
radattr.c:(.text+0x1a8): undefined reference to `rc_avpair_tostr'
radattr.c:(.text+0x20d): undefined reference to `dbglog'
collect2: ld returned 1 exit status
make[2]: *** [radattr.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins/radius'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins'
make: *** [all] Error 2
 *
 * ERROR: net-dialup/ppp-2.4.4-r14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2997:  Called die
 * The specific snippet of code:
 *       emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed";
 *  The die message:
 *   compile failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-dialup/ppp-2.4.4-r14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dialup/ppp-2.4.4-r14/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
1. emerge ppp

Actual Results:  
compilation failure


emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-tuxonice-r2 i686)
=================================================================
System uname: 2.6.24-tuxonice-r2 i686 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz
Timestamp of tree: Wed, 20 Feb 2008 06:31:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
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.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en pl uk be de"
MAKEOPTS="-j3"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns alsa amr amrnb amrr amrwb ao arts automount bash-completion berkdb bidi bitmap-fonts bluetooth branding bzip2 c++ cairo caps cddb cdparanoia cisco cli cpudetection cracklib crypt css cups curl daap dbus dga directfb divx dri dts dv dvd dvdnav dvdr dvdread emovix enca encode exif fam fax fbcon ffmpeg firefox flac font-server fontconfig fortran ftp gd gdbm geoip ggi gif glib glitz gmail gmedia gnutls gpg2-experimental gphoto2 gpm gsm gtk hal htmlhandbook http hyperestraier iconv icq idn imagemagick inotify ipod ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k justify kde kdrive ladspa lame latex ldap libcaca libwww lilo live lm_sensors lzo mad matroska matrox mbrola md5sum midi mjpeg mmap mmx mmxext mng modplug motif mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap musepack musicbrainz mysql nas ncurses neXt net netbeans netboot network network-cron networking nfs nis nls nptl nptlonly nsplugin ntp nvidia nvram nvtv obex odbc ogg openal openct openexr opengl openmp openssh openvpn oss overlays pch pcmcia pcre pcsc-lite pda pdf perl pic player plotutils plugins pmu png portaudio pppd pulseaudio python qt-static qt3 qt3support qt4 quicktime radio rar raw readline real realmedia reflection rtc samba sasl scanner sdl session slang slp smartcard sndfile snmp speech speex spell spl sql sqlite sqlite3 srt sse sse2ssl ssse3 svg tcpd tetex tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vidix visualization vorbis wav wavpack wifiwin32codecs wma wmf wmp wxwindows x264 x86 xanim xcb xcomposite xine xinerama xorg xpm xprint xv xvid xvmc yv12 zeroconf zip zlib" ALSA_CARDS="hda-intel" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl uk be de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 cf677ef0 2008-02-20 07:46:32 UTC
The same problem ;-(
Comment 2 Marco Napetti 2008-02-20 09:25:33 UTC
Same problem here:

Portage 2.1.4.4 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Timestamp of tree: Wed, 20 Feb 2008 08:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.eliteitminds.com ftp://mirror.scarlet-internet.nl/pub/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j3"
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/nouveau /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 amuled apache2 audiofile avi bash-completion berkdb bitmap-fonts bluetooth branding browserplugin bzip2 cdb cdda cddb cdinstall cdio cdparanoia cdr cli codecs cpudetection cracklib crypt css ctype cups curl dbus dga divx4linux dlloader doc dri dts dv dvd dvdr dvdread dxr3 edl eds emboss emul-linux-x86 encode exif faad fame ffmpeg firefox flac foomaticdb fortran ftp gcj gd ggi gif gimp gimpprint glitz gphoto2 gpm gstreamer gtk gtk2 hal history hou iconv ieee1394 imagemagick imap imlib insecure-drivers ipv6 isdnlog ithreads jack java javascript jpeg jpeg2k json kde kdeenablefinal laptop latin1 lcd ldap libcaca live lm_sensors lzo lzw lzw-tiff mad matroska midi mikmod mime monkey mozbranding mozdevelop mozilla mp3 mpeg mplayer mppe-mppc mudflap musepack musicbrainz mysql mysqli mythtv ncurses netmeeting nls nodrm nowin nowlistening nptl nptlonly nsplugin objc objc++ objc-gc oci8-instant-client odbc offensive ogg oggvorbis opengl openmp pam pcre pdf pdo perl php png postgres ppds pppd python qt qt3 qt3support qt4 quicktime rdesktop readline reflection remote samba scanner sdl sensord session smp sms sndfile soap sou sound speex spell spl sql ssl svg tcpd tga theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd videos visualization vorbis vpn wavpack webdav wifi winpopup xanim xcb xine xinerama xml xmlreader xmlwriter xorg xpm xv xvid xvmc zeroconf 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nouveau nv vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 urcindalo 2008-02-20 09:29:45 UTC
It doesn't compile on stable AMD64, either. It fails here:
=======
x86_64-pc-linux-gnu-gcc  -march=athlon64 -mtune=athlon64 -O2 -pipe -D_GNU_SOURCE -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -o radattr.so radattr.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
radattr.o: In function `plugin_init':
radattr.c:(.text+0x7): undefined reference to `radius_attributes_hook'
radattr.c:(.text+0x15): undefined reference to `exitnotify'
radattr.c:(.text+0x26): undefined reference to `add_notifier'
radattr.o: In function `cleanup':
radattr.c:(.text+0x59): undefined reference to `ifname'
radattr.c:(.text+0x61): undefined reference to `slprintf'
radattr.c:(.text+0x7a): undefined reference to `dbglog'
radattr.o: In function `print_attributes':
radattr.c:(.text+0xb5): undefined reference to `ifname'
radattr.c:(.text+0xc5): undefined reference to `slprintf'
radattr.c:(.text+0x10c): undefined reference to `rc_avpair_tostr'
radattr.c:(.text+0x152): undefined reference to `dbglog'
radattr.o: In function `plugin_init':
radattr.c:(.text+0x38): undefined reference to `info'
collect2: ld devolvió el estado de salida 1
make[2]: *** [radattr.so] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: se sale del directorio `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins/radius'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins'
make: *** [all] Error 2
 *
 * ERROR: net-dialup/ppp-2.4.4-r14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3066:  Called die
 * The specific snippet of code:
 *       emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed";
 *  The die message:
 *   compile failed
=======
Comment 4 Petr Pisar 2008-02-20 09:45:07 UTC
I get the error much earlier:

i686-pc-linux-gnu-ar -rc libplugin.a discovery.o if.o common.o debug.o
i686-pc-linux-gnu-gcc -o pppoe-discovery pppoe-discovery.o libplugin.a
i686-pc-linux-gnu-gcc  -march=athlon-tbird -O2 -pipe -fomit-frame-pointer -D_GNU_SOURCE -I../../../include/linux -o rp-pppoe.so plugin.o libplugin.a
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'

I think -shared is missing.

The erorr report continues:

plugin.o: In function `pppoe_check_options':
plugin.c:(.text+0x1e): undefined reference to `lcp_allowoptions'
plugin.c:(.text+0x24): undefined reference to `lcp_wantoptions'
plugin.c:(.text+0x62): undefined reference to `ccp_allowoptions'
plugin.c:(.text+0x68): undefined reference to `ccp_wantoptions'
plugin.c:(.text+0x6e): undefined reference to `ipcp_allowoptions'
plugin.c:(.text+0x80): undefined reference to `ipcp_wantoptions'
plugin.o: In function `PPPoEDevnameHook':
plugin.c:(.text+0x1b4): undefined reference to `devnam'
plugin.c:(.text+0x1ca): undefined reference to `the_channel'
plugin.c:(.text+0x1dc): undefined reference to `modem'
plugin.c:(.text+0x2e3): undefined reference to `fatal'
plugin.o: In function `PPPOEDisconnectDevice':
plugin.c:(.text+0x3aa): undefined reference to `fatal'
plugin.o: In function `PPPOEConnectDevice':
plugin.c:(.text+0x3d3): undefined reference to `devnam'
plugin.c:(.text+0x3e5): undefined reference to `ppp_devnam'
plugin.c:(.text+0x3ed): undefined reference to `strlcpy'
plugin.c:(.text+0x458): undefined reference to `fatal'
plugin.c:(.text+0x485): undefined reference to `ppp_session_number'
plugin.c:(.text+0x552): undefined reference to `remote_number'
plugin.c:(.text+0x5cb): undefined reference to `fatal'
plugin.c:(.text+0x5ef): undefined reference to `fatal'
plugin.o: In function `PPPOEDeviceOptions':
plugin.c:(.text+0x630): undefined reference to `devnam'
plugin.c:(.text+0x663): undefined reference to `options_from_file'
plugin.o: In function `plugin_init':
plugin.c:(.text+0x7e0): undefined reference to `ppp_available'
plugin.c:(.text+0x7ea): undefined reference to `new_style_driver'
plugin.c:(.text+0x7fe): undefined reference to `add_options'
plugin.c:(.text+0x820): undefined reference to `info'
plugin.c:(.text+0x83a): undefined reference to `fatal'
plugin.o:(.data.rel+0x14): undefined reference to `generic_establish_ppp'
plugin.o:(.data.rel+0x18): undefined reference to `generic_disestablish_ppp'
plugin.o:(.data.rel+0x54): undefined reference to `devnam'
libplugin.a(discovery.o): In function `discovery':
discovery.c:(.text+0xc56): undefined reference to `die'
collect2: ld returned 1 exit status
make[2]: *** [rp-pppoe.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins/rp-pppoe'

So far ok, but then make continues in other subdirectory:

make[2]: Entering directory `/var/tmp/portage/net-dialup/ppp-2.4.4-r14/work/ppp-2.4.4/pppd/plugins/pppoatm'
i686-pc-linux-gnu-gcc -march=athlon-tbird -O2 -pipe -fomit-frame-pointer -D_GNU_SOURCE -I../.. -I../../../include -fPIC -I. -c -o pppoatm.o pppoatm.c

And then I get errors mentioned in other posts.

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r2 i686)
=================================================================
System uname: 2.6.24-gentoo-r2 i686 AMD Duron(tm) processor
Timestamp of tree: Wed, 20 Feb 2008 07:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/"
LINGUAS="cs en"
MAKEOPTS="-j2"
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/local/portage"
SYNC="rsync://rsync6.europe.gentoo.org/gentoo-portage"
USE="3dnow a52 aac acl acpi alsa audiofile avi berkdb bitmap-fonts bzip2 caps cdparanoia cjk cli cracklib crypt cups dri esd ffmpeg flac fortran ftp gd gdbm gif gnutls gpm gtk gtk2 iconv icq idn imagemagick imap imlib ipv6 irc isdnlog jabber java javascript jpeg jpeg2k lcms live lm_sensors matroska mbox midi mikmod mime mmap mmx mng motif mp3 mpeg mudflap nas ncurses nls nodrm nptl nptlonly ogg openmp pam pcre pdf perl plotutils png posix ppds pppd python readline real recode reflection rss samba sasl sdl session sharedmem sndfile sockets speex spell spl ssl svg sysvipc tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts ucs2 ucs4 unicode usb vorbis win32codecs x86 xattr xml xml2 xorg xosd xpm xsl xv xvid zlib" ALSA_CARDS="snd_via82xx" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2008-02-20 11:31:57 UTC
Test this:
 - inherit flag-o-matic
 - add "append-ldflags $(bindnow)" at the beginning of src_compile
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2008-02-20 11:33:30 UTC
(In reply to comment #5)
>  - add "append-ldflags $(bindnow)" at the beginning of src_compile

s/bindnow/bindnow-flags/ 

Comment 7 Robert Wolf 2008-02-20 11:58:37 UTC
(In reply to comment #5)
> Test this:
>  - inherit flag-o-matic
>  - add "append-ldflags $(bindnow-flags)" at the beginning of src_compile
> 

Thank you. Compiles without error.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2008-02-20 12:07:02 UTC
Mike, do I have to remove append-ldflags $(bindnow-flags) or not? I removed it because of that QA notice...
Comment 9 Robert Bradbury 2008-02-20 15:33:13 UTC
That is a pretty obtuse "fix" for those of us who may be somewhat "ebuild" challenged.

Something like "Edit the ebuild so the src_compile() function is as follows:"...

As it is I have no idea whether to include the suggested changes before the CC/AR lines, before the econf lines, before the emake lines, etc.  I also have no idea whether the "inherit flag-o-matic" is a shell command or an edit to the ebuild.

A better question might be how did this ebuild make it out of QA?  The problem is the lack of the "-Wl,-z,now -shared" flags when producing the .so files (which is why main shows up as undefined).  I don't see how it could ever have worked.
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2008-02-20 16:42:42 UTC
Fixed in cvs, without revision bump.

(In reply to comment #9)
> A better question might be how did this ebuild make it out of QA?  The problem
> is the lack of the "-Wl,-z,now -shared" flags when producing the .so files
> (which is why main shows up as undefined).  I don't see how it could ever have
> worked.

Actually a QA notice was the cause of this mess (see bindnow-flags function in flag-o-matic.eclass). I was just fixing a pam related bug when I saw that notice. Since I'm not used to ignore such messages...

And yes, it worked for me, otherwise I wouldn't have committed it.
Comment 11 Marcus 2008-02-20 18:44:33 UTC
This solution works for me! ;)
Thanks
Comment 12 Robert Bradbury 2008-02-20 19:15:31 UTC
"This solution works for me" is pretty useless (as are previous comments regarding CVS systems which some people may not understand (you want me to integrate an ebuild system with a CVS system?  Just where is the documentation on how to do that?).  

What would work is "here is an attached ebuild which should provide the proper compile flags for building ppp".

I would not classify this bug as "RESOLVED FIXED" until there is either a released ebuild which works or clear directions on how "less-than-wizard-level" individuals modify their downloads so the package will compile.
Comment 13 SpanKY gentoo-dev 2008-02-20 19:41:07 UTC
Alin: previous policy was to force bindnow flags onto setuid binaries, but we've decided this can be solved cleanly in the ldso itself, so there's no need to change every ebuild out there

Robert: there is no "wizard" directions needed ... your tree is out of date.  if you updated it, it'd be fixed.
Comment 14 Mike Nerone 2008-02-20 19:43:00 UTC
Robert, please settle down. Stating that a working solution is useless to you is not helpful - these people were only discussing *possible* solutions. Once found, that solution would *of course* be integrated into the portage tree, as was done in comment #10. If you want to wait until then (and I'm with you on that), then by all means do so, but stop yelling at the people working to create the fix.

Per comment #10, the fix is already in the tree (I've confirmed this, as I was struck by the problem, as well). Just re-sync on go on with your life.
Comment 15 Robert Bradbury 2008-02-20 20:47:02 UTC
Mike, I'm with you on being patient.  But in this case comparing my current emerge listings with previous emerge listings clearly identified the problem.  (I keep all the previous emerge listings for packages).  You should see my posts to the firefox forums where they have clearly not tested their memory usage.

Not understanding the "in group" conversations regarding updates I requested an update conversation which would really work.

There perhaps should be a level of update filter -- i.e. "I am an ebuild guru and completely understand how this modification should be applied" vs. "I can only barely work my way through ebuild (even though I might be classed as Unix Guru) and so the suggested modifications are relatively useless.

You put a build script (and download directions) on the line which works or you do not.  That is the bottom line.  If I as a "less than completely informed user" who cannot download an ebuild which functions properly then such package updates are relatively useless.
Comment 16 Mike Nerone 2008-02-20 21:18:07 UTC
This bug, by design, transparently tracks the discussion in-progress, working toward implementing a fix. I had previously thought that you misunderstood the purpose of those comments, believing that they were instead intended to provide instructions to *you*, the user, but based on your most recent statements, if I read correctly, you're *actually* demanding that no such discussion take place at all, and that the solution simply magically appear, and always as the very first comment. That's unrealistic and naive.

In any case, this isn't the forum for this discussion, nor do I really wish to continue it in another.
Comment 17 Mike Nerone 2008-02-20 21:21:39 UTC
Oh, I see now. You would simply like a way to hide those less useful comments. Well, that's not available, so please just be aware that many comments are developer discussion (also, I'd submit that such filtering would likely result in it *seeming* like there's no progress at all, thereby only increasing frustration levels, so I'd oppose such a filter).
Comment 18 Robert Bradbury 2008-02-21 02:06:06 UTC
Mike, setting aside what I perceive as sarcasm, I am not trying to dictate the direction of the conversation (and indeed I would find the conversation educational if it were somewhat less cryptic).  My primary point is that if one has an ebuild which actually works, it would not be unreasonable to post that as an attachment.  I do have log files indicating that previous ebuilds did work (and did get the flags set correctly) but no longer have those ebuilds available.

So until someone either explains things in detail or posts a working ebuild (or upgrades the package) I am stuck with the one which fails to work properly.
Comment 19 SpanKY gentoo-dev 2008-02-21 04:13:53 UTC
Alin already explained in comment #10 what the problem was.  if you cant grok that, you can use the explanation in comment #13: `emerge --sync`.  if you still cant grok that, ask on the forums or a gentoo-user mailing list for help.