Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455076 - media-gfx/zbar - In file included from from /usr/include/stdio.h:937:0, from zbar/debug.h:60, zbar/scanner.c:34: /usr/include/bits/stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
Summary: media-gfx/zbar - In file included from from /usr/include/stdio.h:937:0, from ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
: 425724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-02 00:14 UTC by renesanso
Modified: 2013-06-23 13:31 UTC (History)
1 user (show)

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


Attachments
zbar-0.10-r1/temp/build.log (build.log,21.77 KB, text/plain)
2013-02-04 11:47 UTC, renesanso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description renesanso 2013-02-02 00:14:33 UTC
Without export CFLAGS="" media-gfx/zbar failed to build.

Link to proof: https://bbs.archlinux.org/viewtopic.php?id=151274

Fix, please.

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/zbar ; #see error
2. CFLAGS="" emerge media-gfx/zbar ; #all ok
Comment 1 renesanso 2013-02-02 00:15:51 UTC
I have enable all USE flags, except static-libs, to zbar.
Comment 2 Rafał Mużyło 2013-02-02 00:45:38 UTC
Start with attaching *your* build log.

Anyway, looking at the upstream repo, this was most likely the problem:
http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/74eeb4494438.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-02 08:18:44 UTC
1) Please place the output of `emerge --info` in a comment.
2) Please attach the complete build log, in English. (LC_ALL=C)

Until you provide this information, there is nothing to be fixing here since we don't know what causes the problem. And no, removing all parameters from CFLAGS for everyone just because one parameter doesn't work is not the right solution.
Comment 4 Rafał Mużyło 2013-02-02 11:47:37 UTC
(In reply to comment #3)
> 2) Please attach the complete build log, in English. (LC_ALL=C)
> 

Actually, that's sometimes not that good solution - some packages need an utf8 locale.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-02 14:33:13 UTC
(In reply to comment #4)
> Actually, that's sometimes not that good solution - some packages need an utf8 locale.
Actually, this isn't a solution, it is a request for a readable build log.

Readable build logs don't need a UTF-8 locale, Russian text or Unicode fun...

(In reply to comment #2)
> Anyway, looking at the upstream repo, this was most likely the problem:
> http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/74eeb4494438.

(http://sourceforge.net/tracker/?func=detail&aid=3128538&group_id=189236&atid=928517)
> Basically, the glibc-headers version 2.12 (in fact, glibc-headers-2.12-1.7.el6.x86_64) has its own idea about dprintf()

Might be a completely different bug, I don't see how this relates to CFLAGS; renesanso, could you try this patch to see whether it makes a difference as well as provide the details requested in in Comment #3?
Comment 6 Rafał Mużyło 2013-02-02 21:46:43 UTC
I know you were talking just about English, just i.e. bug 455140 today.

But it's mostly many python3 packages, that tend to break with LANG=C.
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-04 02:39:00 UTC
Please see Comment #3.
Comment 8 renesanso 2013-02-04 11:44:25 UTC
# emerge --info
--- Invalid atom in /etc/portage/package.use: www-client/aurora-9999-r9999
FEATURES variable contains unknown value(s): preserved-rebuild
Portage 2.1.11.50 (hardened/linux/amd64, gcc-4.6.3, glibc-2.16.0, 3.7.3-hardened x86_64)
=================================================================
System uname: Linux-3.7.3-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    24684008 total,    977776 free
KiB Swap:    3670012 total,   3669996 free
Timestamp of tree: Mon, 04 Feb 2013 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.5.4-r5, 2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: mate-overlay stuff pinkbyte mozilla desktop-effects sunrise init6 hardened-dev ROKO__ raw x-my gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/mateconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs preserved-rebuild sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --timeout=30"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mate /var/lib/layman/stuff /var/lib/layman/pinkbyte /var/lib/layman/mozilla /var/lib/layman/desktop-effects /var/lib/layman/sunrise /var/lib/layman/init6 /var/lib/layman/hardened-development /var/lib/layman/ROKO__ /var/lib/layman/raw /usr/local/portage/my /usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="# X a52 aac aalib acl acpi adplug alsa amd64 amr apache2 bash-completion berkdb bl bluetooth bluray bs2b btrfs bzip2 cairo caps cd cdb cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cue cups curl custom-optimization cxx dc1394 dga dhcp dia dirac djvu dmraid drawing dri dts dv dvb dvd dvdr en encode equalizer examples faac faad fam fat fbcon ffmpeg flac fluidsynth fontconfig foomaticdb ftp fuse gallium gconf gd gdbm ggi gif gimp glib glut gme gmp gnome gnutls gphoto2 gpm gsm gstreamer gtk gtkstyle gzip hardened hfs iconv id3tag ieee1394 imagemagick imlib irda jfs jit joystick jpeg jpeg2k justify kate kde ladspa lame latex libass libcaca libmpeg2 libproxy libsamplerate libv4l libv4l2 lm_sensors lzma lzo mad maildir mailwrapper mate matroska mbox md5sum mdadm midi mjpeg mms mmx mmxext mng modplug modules mp3 mpeg mpg123 mplayer mtp mudflap multilib musepack nautilus ncurses nls nptl nsplugin ntfs nut offensive ogg openal opengl openmp optimisememory optimization oss pam pax_kernel pcmcia pcre pdf pic plasma plotutils png pnm policykit postproc pulseaudio pvr qt qt3 qt3support qt4 quicktime radio rar raw rdesktop readline realtime reiser4 reiserfs remoteosd rss rtmp rtsp ru sasl scanner schroedinger sdl sdl-image session shine shout sid skins slp smp sndfile sound source sox speex spell sqlite sse sse2 sse3 ssl ssse3 stest stream svg symlink szip taglib tcpd telext test-programs tga threads tiff tk tools tray truetype twolame udev unicode unrar urandom usb utf8 v4l v4l2 vaapi vcd vcdx videos vlm vnc vorbis vpx w32codecs wavpack wifi wma wma-fixed x264 xanim xattr xcb xcomposite xfs xinerama xml xosd xpm xscreensaver xv xvid zlib zoran zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="bootchart crypt crypt-gpg crypt-loop lvm ssh-client 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 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="ru en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa fbdev sisusb dummy radeon nouveau i915 i965 intel r100 r200 r300 r600 radeonsi vmware" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 9 renesanso 2013-02-04 11:47:39 UTC
Created attachment 337906 [details]
zbar-0.10-r1/temp/build.log
Comment 10 renesanso 2013-02-04 12:11:09 UTC
When I added patch http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/74eeb4494438 to ebuild, patching fails. With this one http://sourceforge.net/p/zbar/patches/10/ too. But, I thing, error, that http://sourceforge.net/p/zbar/patches/10/ patch fixed, is the same, than in ebuild.
Comment 11 renesanso 2013-02-04 12:28:01 UTC
Can be fixed by executing
echo 'CFLAGS=""'  > /etc/portage/env/media-gfx/zbar
Comment 12 Michael Weber (RETIRED) gentoo-dev 2013-02-28 11:02:19 UTC
+*zbar-0.10-r2 (28 Feb 2013)
+
+  28 Feb 2013; Michael Weber <xmw@gentoo.org> +zbar-0.10-r2.ebuild,
+  +files/zbar-0.10-errors.patch:
+  Fix compilation (bug 455076, reported by renesanso)
+
Comment 13 Pacho Ramos gentoo-dev 2013-06-23 13:31:45 UTC
*** Bug 425724 has been marked as a duplicate of this bug. ***