Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919501 - dev-db/myodbc-8.0.27-r1 - /.../dltest.c: error: implicit declaration of function strncmp [-Wimplicit-function-declaration]
Summary: dev-db/myodbc-8.0.27-r1 - /.../dltest.c: error: implicit declaration of 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: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-09 10:38 UTC by Toralf Förster
Modified: 2024-04-24 19:08 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,22.69 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
dev-db:myodbc-8.0.27-r1:20231209-023605.log (dev-db:myodbc-8.0.27-r1:20231209-023605.log,27.07 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,123.33 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
environment (environment,119.80 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,35.31 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,123.85 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.19 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
includes <string.h> (myodbc-8.0.32-include-string.patch,291 bytes, patch)
2023-12-13 23:57 UTC, Christopher Fore
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-09 10:38:16 UTC
too long lines were shrinked:

[1/121] /usr/bin/x86_64-pc-linux-gnu-g++ -DDISABLE_ALL_PSI -DHAVE_LIBDL -DHAVE_LPCWSTR -DMYSQL8 -DNDEBUG -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_ -I/usr/include/mysql -I/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.2
[2/121] /usr/bin/x86_64-pc-linux-gnu-g++ -DDISABLE_ALL_PSI -DHAVE_LIBDL -DHAVE_LPCWSTR -DMYSQL8 -DNDEBUG -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_ -I/usr/include/mysql -I/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.2
[3/121] /usr/bin/x86_64-pc-linux-gnu-gcc -DDISABLE_ALL_PSI -DHAVE_LIBDL -DHAVE_LPCWSTR -DMYSQL8 -DNDEBUG -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_ -I/usr/include/mysql -I/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.2
FAILED: dltest/CMakeFiles/dltest.dir/dltest.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DDISABLE_ALL_PSI -DHAVE_LIBDL -DHAVE_LPCWSTR -DMYSQL8 -DNDEBUG -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_ -I/usr/include/mysql -I/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.27-src/in
/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.27-src/dltest/dltest.c: In function main:
/var/tmp/portage/dev-db/myodbc-8.0.27-r1/work/mysql-connector-odbc-8.0.27-src/dltest/dltest.c:101:8: error: implicit declaration of function strncmp [-Wimplicit-function-declaration]
  101 |   if ( strncmp(argv[1],"lib:",4) == 0 || strncmp(argv[1],"sym:",4) == 0 )
      |        ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231123-162118

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1
  [2]   rust-1.74.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
3)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
5)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-11 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.20.11 linux/amd64

  HEAD of ::gentoo
commit db21fe99b39f4ec730eb6f4cd0a92f742705f9c9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 9 02:02:07 2023 +0000

    2023-12-09 02:02:06 UTC

emerge -qpvO dev-db/myodbc
[ebuild  N    ] dev-db/myodbc-8.0.27-r1  ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-12-09 10:38:17 UTC
Created attachment 878480 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-09 10:38:18 UTC
Created attachment 878481 [details]
dev-db:myodbc-8.0.27-r1:20231209-023605.log
Comment 3 Toralf Förster gentoo-dev 2023-12-09 10:38:19 UTC
Created attachment 878482 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-09 10:38:20 UTC
Created attachment 878483 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-09 10:38:21 UTC
Created attachment 878484 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-09 10:38:22 UTC
Created attachment 878485 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-09 10:38:24 UTC
Created attachment 878486 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-09 10:38:25 UTC
Created attachment 878487 [details]
temp.tar.xz
Comment 9 Christopher Fore 2023-12-13 23:57:55 UTC
Created attachment 879297 [details, diff]
includes <string.h>
Comment 10 Larry the Git Cow gentoo-dev 2024-04-24 19:08:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d4c3260ae7b8a644779ba36463a7827a2f5edb

commit 50d4c3260ae7b8a644779ba36463a7827a2f5edb
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2023-12-14 19:49:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-24 19:07:51 +0000

    dev-db/myodbc: add 8.0.32, fix GCC 14 error, EAPI bump
    
    Patch attached includes `<string.h>`.
    Bump EAPI 7 -> 8.
    
    Closes: https://bugs.gentoo.org/919501
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/34274
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/myodbc/Manifest                             |   1 +
 .../files/myodbc-8.0.32-include-string.patch       |  14 +++
 dev-db/myodbc/myodbc-8.0.32.ebuild                 | 128 +++++++++++++++++++++
 3 files changed, 143 insertions(+)