Gentoo Archives: gentoo-user

From: "J García" <jyo.garcia@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] in world update myodbc 5.3.10 will not emerge
Date: Thu, 22 Mar 2018 14:32:46
Message-Id: CAGQH77dFMyPbZ=UQGPhoAU7VZ2zMX15a+mTzSE3YX0RnDS9sqQ@mail.gmail.com
In Reply to: [gentoo-user] in world update myodbc 5.3.10 will not emerge by John Covici
1 2018-03-22 1:11 GMT-06:00 John Covici <covici@××××××××××.com>:
2
3 > cd
4 > /var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src-abi_x86_64.amd64/driver
5 > && /usr/bin/x86_64-pc-linux-gnu-gcc -DDBUG_OFF -DDISABLE_ALL_PSI
6 > -DHAVE_LIBDL -DHAVE_LPCWSTR -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR\
7 > -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_
8 > -Dmyodbc5a_EXPORTS -I/usr/include/mysql
9 > -I/var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src
10 > -I/var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connec\tor-odbc-5.3.10-src/driver/../util
11 > -DNDEBUG -O2 -mtune=core2 -pipe -ggdb -fPIC -w -o
12 > CMakeFiles/myodbc5a.dir/dll.c.o -c
13 > /var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src/driver/dll.c
14 > /var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src/driver/dll.c:
15 > In function `myodbc_end':
16 > /var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src/driver/dll.c:114:5:
17 > error: `my_thread_end_wait_time' undeclared (first use in this
18 > function); did you mean `my_thread_end'?
19 > my_thread_end_wait_time= 0;
20 > ^~~~~~~~~~~~~~~~~~~~~~~
21 > my_thread_end
22 > /var/tmp/portage/dev-db/myodbc-5.3.10-r1/work/mysql-connector-odbc-5.3.10-src/driver/dll.c:114:5:
23 > note: each undeclared identifier is reported only once
24 > for each function it appears in
25 > make[2]: ***
26 > [driver/CMakeFiles/myodbc5a.dir/build.make:183:
27 > driver/CMakeFiles/myodbc5a.dir/dll.c.o] Error 1
28 >
29
30 This seems to be an upstream bug.
31
32 The variable my_thread_end_wait_time is not defined in any .h file
33 included by the file driver/dll.c nor anywhere else in that file.
34
35 It is only defined as a global static variable in another
36 file(mysql_sys/my_thr_init.c) aka not visible outside that file.
37
38 It may be that to fix it, with an emphasis on the may be, they only
39 need to make it a declaration and not just an assignment in dll.c,
40 that means add `static uint` before "my_thread_end_wait_time = 0;" at
41 line 114. I did not read what's going on in that file, to be sure,
42 just noticed it is not a valid C program. It may also be this is code
43 not removed that should have been removed, since
44 my_thread_end_wait_time does not seem to be used at all in that file.
45 Take this to upstream, they should be able to know what to do to fix
46 it, once there is a patch, make emerge use it, or wait for it to be
47 added to the portage tree.

Replies

Subject Author
Re: [gentoo-user] in world update myodbc 5.3.10 will not emerge John Covici <covici@××××××××××.com>