Gentoo Archives: gentoo-user

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