Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502226 - =net-analyzer/ettercap-0.8.0-r1 on ppc - .../work/ettercap-0.8.0/src/ec_encryption_ccmp.c:46:35: error: expected ';', ',' or ')' before numeric constant
Summary: =net-analyzer/ettercap-0.8.0-r1 on ppc - .../work/ettercap-0.8.0/src/ec_encry...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2014-02-23 10:53 UTC by Paul Osmialowski
Modified: 2014-02-23 16:19 UTC (History)
2 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 Paul Osmialowski 2014-02-23 10:53:33 UTC
[ 18%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o
cd /var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build/src && /usr/bin/powerpc-unknown-linux-gnu-gcc  -Dlib_ettercap_EXPORTS  -DNDEBUG -O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe  -fPIC -I/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build/include -I/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/include    -o CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o -c /var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:46:35: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:47:62: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:48:46: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c: In function 'wpa_ccmp_decrypt':
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:61:11: error: expected identifier or '(' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:84:20: error: 'A' undeclared (first use in this function)
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:84:20: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:90:6: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:91:6: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:91:15: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:92:20: error: 'B' undeclared (first use in this function)
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c: At top level:
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:145:35: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:163:62: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:190:46: error: expected ';', ',' or ')' before numeric constant
make[2]: *** [src/CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build'
make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build'
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
1. emerge ettercap
2.
3.
Actual Results:  
compilation failure;
from the code it seems like B0 is defined somewhere as numeric constant - therefore it should not be used as a name for a variable.


Expected Results:  
no errors

Portage 2.2.7 (default/linux/powerpc/ppc32/13.0, gcc-4.6.3, glibc-2.17, 3.8.13-gentoo ppc)
=================================================================
System uname: Linux-3.8.13-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.2
KiB Mem:      508352 total,     84500 free
KiB Swap:    3145724 total,   3033308 free
Timestamp of tree: Sun, 23 Feb 2014 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r3, 2.7.5-r3, 3.1.4-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.8.5-r4, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="*"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="7zip R Xaw3d a52 aac aacplus aacs aalib acl adns aio alisp alsa alstream altivec amr animgif ao apache2 apm apng archive arpack asf ass athena audio autotrace aux_xml badval bash-completion bazaar bcmath berkdb bidi bitmap bittorrent blas blksha1 bluray bzip2 c++0x cairo calendar caps caps-ng capslib catalogs cblas cdf cdio cdparanoia cgi chappa chicken chm city clamd clamdtop cleartype cli client clisp clucene combination-explosion-check common-lisp community consolekit contrib convert-mozilla-cookies cpufreq cracklib cramfs cron crypt cryptsetup cscope css ctype ctypes-python curl cvs cxx daemon dbi dbus ddate default-font deprecated devfs-compat dirac discard-path discouraged djbfft djvu dri drmaa dts dv dvd dvdnav e2fsprogs ebook edd edit elisp emacs enca encode enscript eselect etiquette excel exceptions exif expat extensions extra-tools extras faac faad fame fdk ffmpeg fftw filecaps filter filter-aaaa findbugs finger fingerprint firmware-loader fits fixed-rrset flac fluidsynth fontconfig fontforge fortran fortran2003 fpx frei0r ftp fts3 gadu gcrypt gd gdbm geoip geos gif ginac git glep glibc-omitfp glpk gmath gml gmp gnuplot gnutls gopher gost gpg gphoto2 gpm gptfdisk graphviz grp gs gsettings gsl gsm gstreamer gudev guile gunit gzip-el hal hardcoded-tables harfbuzz hash hdf5 heterogeneous hires-icons hlapi hog http hwdb i18n ibam iconv icu id3tag idn iec61883 ieee1394 imagemagick imapc imlib inifile iodbc ipc iptables ipv6 ipython isag iso jabber jack jadetex jai java java6 javacomm javamail javascript jbig jit jmf jms jpeg jpeg2k json keymap kmod kpathsea ladspa lame lapack laptop largefile lash lasi latex lcms less libass libcaca libffi libmms libproxy libs libsamplerate libssh2 libtar libv4l libwww libxml2 libyaml linuxkeys listen-queue live llvm lua luatex lucene lvm1 lzma lzo m17n-lib mad magic math mbox mclib mcve md5sum mercurial metalink metis mew mhash mikmod mime minizip mjpeg mmap mms mng mod mode-owner modplug modules motif motif22-compatibility mouse mozsha1 mp3 mp4 mpeg mpg123 mta mudflap musepack mvl mzscheme native-exceptions natspec ncat ncurses ndiff net netcdf netifrc netlink nettle network networking new-clx nfacct nfct nflog nls nmap-update nntp no-old-linux nodrm nping nptl nscd nss ntlm ntp numpy nut objc objc++ objc-gc ocaml ocamlopt odbc odt-schema offensive ogdi ogg ogm openmp openpty openrc openssl opus pac pam pari pasteafter pbs pcap pci pcntl pcre pdf pdfannotextractor pdo perl perl-geoipupdate pg-intdatetime pgm pgo phar php physfs pic playtools plotutils plugins pm-utils png pnm policykit portaudio posix postgres postproc postscript ppc ppcsha1 preview-latex proj pth python qhull qpak quicktime radio raw rcs readline real recursion-limit redland reencrypt reflection regex rle romio rpm rrdtool rss rtc rtmp ruby sasl scale0tilt screen script sctp sdl sdlgfx sendmail serial server session sftp sha512 sharedext sharedmem shm sid sigsegv simplexml slang smi smime smpeg sms sndfile snmp soap sockets sound soundex speex spell spidermonkey spl sql sqlite3 srv ssl static-analyzer staticsocket subversion suexec suhosin supernodal svg svm syslog sysvipc szip t1lib tcl tcpd tdb tdbtest tga theora thin-splines threads threadsafe tidy tiff tilepath tk tls-heartbeat tokenizer toolame toolbar toolkit-scroll-bars tools tremor truetype twisted twolame type3 udev udisks unicode unlock-notify usb utils uuid v4l v4l2 valgrind verify-file video vim vim-pager vorbis vpx wad wddx web webdav webdav-neon webp wmf xbase xcb xforward xft xgetdefault xinetd xls xml xmlreader xmlwriter xmp xmpp xpdf-headers xpm xsl xslt xterm xtradb xvid xz yaz yv12 zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 asis imagemap proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http cgi" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon spca50x template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="dummy radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Agostino Sarubbo gentoo-dev 2014-02-23 11:09:31 UTC
Worked for me. I will investigate.
Comment 2 Agostino Sarubbo gentoo-dev 2014-02-23 16:19:50 UTC
+  23 Feb 2014; Agostino Sarubbo <ago@gentoo.org> ettercap-0.8.0-r1.ebuild:                                                                                                         
+  Fix compilation on ppc, thanks to upstream author Gianfranco Costamagna, wrt                                                                                                     
+  to bug #502226 by Paul Osmialowski