« 2013年5月 | トップページ | 2015年12月 »

2014年5月11日 (日)

rm: cannot remove `libtoolT': No such file or directory

Apache Portable Runtime の Makefile作成時に以下のメッセージがでました。
そのままコンパイルできるそうですが気になりました。

rm: cannot remove `libtoolT': No such file or directory

[root@sv3 apr-1.5.1]# ./configure --prefix=/usr/local/apr-1.5.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
・・・
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: cannot remove `libtoolT': No such file or directory ← ※これ
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
[root@sv3 apr-1.5.1]#

configureの30142行目の$RM "$cfgfile"を$RM -f "$cfgfile"に修正すると
このメッセージはでなくなります。

[root@sv3 apr-1.5.1]# diff -c configure.bak configure
*** configure.bak       2014-04-16 08:37:43.000000000 +0900
--- configure   2014-05-10 00:59:12.283023039 +0900
***************
*** 30142,30148 ****

      cfgfile="${ofile}T"
      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
!     $RM "$cfgfile"

      cat <<_LT_EOF >> "$cfgfile"
  #! $SHELL
--- 30142,30148 ----

      cfgfile="${ofile}T"
      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
!     $RM -f "$cfgfile"

      cat <<_LT_EOF >> "$cfgfile"
  #! $SHELL
[root@sv3 apr-1.5.1]#

※参考
 https://issues.apache.org/bugzilla/show_bug.cgi?id=51726

« 2013年5月 | トップページ | 2015年12月 »