Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510078 - dev-db/mysql-5.1.73 - sql_yacc.cc:14842:30: error: too few arguments to function 'int MYSQLlex(void*, void*)'
Summary: dev-db/mysql-5.1.73 - sql_yacc.cc:14842:30: error: too few arguments to funct...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-11 16:22 UTC by Joakim
Modified: 2014-05-14 01:47 UTC (History)
0 users

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


Attachments
build_log.tar.gz (build_log.tar.gz,74.68 KB, application/gzip-compressed-tar)
2014-05-11 22:32 UTC, Joakim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim 2014-05-11 16:22:42 UTC
The relevant output related to the error:

x86_64-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DMYSQL_DATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DPLUGINDIR="\"/usr/lib64/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I/usr//include -I../include -I../include -I../regex -I.   -DHAVE_ERRNO_AS_DEFINE=1  -march=native -O2 -pipe -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-strict-aliasing   -DYACC_HEXT_HH -fno-implicit-templates -fno-exceptions -fno-rtti -c -o sql_yacc.o sql_yacc.cc
sql_yacc.cc: In function 'int MYSQLparse()':
sql_yacc.cc:14842:30: error: too few arguments to function 'int MYSQLlex(void*, void*)'
       yychar = yylex (&yylval);
                              ^
sql_yacc.cc:64:25: note: declared here
 #define yylex           MYSQLlex
                         ^
sql_yacc.yy:58:5: note: in expansion of macro 'yylex'
 int yylex(void *yylval, void *yythd);
     ^
sql_yacc.yy:32:23: error: 'yythd' was not declared in this scope
 #define YYTHD ((THD *)yythd)
                       ^
sql_yacc.yy:1519:23: note: in expansion of macro 'YYTHD'
             THD *thd= YYTHD;
                       ^
sql_yacc.yy:32:23: error: 'yythd' was not declared in this scope
 #define YYTHD ((THD *)yythd)

 .... almost 10 000 lines of output similar to above and below ...

 sql_yacc.yy:38:14: note: in expansion of macro 'YYTHD'
 #define Lex (YYTHD->lex)
              ^
sql_yacc.yy:13785:23: note: in expansion of macro 'Lex'
             LEX *lex= Lex;
                       ^
sql_yacc.yy:32:23: error: 'yythd' was not declared in this scope
 #define YYTHD ((THD *)yythd)
                       ^
sql_yacc.yy:38:14: note: in expansion of macro 'YYTHD'
 #define Lex (YYTHD->lex)
              ^
sql_yacc.yy:13795:23: note: in expansion of macro 'Lex'
             LEX *lex= Lex;
                       ^
Makefile:1144: recipe for target 'sql_yacc.o' failed
make[3]: *** [sql_yacc.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.1.73/work/mysql/sql'
Makefile:1211: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.1.73/work/mysql/sql'
Makefile:810: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.1.73/work/mysql/sql'
Makefile:630: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: dev-db/mysql-5.1.73::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.1.73::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.1.73::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.1.73/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.73/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.1.73/work/mysql'
 * S: '/var/tmp/portage/dev-db/mysql-5.1.73/work/mysql'

>>> Failed to emerge dev-db/mysql-5.1.73, Log file:

>>>  '/var/tmp/portage/dev-db/mysql-5.1.73/temp/build.log'

This inside an openvz container.

#emerge --info
Portage 2.2.10 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.19, 2.6.32-openvz-084.26 x86_64)
=================================================================
System uname: Linux-2.6.32-openvz-084.26-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     1048576 total,   1009052 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 11 May 2014 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6-r1, 3.2.5-r3, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.4.7, 4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x-portage
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /sbin/rc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -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 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"
PKGDIR="/opt/bin-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="/usr/local/portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv mmx modules multilib ncurses nls nptl openmp pam pcre postgres readline session sse sse2 ssl tcpd unicode urandom zlib" ABI_X86="64" 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" 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 author" 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 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-11 16:23:46 UTC
Please attach the entire build log to this bug report.
Comment 2 Joakim 2014-05-11 22:32:07 UTC
Created attachment 376738 [details]
build_log.tar.gz

build.log inside build_log.tar.tg
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-12 16:09:28 UTC
Comment on attachment 376738 [details]
build_log.tar.gz

Why would you put a single file in a tar archive?
Comment 4 Brian Evans (RETIRED) gentoo-dev 2014-05-12 16:15:29 UTC
Please try to use sys-devel/bison less than 3.0 or use mysql-5.5.37-r1
Comment 5 Joakim 2014-05-12 20:23:48 UTC
(In reply to Jeroen Roovers from comment #3)
> Comment on attachment 376738 [details]
> build_log.tar.gz
> 
> Why would you put a single file in a tar archive?

bc bugzilla only let me upload a filesize of 1000k and it was 1600k
Comment 6 Brian Evans (RETIRED) gentoo-dev 2014-05-14 01:47:54 UTC
*mysql-5.1.73-r1 (14 May 2014)

  14 May 2014; Brian Evans <grknight@gentoo.org> +mysql-5.1.73-r1.ebuild,
  -mysql-5.1.73.ebuild:
  Revision bump wrt bug 510078