Bug #11950 libedit compile error in read.c on QNX
Submitted: 14 Jul 2005 19:24 Modified: 18 Jul 2005 14:52
Reporter: Lenz Grimmer Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.13-pre OS:Other (QNX 6.2.1)
Assigned to: Joerg Bruehe CPU Architecture:Any

[14 Jul 2005 19:24] Lenz Grimmer
Description:
Compiling libedit fails on QNX 6.2.1 with the following error:

01926: 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 read.c
01927: read.c: In function `el_gets':
01928: read.c:481: `uint' undeclared (first use in this function)
01929: read.c:481: (Each undeclared identifier is reported only once
01930: read.c:481: for each function it appears in.)
01931: read.c:481: parse error before `cmdnum'
01932: read.c:550: continue statement not within a loop
01933: read.c:591: break statement not within loop or switch
01934: read.c: At top level:
01935: read.c:594: conflicting types for `term__flush'
01936: el_term.h:115: previous declaration of `term__flush'
01937: read.c:594: warning: data definition has no type or storage class
01938: read.c:596: parse error before `if'
01939: cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1 error 33
01940: make[3]: *** [read.o] Error 1
01941: make[3]: Leaving directory `/home/mysqldev/buildqnx2/mysqlcom-4.1.13/cmd-line-utils/libedit'
01942

How to repeat:
Compile a binary on QNX by using the "--with-libedit" compile option.
[18 Jul 2005 14:52] Joerg Bruehe
Fixed in 4.1, before I saw the bug - so the commit does not reference the bug number.
Pushed to 4.1 already, for 5.0 other merges are outstanding.