i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"1.2.2\" -DYYTEXT_POINTER=1 -DLILENDIAN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_PWD_RESET=1 -DOPENSSL_NO_KRB5=1 -DLINUX=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DLINUX_FRAMER=1 -DEAP_SIM_ENABLE -I. -I. -ggdb -O2 -march=pentium-m -mfpmath=sse -mmmx -msse -msse2 -fomit-frame-pointer -fprefetch-loop-arrays -pipe -DHEADERS_KERNEL -I/usr/include/PCSC -Wall -c psk.c psk.c: In function 'psk_wpa_pbkdf2_f': psk.c:41: error: 'SHA_DIGEST_LENGTH' undeclared (first use in this function) psk.c:41: error: (Each undeclared identifier is reported only once psk.c:41: error: for each function it appears in.) psk.c:41: warning: unused variable 'digest1' psk.c: In function 'psk_wpa_pbkdf2': psk.c:90: error: 'SHA_DIGEST_LENGTH' undeclared (first use in this function) make[1]: *** [psk.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/xsupplicant-1.2.2/work/xsupplicant-1.2.2/src' make: *** [all-recursive] Error 1 !!! ERROR: net-misc/xsupplicant-1.2.2 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile xsupplicant-1.2.2.ebuild, line 41: Called die The same version of xsupplicant is already installed (and so did build successfully at some point) but it depends on pcsc-lite - so I initially thought that this was a pcsc-lite/openct issue, but reverting pcsc-lite to the stable version (see Bug 146198) openct to the old stable version (so that it builds with the current stable pcsc-lite version) doesn't help. Is this, then, a GCC 4.1.1 problem (or has the xsupplicant-1.2.2 codebase changed without a version bump)? emerge --info: Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.12.4 Last Sync: Sat, 16 Sep 2006 09:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -mfpmath=sse -mmmx -msse -msse2 -fomit-frame-pointer -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/env.d /opt/openjms/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/X11/xkb /etc/chipcard2-server /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -mfpmath=sse -mmmx -msse -msse2 -fomit-frame-pointer -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox" GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://ftp.heanet.ie/pub/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.osuosl.org http://gentoo.oregonstate.edu " LINGUAS="en_GB" 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.uk.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac aalib accessibility acl acpi adns aio alsa amr ao arts async audiofile automount avahi avi bash-completion berkdb bitmap-fonts bluetooth bonobo browserplugin bzip2 cairo caps cdr cli crypt cscope cups curl dbus dga directfb dlloader dri dts dv dvd dvdread eds elibc_glibc encode esd ethereal evo exif expat fam fastcgi fbcon ffmpeg fftw firebird flac flash fltk fluidsynth font-server foomaticdb fortran freetds freetype gb gd gdbm ggi gif gimp glut gmp gnome gnomedb gnutls gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile hal howl icc-pgo idn ieee1394 imagemagick imap imlib informix innodb input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_vmmouse input_devices_void ipv6 isdnlog jack java javamail javascript jbig jms jmx jpeg jpeg2k junit kde kdeenablefinal kerberos kernel_linux krb4 ladcca lcms ldap libcaca libedit libg++ libgda libsamplerate libwww linguas_en_GB logrotate lua lzo mad maildir mailwrapper matroska mbox mcal memlimit mikmod milter mmap mmx mng modplug mono motif mozilla mp3 mpeg mpi mplayer msn mssql musepack mysql nas ncurses net netboot network nis nls nntp nptl nptlonly nsplugin numeric oci8 odbc ogg oggvorbis openal openexr opengl oss pam pam_console pango pcmcia pcre pdf pdflib perl pic plotutils png pnp portaudio postgres ppds pppd prelude python qdbm qt qt3 qt4 quicktime radius rar readline real reflection ruby samba sasl scanner sdl session shorten sid skey slang slp smartcard sndfile snmp socks5 sox spamassassin speex spell spl sqlite sse sse2 ssl startup-notification subtitles svg svga sysfs syslog t1lib tcl tcltk tcpd test tetex theora threads tiff timidity tk truetype truetype-fonts type1-fonts udev unicode urandom usb userland_GNU v4l v4l2 vcd video_cards_ati video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vmware vidix vorbis win32codecs wmf wxwindows x264 xanim xbase xface xim xine xinerama xinetd xml xml2 xmms xorg xosd xpm xprint xscreensaver xv xvid zeo zlib" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Tell a lie... the build fails with or without USE="gsm", so this is definitely an xsupplicant problem, and unrelated to pcsc-lite.
I did just receive the same compile error myself. After some research I found a post in the xsupplicant mailing-list about it: http://sourceforge.net/mailarchive/message.php?msg_id=14707929 To summarize: it has been fixed in 1.2.3 Is there a developer with enough spare time to create an ebuild for the latest version of xsupplicant? The latest version has been released at 28 augustus 2006, while 'our' 1.2.2 was released at 15 october 2005, almost a year ago! I would really appreciate the effort and I am available to test the ebuild if needed.
Created attachment 97395 [details] This ebuild (a rename from 1.2.2) build V1.2.6 without appearant problems. The openssl update to 0.9.8 breaks the xsupplicant 1.2.2 ebuild. 1.2.7 doesn't build that quickly.
(In reply to comment #3) > This ebuild (a rename from 1.2.2) build V1.2.6 without appearant problems. And will also build V1.2.8 (current version) without apparent problems.
(In reply to comment #0) > psk.c: In function 'psk_wpa_pbkdf2_f': > psk.c:41: error: 'SHA_DIGEST_LENGTH' undeclared (first use in this function) > psk.c:41: error: (Each undeclared identifier is reported only once > psk.c:41: error: for each function it appears in.) > psk.c:41: warning: unused variable 'digest1' > psk.c: In function 'psk_wpa_pbkdf2': > psk.c:90: error: 'SHA_DIGEST_LENGTH' undeclared (first use in this function) > make[1]: *** [psk.o] Error 1 SHA_DIGEST_LENGTH ain't declared so all you need to do is to change ebuild openssl-0.9.8 has SHA_DIGEST_LENGTH defined at sha.h (/usr/include/openssl/sha.h) and set to ------------------------------ #define SHA_DIGEST_LENGTH 20 ------------------------------ add to src_compile(): --------------------------------------------------- < append-flags -DHEADERS_KERNEL --- > append-flags -DHEADERS_KERNEL -DSHA_DIGEST_LENGTH=20 ---------------------------------------------------
Masked for scurity Bug 154995.