mysql:14727
From: Yamada Kazuo <Yamada Kazuo <yamada@xxxxxxxxxx>>
Date: Mon, 16 Feb 2009 16:57:34 +0900
Subject: [mysql 14727] Re: CentOSでの静的リンクについて
やまだ@越谷です。 On Mon, 16 Feb 2009 16:44:56 +0900 yama <mailinglist0507@xxxxxxxxxx> wrote: > やっぱりyumでの運用は無理なのかと諦めかけ > 別のマシンを用意して mysql-5.0.75.tar.gz をMySQLのサイトからダウンロード > して展開し > # ./configure --with-charset=ujis --with-extra-charsets=all > --with-other-libc=/usr/lib/ --with-client-ldflags=-all-static > # make > # make install > を行いました。 > その後、上記と同様にコンパイルを実行したところSSL関係のエラーは表示され > なくなったものの glibc のエラーは残ったままでした。 > /usr/local/lib/mysql/libmysqlclient.a(mf_pack.o): In function > `unpack_dirname': > mf_pack.c:(.text+0x906): warning: Using 'getpwnam' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/local/lib/mysql/libmysqlclient.a(libmysql.o): In function > `read_user_name': > libmysql.c:(.text+0x2f2f): warning: Using 'getpwuid' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > /usr/local/lib/mysql/libmysqlclient.a(mf_pack.o): In function > `unpack_dirname': > mf_pack.c:(.text+0x90f): warning: Using 'endpwent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/local/lib/mysql/libmysqlclient.a(my_gethostbyname.o): In function > `my_gethostbyname_r': > my_gethostbyname.c:(.text+0x30): warning: Using 'gethostbyname_r' in > statically linked applications requires at runtime the shared libraries > from the glibc version used for linking > /usr/local/lib/mysql/libmysqlclient.a(libmysql.o): In function > `mysql_server_init': > libmysql.c:(.text+0x34b5): warning: Using 'getservbyname' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > /usr/local/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_uncompress': > my_compress.c:(.text+0x60): undefined reference to `uncompress' > /usr/local/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_compress_alloc': > my_compress.c:(.text+0x102): undefined reference to `compress' > /usr/local/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_compress': > my_compress.c:(.text+0x1ae): undefined reference to `compress' > collect2: ld はステータス 1 で終了しました > make: *** [nc_entry.cgi] エラー 1 google等で、 > undefined reference to `compress' のキーワードで検索すると、似た様な事例と対処方法が出てくるようですが... -- 0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----# 山田 和雄 MailTo:yamada@xxxxxxxxxx Yamada Kazuo
14722 2009-02-16 10:02 [yama <mailinglist050] CentOSでの静的リンクについて 14723 2009-02-16 10:22 ┗[<y-iida@xxxxxxxxxx> ] 14724 2009-02-16 11:53 ┗[yama <mailinglist050] 14725 2009-02-16 14:04 ┗[<y-iida@xxxxxxxxxx> ] 14726 2009-02-16 16:44 ┗[yama <mailinglist050] -> 14727 2009-02-16 16:57 ┣[Yamada Kazuo <yamada] 14728 2009-02-16 17:05 ┗[<y-iida@xxxxxxxxxx> ]