Bug #57989 Compiler flag change RPM build error : term.c

Submitted: 4 Nov 2010 19:25 Modified: 16 Jan 2014 12:16
Reporter: Karen Langford Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.53 OS:Linux
Assigned to: CPU Architecture:Any

[4 Nov 2010 19:25] Karen Langford
Description:
This error is appearing on
frigg34 / rhel5-i686 for certain products
frigg35  /rhel5 x86_64 
frigg36 / rhel4-i686 
frigg37 / rhel4 x86_64

gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include   -Wall -Wextra -Wunused -Wwrite-strings 
-Wno-strict-aliasing -Werror -g  -DSAFE_MUTEX -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  
 -MT term.o -MD -MP -MF .deps/term.Tpo -c -o term.o term.c
cc1: warnings being treated as errors
term.c: In function 'term_set':
term.c:946: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:947: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:949: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:950: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:952: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:953: warning: passing argument 1 of 'tgetflag' discards qualifiers from pointer target type
term.c:955: warning: passing argument 1 of 'tgetnum' discards qualifiers from pointer target type
term.c:956: warning: passing argument 1 of 'tgetnum' discards qualifiers from pointer target type
make[2]: *** [term.o] Error 1
make[2]: Leaving directory `/export/home/my/tmp-201011011924-5.1.53-22876/rpm/BUILD/mysqlcom-5.1.53/cmd-line-utils/libedit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/my/tmp-201011011924-5.1.53-22876/rpm/BUILD/mysqlcom-5.1.53/cmd-line-utils'

How to repeat:
Build 5.1.53 without flag --enable-mysql-maintainer-mode=no
[4 Nov 2010 19:42] Karen Langford
Adding two more platforms: 
skade03.norway.sun.com / linux-i686 / i686-pc-linux-gnu
skade04.norway.sun.com / linux-x86_64 / x86_64-unknown-linux-gnu
[4 Nov 2010 19:48] Karen Langford
Sorry more platforms running into the term.c prob:
slid03.norway.sun.com / osx10.6-x86 / i386-apple-darwin10.3.0
slid12.norway.sun.com / osx10.5-x86_64 / i386-apple-darwin9.8.0
slid11.norway.sun.com / osx10.5-x86 / i386-apple-darwin9.8.0
osx-imac-x86.mysql.com / osx10.4-i686 / i386-apple-darwin8.11.1
[23 Dec 2010 23:51] Sveta Smirnova
Bug #59122 was marked as duplicate of this one.
[28 Dec 2010 5:15] MySQL Verification Team
Verified with 5.1.54 on Centos 5.4 on x86_64.

The suggested work-around works for me.
[16 Jan 2014 12:16] Ståle Deraas
Posted by developer:
 
term.c is not present in 5.5 codebase.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.