Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294351 - sys-process/at-3.1.10.2-r1 fails to build with flex
Summary: sys-process/at-3.1.10.2-r1 fails to build with flex
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
: 408035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-24 09:02 UTC by Patrick Lauer
Modified: 2012-03-14 11:03 UTC (History)
2 users (show)

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


Attachments
Fix making y.tab.[ch] (at-3.1.13-Makefile.in-parallel-y.tab.patch,291 bytes, patch)
2012-03-14 11:03 UTC, sf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2009-11-24 09:02:33 UTC
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"3.1.10.2\" -DETCDIR=\"/etc/at\" -DLOADAVG_MX=0.8 -DDAEMON_USERNAME=\"at\" -DDAEMON_GROUPNAME=\"at\" -DLFILE=\"/var/spool/at/atjobs/.SEQ\" -Wall daemon.c
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"3.1.10.2\" -DETCDIR=\"/etc/at\" -DLOADAVG_MX=0.8 -DDAEMON_USERNAME=\"at\" -DDAEMON_GROUPNAME=\"at\" -DLFILE=\"/var/spool/at/atjobs/.SEQ\" -Wall y.tab.c
at.c: In function 'writefile':
at.c:406: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
at.c:438: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
at.c: In function 'parsetimespec':
at.c:717: warning: passing argument 1 of 'localtime' makes pointer from integer without a cast
/usr/include/time.h:237: note: expected 'const time_t *' but argument is of type 'time_t'
at.c: At top level:
at.c:111: warning: 'svnid' defined but not used
at.c:710: warning: 'parsetimespec' defined but not used
atd.c: In function 'run_file':
atd.c:428: warning: ignoring return value of 'nice', declared with attribute warn_unused_result
atd.c:439: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result
atd.c:476: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result
atd.c:493: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result
atd.c: At top level:
atd.c:102: warning: 'svnid' defined but not used
flex -i parsetime.l
daemon.c:51: warning: 'svnid' defined but not used
y.tab.c:1507:1: warning: null character(s) ignored
y.tab.c: In function 'yyparse':
y.tab.c:1507: error: 'k' undeclared (first use in this function)
y.tab.c:1507: error: (Each undeclared identifier is reported only once
y.tab.c:1507: error: for each function it appears in.)
y.tab.c:1509: error: case label not within a switch statement
parsetime.y:350: error: break statement not within loop or switch
parsetime.y:352: error: case label not within a switch statement

[SNIP]

y.tab.c:2327: error: expected identifier or '(' before 'do'
y.tab.c:2327: error: expected identifier or '(' before 'while'
y.tab.c:2328: error: expected identifier or '(' before 'while'
y.tab.c:2335: error: expected identifier or '(' before 'if'
y.tab.c:2343: error: expected identifier or '(' before 'return'
y.tab.c:2344: error: expected identifier or '(' before '}' token
parsetime.y: In function 'parsetime':
parsetime.y:510: warning: implicit declaration of function 'panic'
make: *** [y.tab.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: sys-process/at-3.1.10.2-r1 failed:

Portage 2.2_rc51 (default/linux/amd64/10.0/server, gcc-4.4.2, glibc-2.11-r0, 2.6.32-rc6-git6 x86_64)
=================================================================
System uname: Linux-2.6.32-rc6-git6-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Unknown
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/kde/4.4/env /usr/kde/4.4/share/config /usr/kde/4.4/shutdown /usr/kde/live/env /usr/kde/live/share/config /usr/kde/live/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
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://localhost/gentoo-portage"
USE="X acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 ldap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-12-12 18:20:46 UTC
builds fine with bison.
Comment 2 Matt Turner gentoo-dev 2011-08-18 20:46:53 UTC
What's going on here? Is this still reproducible?
Comment 3 Matt Rechkemmer 2011-09-20 03:40:18 UTC
(In reply to comment #2)
> What's going on here? Is this still reproducible?

I can confirm that on a new amd64 install w/o bison, the at install fails much in the way Patrick describes.  If I install bison and attempt the merge again, it works.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-03-13 15:01:44 UTC
*** Bug 408035 has been marked as a duplicate of this bug. ***
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-03-13 15:07:15 UTC
+  13 Mar 2012; Lars Wendler <polynomial-c@gentoo.org> at-3.1.10.2-r1.ebuild,
+  at-3.1.10.2-r2.ebuild, at-3.1.13.ebuild, at-3.1.13-r1.ebuild:
+  Added sys-devel/bison to DEPEND. This should fix bug #294351 and bug #408035.
+
Comment 6 sf 2012-03-14 11:03:27 UTC
Created attachment 305293 [details, diff]
Fix making y.tab.[ch]

In parallel builds y.tab.c and y.tab.h can be make twice. Use a pattern rule instead (see "info make", section "10.5.1 Introduction to Pattern Rules", last paragraph).