Bug #11862 "uint" undefined on QNX -> "libedit" compile failure
Submitted: 11 Jul 2005 13:55 Modified: 14 Jul 2005 16:16
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.0.9 and 4.1.13 OS:Other (QNX)
Assigned to: Joerg Bruehe CPU Architecture:Any

[11 Jul 2005 13:55] Joerg Bruehe
Description:
Compile error, quoted from 5.0.9:

ccache qcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR  -I. -I. -I../.. -I../../include -I../../include -I./../.. -I..    -O3 -DDBUG_OFF -O1 -Wl,-E   -c chared.c
chared.c: In function `cv_undo':
chared.c:54: `uint' undeclared (first use in this function)
chared.c:54: (Each undeclared identifier is reported only once
chared.c:54: for each function it appears in.)
chared.c:54: parse error before `size'
chared.c:57: `size' undeclared (first use in this function)

How to repeat:
Build on QNX.

Suggested fix:
Re-apply fix done by vva on Aug 31, 2004:

cmd-line-utils/libedit/chared.c@1.4, 2004-08-31 17:50:59+05:00, vva@eagle.mysql.r18.ru
  discarded using of uint because it's undefined on qnx
[12 Jul 2005 14:41] Joerg Bruehe
Changed: "uint" -> "int", and cast to "size_t" when used as an argument for "memcpy()".

(Probably no need to document it ?)
[14 Jul 2005 16:16] Paul DuBois
No changelog entry needed.