Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688482 - dev-db/mariadb-10.4.6 fails to build: fatal error: mysql/service_sha2.h: No such file or directory
Summary: dev-db/mariadb-10.4.6 fails to build: fatal error: mysql/service_sha2.h: No s...
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: 2019-06-22 17:22 UTC by Carlos Konstanski
Modified: 2019-08-01 00:34 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,181.06 KB, text/x-log)
2019-06-22 17:23 UTC, Carlos Konstanski
Details
emerge --info (emerge.info,8.92 KB, application/x-info)
2019-06-22 17:24 UTC, Carlos Konstanski
Details
Fix "mysql/service_sha2.h: No such file or directory" (include_fix.patch,561 bytes, patch)
2019-07-11 08:26 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Konstanski 2019-06-22 17:22:14 UTC
There is a missing header file mysql/service_sha2.h

/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/wsrep-lib/include -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mys
ql/wsrep-lib/wsrep-API/v26 -Iinclude -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519  -march=broadwell -mtune=broadwell -mmmx -msse -msse2 -msse3 -mssse3 -mavx -mavx2 
-msse4.2 -msse4.1 -O2 -pipe -fno-strict-aliasing -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF   -fPIC -MD -MT plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o -MF plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o.d -o plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o -c /var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/ref10/keypair.c
In file included from /var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/ref10/keypair.c:3:
/var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/crypto_hash_sha512.h:1:10: fatal error: mysql/service_sha2.h: No such file or directory
 #include <mysql/service_sha2.h>
Comment 1 Carlos Konstanski 2019-06-22 17:23:27 UTC
Created attachment 580450 [details]
build.log
Comment 2 Carlos Konstanski 2019-06-22 17:24:35 UTC
Created attachment 580452 [details]
emerge --info
Comment 3 Carlos Konstanski 2019-06-22 17:30:38 UTC
My USE flags:

[ebuild     U ~] dev-db/mariadb-10.4.6:0/18::gentoo [10.3.15:0/18::gentoo] USE="backup kerberos odbc pam perl xml -bindist (-client-libs) -cracklib -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -latin1 -libressl -mroonga -numa -oqgraph -profiling -rocksdb (-selinux) -server -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -tokudb -yassl"
Comment 4 Vladimir B. Vinogradov 2019-06-24 11:19:55 UTC
(In reply to Carlos Konstanski from comment #3)
> My USE flags:
> 
> [ebuild     U ~] dev-db/mariadb-10.4.6:0/18::gentoo [10.3.15:0/18::gentoo]
> USE="backup kerberos odbc pam perl xml -bindist (-client-libs) -cracklib
> -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc
> -jemalloc -latin1 -libressl -mroonga -numa -oqgraph -profiling -rocksdb
> (-selinux) -server -sphinx -sst-mariabackup -sst-rsync -static -systemd
> -systemtap -tcmalloc -test -tokudb -yassl"

I have the same issue. As for me - this issue depends on "-server" use flag.
Comment 5 Bernd Feige 2019-07-11 08:26:50 UTC
Created attachment 582490 [details, diff]
Fix "mysql/service_sha2.h: No such file or directory"

I attach a simple fix that adds ${CMAKE_CURRENT_SOURCE_DIR}/include in addition to ${CMAKE_CURRENT_BINARY_DIR}/include to INCLUDE_DIRECTORIES in CMakeLists.txt.

This makes the build find mysql/service_sha2.h also with -server.
Comment 6 Larry the Git Cow gentoo-dev 2019-08-01 00:34:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1b434333e109b516b56e76ecec1a58f8990385

commit 6c1b434333e109b516b56e76ecec1a58f8990385
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2019-08-01 00:28:45 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2019-08-01 00:28:45 +0000

    dev-db/mariadb: Version bump: 10.4.7 10.3.17 10.2.26 10.1.41 and 5.5.65
    
    Closes: https://bugs.gentoo.org/688482
    Closes: https://bugs.gentoo.org/689412
    Closes: https://bugs.gentoo.org/691090
    Signed-off-by: Brian Evans <grknight@gentoo.org>

 dev-db/mariadb/Manifest               |   6 +
 dev-db/mariadb/mariadb-10.1.41.ebuild | 889 ++++++++++++++++++++++++++++++
 dev-db/mariadb/mariadb-10.2.26.ebuild | 974 +++++++++++++++++++++++++++++++++
 dev-db/mariadb/mariadb-10.3.17.ebuild | 975 +++++++++++++++++++++++++++++++++
 dev-db/mariadb/mariadb-10.4.7.ebuild  | 992 ++++++++++++++++++++++++++++++++++
 dev-db/mariadb/mariadb-5.5.65.ebuild  | 831 ++++++++++++++++++++++++++++
 6 files changed, 4667 insertions(+)