Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430458 - media-libs/libaacs-0.4.0 - In file included from keydbcfg-lexer.l:21:0: keydbcfg-parser.h:132:37: error: unknown type name 'dk_list'
Summary: media-libs/libaacs-0.4.0 - In file included from keydbcfg-lexer.l:21:0: keydb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 14:16 UTC by goeland86
Modified: 2012-08-22 20:52 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,22.67 KB, text/plain)
2012-08-08 14:17 UTC, goeland86
Details
emerge --info output (emerge-info,5.18 KB, text/plain)
2012-08-08 14:17 UTC, goeland86
Details

Note You need to log in before you can comment on or make changes to this bug.
Description goeland86 2012-08-08 14:16:46 UTC
media-libs/libaacs-0.4.0 fails to build on two different amd64 systems running ~amd64 gentoo.

Reproducible: Always

Steps to Reproduce:
1. emerge libaacs
2. watch the emerge output
Actual Results:  
emerge fails

Expected Results:  
emerge succeeds in building libaacs

build.log and emerge --info attached
Comment 1 goeland86 2012-08-08 14:17:02 UTC
Created attachment 320706 [details]
build.log
Comment 2 goeland86 2012-08-08 14:17:18 UTC
Created attachment 320708 [details]
emerge --info output
Comment 3 Robert Cabrera 2012-08-12 04:34:07 UTC
I just got hit with this bug while recompiling my ~amd64 laptop.

Emerge fails as follows:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libaacs-0.4.0/work/libaacs-0.4.0/src -I.. -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wextra -Winline -g -I/var/tmp/portage/media-libs/libaacs-0.4.0/work/libaacs-0.4.0 -Ifile -O2 -pipe -march=native -c keydbcfg-lexer.c  -fPIC -DPIC -o .libs/keydbcfg-lexer.o
In file included from keydbcfg-lexer.l:21:0:
keydbcfg-parser.h:132:37: error: unknown type name 'dk_list'
keydbcfg-parser.h:132:54: error: unknown type name 'pk_list'
keydbcfg-parser.h:132:71: error: unknown type name 'cert_list'
keydbcfg-parser.h:132:89: error: unknown type name 'title_entry_list'
keydbcfg-parser.h:132:115: error: unknown type name 'digit_key_pair_list'
keydbcfg-lexer.c: In function 'libaacs_yylex':
keydbcfg-lexer.c:926:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
keydbcfg-lexer.c: In function 'libaacs_yy_scan_bytes':
keydbcfg-lexer.c:1872:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[4]: *** [keydbcfg-lexer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 * ERROR: media-libs/libaacs-0.4.0 failed (compile phase):
 *   emake failed

My emerge --info:

Portage 2.2.0_alpha120 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.1, glibc-2.15-r2, 3.5.1-pf x86_64)
=================================================================
System uname: Linux-3.5.1-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 12 Aug 2012 03:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo sunrise sabayon my_local_overlay
Installed sets: @gst-plugins, @nice-fonts, @tool-chain, @xorg-update
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="!* /etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="!* /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --with-bdeps=y --keep-going --complete-graph --load-average=9"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks fixlafiles multilib-strict news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3 -s"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr analitza ass attica avahi bazaar berkdb bidi bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdio cdparanoia cdr chm clamav clamdtop cli consolekit contrast corefonts cracklib crypt cups curl cvs cxx dbus declarative designer-plugin desktopglobe device-mapper dirac djvu dri dts dv dvd dvdr ebook emboss emovix encode exif faac faad fam fbcondecor fbsplash ffmpeg firefox fits flac fontconfig fortran ftp g3dvl gdbm gif gimp git glibc-omitfp gnutls google gphoto2 groupwise gstreamer hdri http httpd iconv icq idn ieee1394 imagemagick imlib indi infinality ipv6 irc jabber java javascript jbig joystick jpeg jpeg2k kde kipi lame latex lcms ldap lensfun libass libnotify libsamplerate live lm_sensors lua lzma lzo mad matroska mdnsresponder-compat meanwhile mercurial mjpeg mms mmx mng modplug modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz ncurses netlink nls nptl nsplugin ntp nvidia offensive offlinehelp ogg openal opencl openexr opengl openmp oscar otr pam pango pcre pdf phonon plasma png policykit postproc ppds pppd prediction ps python3 qalculate qt3support qt4 quicktime qwt rdesktop readline rtsp samba scanner schroedinger scim sdl semantic-desktop session sip skype smp sms sndfile solver soup sox speex spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg symlink taglib tcpd telepathy templates theora thumbnail tidy tiff truetype twolame udev udisks unicode upnp upower usb vcd vcdx vlm vnc vorbis vpx wavpack webpresence wicd wifi winpopup wmf wxwidgets x264 xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc yahoo zeroconf 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 mmap_emul 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 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="ptp2" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Martin Drab 2012-08-15 18:51:03 UTC
Hi, I've also noticed this problem. It seems to be generated by the new bison versions 2.6.x (tested to fail on 2.6, 2.6.1 and 2.6.2). So, it's probably a problem in there. Reverting back to bison 2.5.1 seems to workaround the problem.
Comment 5 Martin Drab 2012-08-15 19:06:17 UTC
There should be

#include "file/keydbcfg.h"

in the bison generated keydbcfg-parser.h since the file includes this declaration

int libaacs_yyparse (void *scanner, dk_list *dklist, pk_list *pklist, cert_list *clist, title_entry_list *celist, digit_key_pair_list *dkplist);

and does not define the appropriate types, which are defined in the "file/keydbcfg.h". Whether it is a problem of the new bison or a problem in the wrong file/keydbcfg-parser.y or perhaps file/keydbcfg-lexer.l, I don't know, I didn't dive into those.
Comment 6 Martin Drab 2012-08-15 19:09:17 UTC
When generated with bison 2.5.1, there seems to be no such line within the keydbcfg-parser.h file and so there is no error. But why is that? I didn't dig deep enough to find out.
Comment 7 Robert Cabrera 2012-08-21 21:32:38 UTC
Is there anyone paying attention to this?

It's been 2 weeks since this was first reported. Since then there have been several other reports with detailed info showing where and why the build fails, yet it's still listed as "unconfirmed" and not a sniff of a response from anyone regarding this.

Somebody please look into this. TIA
Comment 8 Alexis Ballier gentoo-dev 2012-08-22 15:15:45 UTC
fixed in 0.5.0

(In reply to comment #7)
> Is there anyone paying attention to this?
> 
> It's been 2 weeks since this was first reported. Since then there have been
> several other reports with detailed info showing where and why the build
> fails, yet it's still listed as "unconfirmed" and not a sniff of a response
> from anyone regarding this.
> 
> Somebody please look into this. TIA

noone provided a patch. the patch i added was found using google. it usually speeds up things a lot when people provide patches :)
Comment 9 Robert Cabrera 2012-08-22 20:52:00 UTC
(In reply to comment #8)
> fixed in 0.5.0
> 
> (In reply to comment #7)
> > Is there anyone paying attention to this?
> > 
> > It's been 2 weeks since this was first reported. Since then there have been
> > several other reports with detailed info showing where and why the build
> > fails, yet it's still listed as "unconfirmed" and not a sniff of a response
> > from anyone regarding this.
> > 
> > Somebody please look into this. TIA
> 
> noone provided a patch. the patch i added was found using google. it usually
> speeds up things a lot when people provide patches :)

Thanks!

The newer version does indeed fix the issue.