Bug #55072 configure errors on Sparc64 solaris
Submitted: 8 Jul 2010 9:35 Modified: 16 Jan 2014 12:30
Reporter: Georgi Kodinov Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1-bugteam OS:Solaris (sparc64 )
Assigned to: Daniel Fischer CPU Architecture:Any

[8 Jul 2010 9:35] Georgi Kodinov
Description:
Looks like running configure on Sparc solaris yields 2 compilation warnings : 

1. ld complaining about --version: 
checking how to run the C preprocessor... cc -E
cc: Warning: option -- passed to ld
usage: cc [ options] files.  Use 'cc -flags' for details
checking "C Compiler version"... "cc "
CC: Warning: Option --version passed to ld, if ld is invoked, ignored otherwise
/usr/ccs/bin/ld: illegal option -- version
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
        [-64]           enforce a 64-bit link-edit
        [-a]            create an absolute file
....

2. checking term.h presence... yes
configure: WARNING: term.h: present but cannot be compiled
configure: WARNING: term.h:     check for missing prerequisite headers?
configure: WARNING: term.h: see the Autoconf documentation
configure: WARNING: term.h:     section "Present But Cannot Be Compiled"
configure: WARNING: term.h: proceeding with the preprocessor's result
configure: WARNING: term.h: in the future, the compiler will take precedence

How to repeat:
run configure on sparc64 solaris or check pb2

Suggested fix:
Quick googling on the second problem reveals that on Solaris term.h requires curses.h as in e.g.: 
AC_CHECK_HEADERS(term.h,,,[#include <curses.h>])
[8 Jul 2013 10:47] Hartmut Holzgraefe
With everything converted to CMake now this one should be a "Won't fix"?
[9 Jul 2013 9:29] Georgi Kodinov
This is a 5.1 problem. No cmake on unix for this version.