[SCore-users-jp] コンパイル時のワーニングについて
kameyama @ pccluster.org
kameyama @ pccluster.org
2006年 3月 10日 (金) 09:45:54 JST
亀山です.
In article <031401c64372$3738a630$8e05a8c0 @ KOHORIPC> 小堀 貴彦(NESI) <kohori-t @ nesi.co.jp> wrotes:
> テストプログラム「hello」のコンパイルを実施したところ、下記のような
> ワーニングが出力されました。
>
> [root @ server mttl]# mpc++ hello.cc
> /opt/score5.8.3/lib/i386-fedoracore3-linux2_6/libpm.a(pm_loader.o)(.text+0xad
> ):
> In function `pmLoaderLoadModule':
> : warning: Using 'dlopen' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking
> /opt/score5.8.3/lib/i386-fedoracore3-linux2_6/libscorecommon.a(utility.o)(.te
> xt+0x48f):
> In function `score_gethostname':
> : warning: Using 'gethostbyname' in statically linked applications requires
> at runtime the shared libraries from the glibc version used for linking
> /opt/score5.8.3/lib/i386-fedoracore3-linux2_6/libscorecommon.a(utility.o)(.te
> xt+0x267):
> In function `score_set_tcp_nodelay':
> : warning: Using 'getprotobyname' in statically linked applications requires
> at runtime the shared libraries from the glibc version used for linking
> /usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libc.a(rcmd.o)(.text+0x1c7):
> In function `rcmd_af':
> : warning: Using 'getaddrinfo' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking
>
>
> mpiccで他のプログラムをコンパイルしても同様のワーニング
> が出力されます。
> プログラムが作成されていますのでコンパイルは完了しているよう
> なのですが、動作としては正常なのでしょうか。
正常です.
SCore では Checkpoint を行なう関係で static link を行なって
いるのですが, いくつかの関数を使用すると static link にしても
shared library を使用することがあるので warning が出てしまいます.
>
from Kameyama Toyohisa
SCore-users-jp メーリングリストの案内