Bug #17566 Configure Warnings
Submitted: 20 Feb 2006 4:01 Modified: 5 Mar 2006 13:31
Reporter: David Gitman Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.18 OS:Soalris 10 01/06 x86
Assigned to: CPU Architecture:Any

[20 Feb 2006 4:01] David Gitman
Description:
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
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING: sys/ptem.h: present but cannot be compiled
configure: WARNING: sys/ptem.h:     check for missing prerequisite headers?
configure: WARNING: sys/ptem.h: see the Autoconf documentation
configure: WARNING: sys/ptem.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result
configure: WARNING: sys/ptem.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##

How to repeat:
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
       -fno-exceptions -fno-rtti" ./configure \
       --prefix=/usr/local/mysql --enable-assembler \
       --with-mysqld-ldflags=-all-static
[20 Feb 2006 4:18] David Gitman
make
---snip---
term.c: In function `term_move_to_line':
term.c:546: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:546: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:559: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:559: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:563: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_move_to_char':
term.c:598: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:598: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:603: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:603: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:635: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:635: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_deletechars':
term.c:727: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:727: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:731: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:735: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:738: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_insertwrite':
term.c:768: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:768: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:774: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:782: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:784: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:789: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:797: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_clear_EOL':
term.c:813: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_clear_screen':
term.c:831: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:833: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:835: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_beep':
term.c:851: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_set':
term.c:909: warning: passing arg 2 of `tgetent' discards qualifiers from pointer target type
term.c: In function `term_echotc':
term.c:1497: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:1525: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:1525: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:1582: warning: passing arg 1 of `tputs' makes pointer from integer without a cast
term.c:1582: warning: passing arg 3 of `tputs' from incompatible pointer type
---snip---
---snip---
rm -f libedit.a
false cru libedit.a chared.o el.o history.o  map.o prompt.o readline.o  search.o tokenizer.o vi.o  common.o emacs.o hist.o key.o  parse.o read.o refresh.o sig.o  term.o tty.o help.o fcns.o unvis.o vis.o fgetln.o
*** Error code 255
make: Fatal error: Command failed for target `libedit.a'
Current working directory /usr/local/src/mysql-5.0.18/cmd-line-utils/libedit
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libedit'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/mysql-5.0.18/cmd-line-utils
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='. include Docs    cmd-line-utils sql-common  pstack  strings mysys dbug extra regex innobase myisam myisammrg heap vio sql  libmysql  client  scripts man tests  netware   sql-bench mysql-test support-files  server-tools'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/mysql-5.0.18
*** Error code 1
make: Fatal error: Command failed for target `all'
---snip---
[5 Mar 2006 13:31] Valeriy Kravchuk
Thank you for a problem report. Sorry, but I can not repeat the EXACT problem you described on our Solaris 10 machine. I my case I've got:

rm -f libedit.a
ar cru libedit.a chared.o el.o history.o map.o prompt.o readline.o search.o toke
nizer.o vi.o common.o emacs.o hist.o key.o parse.o read.o refresh.o sig.o term.o  tty.o help.o fcns.o unvis.o vis.o fgetln.o
ranlib libedit.a

NOT 

false cru libedit.a... 

So, it looks like your configure was not able to find "ar" utility. Check your PATH settings.

I had used the following commands to build:

export PATH=/export/home/mysqldev/sol10-x86/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ccs/bin:/opt/SUNWspro/bin
export LD_LIBRARY_PATH=/usr/local/lib:/usr/sfw/lib
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
-fno-exceptions -fno-rtti" ./configure --prefix=/users/vkravchuk/dbs/5.0-sol10 --enable-assembler --with-mysqld-ldflags=-all-static
make clean
make

on the following machine:

-bash-3.00$ uname -a
SunOS sol10-x86 5.10 Generic i86pc i386 i86pc
-bash-3.00$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
[8 Jun 2006 15:55] Christian Caron
I can repeat it (but it doesn't stop on error) on Solaris 9:

term.c: In function `term_move_to_line':
term.c:546: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:546: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:559: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:559: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:563: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_move_to_char':
term.c:598: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:598: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:603: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:603: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:635: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:635: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_deletechars':
term.c:727: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:727: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:731: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:735: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:738: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_insertwrite':
term.c:768: warning: passing arg 1 of `tputs' makes pointer from integer without
 a cast
term.c:768: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:774: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:782: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:784: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:789: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:797: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_clear_EOL':
term.c:813: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_clear_screen':
term.c:831: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:833: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:835: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_beep':
term.c:851: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c: In function `term_set':
term.c:909: warning: passing arg 2 of `tgetent' discards qualifiers from pointer
 target type
term.c: In function `term_echotc':
term.c:1497: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:1525: warning: passing arg 1 of `tputs' makes pointer from integer withou
t a cast
term.c:1525: warning: passing arg 3 of `tputs' from incompatible pointer type
term.c:1582: warning: passing arg 1 of `tputs' makes pointer from integer withou
t a cast
term.c:1582: warning: passing arg 3 of `tputs' from incompatible pointer type

It looks like everything goes correctly after, but am I going to have problems later once the software has been installed?
[8 Jun 2006 15:57] Christian Caron
forgot to paste this part:

rm -f libedit.a
ar cru libedit.a chared.o el.o history.o  map.o prompt.o readline.o  search.o to
kenizer.o vi.o  common.o emacs.o hist.o key.o  parse.o read.o refresh.o sig.o  t
erm.o tty.o help.o fcns.o unvis.o vis.o fgetln.o

So it doesn't crash because I have "ar". But again, is it going to create problems in the future?