Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630848 - dev-db/mydumper-0.6.2 : /.../mydumper.c:674:61: error: MYSQL_SERVER_VERSION undeclared (first use in this function)
Summary: dev-db/mydumper-0.6.2 : /.../mydumper.c:674:61: error: MYSQL_SERVER_VERSION u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 630404
  Show dependency tree
 
Reported: 2017-09-12 20:55 UTC by Toralf Förster
Modified: 2017-10-23 13:10 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.37 KB, text/plain)
2017-09-12 20:55 UTC, Toralf Förster
Details
dev-db:mydumper-0.6.2:20170912-181350.log (dev-db:mydumper-0.6.2:20170912-181350.log,7.80 KB, text/plain)
2017-09-12 20:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,294.72 KB, text/plain)
2017-09-12 20:55 UTC, Toralf Förster
Details
environment (environment,117.39 KB, text/plain)
2017-09-12 20:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.31 KB, application/x-bzip)
2017-09-12 20:56 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.50 KB, application/x-bzip)
2017-09-12 20:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.23 KB, application/x-bzip)
2017-09-12 20:56 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-09-12 20:55:47 UTC
/usr/bin/x86_64-pc-linux-gnu-gcc  -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DNDEBUG -Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -O2 -pipe -march=native -Wall -I/usr/include/mysql -I/usr/include/mysql/..   -o CMakeFiles/mydumper.dir/mydumper.c.o -c /var/tmp/portage/dev-db/mydumper-0.6.2/work/mydumper-0.6.2/mydumper.c
/var/tmp/portage/dev-db/mydumper-0.6.2/work/mydumper-0.6.2/mydumper.c: In function ‘main’:
/var/tmp/portage/dev-db/mydumper-0.6.2/work/mydumper-0.6.2/mydumper.c:674:61: error: ‘MYSQL_SERVER_VERSION’ undeclared (first use in this function)
   g_print("mydumper %s, built against MySQL %s\n", VERSION, MYSQL_SERVER_VERSION);
                                                             ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-db/mydumper-0.6.2/work/mydumper-0.6.2/mydumper.c:674:61: note: each undeclared identifier is reported only once for each function it appears in

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop_libressl_20170903-100751

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.11 [icedtea-bin-7]
2)	IcedTea JDK 3.5.1 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-7  system-vm
  [2]   icedtea-bin-8 

emerge -qpv dev-db/mydumper
[ebuild  N    ] dev-db/mydumper-0.6.2  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2017-09-12 20:55:50 UTC
Created attachment 494262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-09-12 20:55:53 UTC
Created attachment 494264 [details]
dev-db:mydumper-0.6.2:20170912-181350.log
Comment 3 Toralf Förster gentoo-dev 2017-09-12 20:55:56 UTC
Created attachment 494266 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-09-12 20:56:00 UTC
Created attachment 494268 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-09-12 20:56:04 UTC
Created attachment 494270 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-09-12 20:56:07 UTC
Created attachment 494272 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-09-12 20:56:10 UTC
Created attachment 494274 [details]
temp.tbz2
Comment 8 Tomáš Mózes 2017-10-06 19:27:02 UTC
https://github.com/gentoo/gentoo/pull/5873
Comment 10 Brian Evans (RETIRED) gentoo-dev 2017-10-23 13:10:46 UTC
Please fix MYSQL_SERVER_VERSION errors as such.

A quick fix can be:

#if defined MARIADB_CLIENT_VERSION_STR && !defined MYSQL_SERVER_VERSION
  #define MYSQL_SERVER_VERSION MARIADB_CLIENT_VERSION_STR
#endif

Ultimately, MYSQL_SERVER_VERSION should be removed and use the MYSQL_VERSION_ID integer for version identification.