Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321053 - app-admin/webalizer-2.21.02 fails emerge on error: token "=" is not valid in preprocessor expressions
Summary: app-admin/webalizer-2.21.02 fails emerge on error: token "=" is not valid in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-22 14:18 UTC by Arnim Eijkhoudt
Modified: 2011-12-10 02:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes compilation with GCC 4.4 (webalizer-2.21.02-gcc-4.4.patch,224 bytes, patch)
2010-05-23 04:34 UTC, Sebastian Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arnim Eijkhoudt 2010-05-22 14:18:06 UTC
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 22 May 2010 10:15:02 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/"
LANG="en_US"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib administrator aim aio alac alsa amarok apache2 artswrappersuid artworkextra audacious audiofile bash-completion bcmath berkdb bidi bzip2 cairo calendar cdio cgi checkpath cli clucene consolekit cracklib crypt ctype curl curlwrappers custom-cflags custom-cpuopts cxx dbm dbus device-mapper dga dirac dri dts dv dvd eds encode evo exif expat extensions extras fastcgi ffmpeg filter flac fortran ftp gallium gd gdbm gdu gedit gif gl glib glitz gmp gnokii gnome gnomecd gnutella gnutls gphoto2 gpm gps graphviz gs gstreamer gtk guile h323 hash hifieq iconv icq id3 id3tag ieee1394 imagemagick imap imlib innodb intel irda jpeg jpeg2k kde kde4 kdehiddenvisibility kdepim kdm kontact lcms libcaca libwww lirc lircsettings live lzo mad madwifi mailwrapper matroska mbox mdnsresponder-compat midi mikmod milter mime mmap mmx mmxext mng mode-owner modplug modules motif mp2 mp3 mp4 mpeg mpeg2 mplayer musepack mysql mysqli nas ncurses nemesi nfs nls nptl nptlonly offensive ogg ogg123 opengl openmp optimization optimized-qmake pam pango pch pcre pdf perl perlsuid php plasma png pnm policykit postproc pppd pulseaudio python qt3support qt4 quicktime rar raw rdesktop readline realmedia reflection rss rtc samba sasl schroedinger sdl sdl-image secure-delete semantic-desktop session sharedext shout sip sms sndfile snmp spell spf spl sql sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 stream suexec suphp svg symlink sysfs sysvipc tcl tcpd theora threads tiff tk tokenizer truetype twolame unicode usb v4l v4l2 vcd vcdinfo vcdx video vidix vlm vorbis wav webkit wifi win32codecs wireshark wma wmf wmp x264 x86 xanim xcb xcomposite xext xfs xft xine xinerama xml xorg xpm xscreensaver xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="macmini" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 i945 intel" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

===========

 * webalizer.conf.gz RMD160 SHA1 SHA256 size ;-) ...                                                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                       [ ok ]
 * CPV:  app-admin/webalizer-2.21.02
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux nls userland_GNU x86
>>> Unpacking source...
>>> Unpacking webalizer-2.21-02-src.tar.bz2 to /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Unpacking webalizer.conf.gz to /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Source unpacked in /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Preparing source in /var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02 ...
include version 4.8
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-dns --with-db=/usr/include/db4.8 --with-dblib=db-4.8 --with-language=english --disable-geoip --with-geodb=/usr/share/webalizer/geodb
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether char is unsigned... no
checking for u_int64_t... yes
checking whether altzone is declared... no
checking for main in -l44bsd... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for main in -lm... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lpng... yes
checking for main in -lgd... yes
checking for gdImagePng in -lgd... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for main in -ldb... yes
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for fdatasync... yes
checking for socket... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for inet_pton... yes
checking for language file... yes - english
configure: creating ./config.status
config.status: creating Makefile
config.status: linking ./lang/webalizer_lang.english to webalizer_lang.h
configure: Done.  Type 'make' to continue with build.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02 ...
make -j2 
i686-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer  -I/usr/include/db4.8 -DETCDIR=\"/etc\" -DGEODB_LOC=\"/usr/share/webalizer/geodb\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\"webalizer\" -DPACKAGE_VERSION=\"2.20\" -DPACKAGE_STRING=\"webalizer\ 2.20\" -DPACKAGE_BUGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -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 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DHAVE_SYS_SOCKET_H=1 -DUSE_DNS  -c webalizer.c
i686-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer  -I/usr/include/db4.8 -DETCDIR=\"/etc\" -DGEODB_LOC=\"/usr/share/webalizer/geodb\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\"webalizer\" -DPACKAGE_VERSION=\"2.20\" -DPACKAGE_STRING=\"webalizer\ 2.20\" -DPACKAGE_BUGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -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 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DHAVE_SYS_SOCKET_H=1 -DUSE_DNS  -c hashtab.c
In file included from /usr/include/zlib.h:34,
                 from webalizer.c:44:
/usr/include/zconf.h:373:6: error: token "=" is not valid in preprocessor expressions
make: *** [webalizer.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: app-admin/webalizer-2.21.02 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3151:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-admin/webalizer-2.21.02',
 * the complete build log and the output of 'emerge -pqv =app-admin/webalizer-2.21.02'.
 * The complete build log is located at '/var/tmp/portage/app-admin/webalizer-2.21.02/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/webalizer-2.21.02/temp/environment'.
 * S: '/var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02'

Reproducible: Always

Steps to Reproduce:
1. emerge -v webalizer
Actual Results:  
Compile failure.

Expected Results:  
Compile success.
Comment 1 Sebastian Pipping gentoo-dev 2010-05-23 04:34:07 UTC
Created attachment 232541 [details, diff]
Fixes compilation with GCC 4.4
Comment 2 Sebastian Pipping gentoo-dev 2010-05-23 04:37:57 UTC
Should be fixed, please sync and try again.
Comment 3 Jacob Joseph 2011-12-09 03:53:34 UTC
Actually, this fix doesn't appear to be working for me.  With portage 2.1.10.11, the src_prepare function doesn't appear to be called, and so the patch is not applied.

Consider:
# emerge webalizer

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-admin/webalizer-2.21.02 from x-portage
 * webalizer-2.21-02-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                    [ ok ]
 * webalizer.conf.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking webalizer-2.21-02-src.tar.bz2 to /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Unpacking webalizer.conf.gz to /var/tmp/portage/app-admin/webalizer-2.21.02/work
 * Running eautoreconf in '/var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02' ...
 * Running aclocal ...                                                                                                                                              [ ok ]
 * Running autoconf ...                                                                                                                                             [ ok ]
>>> Source unpacked in /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Compiling source in /var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02 ...
include version 4.8
...


If I explicitly call prepare with ebuild, it does apply the patch:
# ebuild webalizer-2.21.02.ebuild prepare
 * webalizer-2.21-02-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                    [ ok ]
 * webalizer.conf.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                              [ ok ]
 * checking webalizer-2.21-02-src.tar.bz2 ;-) ...                                                                                                                   [ ok ]
 * checking webalizer.conf.gz ;-) ...                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking webalizer-2.21-02-src.tar.bz2 to /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Unpacking webalizer.conf.gz to /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Source unpacked in /var/tmp/portage/app-admin/webalizer-2.21.02/work
>>> Preparing source in /var/tmp/portage/app-admin/webalizer-2.21.02/work/webalizer-2.21-02 ...
 * Applying webalizer-2.21.02-gcc-4.4.patch ...                                                                                                                     [ ok ]
>>> Source prepared.
Comment 4 Sebastian Pipping gentoo-dev 2011-12-10 02:59:06 UTC
What you describe sounds like a bug in either portage or your setup to me.  Please open a new bug against portage.