• 締切済み

glibc2.4がmakeできない

OSはUbuntu14.04でapt-getのUPDATEなどはしていません。glibcは書籍「自分で作るLinux OS」から取得したものです。INTERNET環境がアナログ電話回線なのでINTERNETからDOWNLOADするというのは現実的ではありません。 はじめはbinutilsのVERSION違いでERRORだったので、 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 2.2[0-9]*) を追加しました。 その後makeすると以下のようなERRORが出てglibc2.4がmakeできません。どのようにすればこのERRORを解決することが出来るでしょうか。初心者ですが、よろしくおねがいします。字数制限の関係上、ERROR内容を省略したので、解決に必要な部分があったら補足します。 $ sudo make make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.4 objdir=`pwd` all make[1]: ディレクトリ `/usr/local/source/glibc-2.4' に入ります ---中略--- mv -f /usr/local/source/build-glibc/sysd-rulesT /usr/local/source/build-glibc/sysd-rules mawk -f scripts/gen-sorted.awk \ -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow po argp crypt nss localedata timezone rt conform debug dlfcn elf' \ -v srcpfx='' \ nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /usr/local/source/build-glibc/sysd-sorted-tmp mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [) /[^ mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ] mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ... make[1]: ディレクトリ `/usr/local/source/glibc-2.4' から出ます make[1]: ディレクトリ `/usr/local/source/glibc-2.4' に入ります mawk -f scripts/gen-sorted.awk \ -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow po argp crypt nss localedata timezone rt conform debug dlfcn elf' \ -v srcpfx='' \ nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /usr/local/source/build-glibc/sysd-sorted-tmp mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [) /[^ mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ] mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ... make[1]: *** `/usr/local/source/build-glibc/abi-versions.h' に必要なターゲット `/usr/local/source/build-glibc/Versions.all' を make するルールがありません. 中止. make[1]: ディレクトリ `/usr/local/source/glibc-2.4' から出ます make: *** [all] エラー 2

みんなの回答

  • trytobe
  • ベストアンサー率36% (3457/9591)
回答No.1

とりあえず、makefile の記載のせいか、gen-sorted.awk の19行目の正規表現のエラーが起きまくっているだけなので、 追加した『ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 2.2[0-9]*)』の、最後の 半角 )の必要性や、2.2 のピリオドは 半角¥ でエスケープしておくなどを対応されてはいかがですか。

関連するQ&A

  • makeでエラー

    opensuseでUE-1000T-U3を使おうと思ったんですが ax88179のドライバが入りません。 詳しく説明しますと、AX88179_178A_LINUX_DRIVER_v1.5.0_SOURCE.tar.bz2を 展開したあと # make make -C /lib/modules/3.7.10-1.16-desktop/build SUBDIRS=/home/username/ダウンロード/AX88179_178A_LINUX_DRIVER_v1.5.0_SOURCE modules make[1]: ディレクトリ `/lib/modules/3.7.10-1.16-desktop/build' に入ります make[1]: *** ターゲット `modules' を make するルールがありません. 中止. make[1]: ディレクトリ `/lib/modules/3.7.10-1.16-desktop/build' から出ます make: *** [default] エラー 2 で、エラーが出るんですけど どういう状態で、どう直せばいいでしょうか 教えてください、お願いします。

  • Wine起動時のエラーについて

    教えてください!! Vine Linux 4.1上で、WindowsのIEを起動させるために、以下の手順でWine-0.9.42をインストールしました。 手順:ソースからwine-0.9.42.tar.bz2 をダウンロードして、 # tar xjvf wine-0.9.42.tar.bz2 # cd wine-0.9.42 # ./configure --prefix=/usr/local/wine-0.9.42 # make depend && make # make install # ln -s /usr/local/wine-0.9.42/bin/* /usr/local/bin しかし、#winecfgで起動したところ、以下のエラーが出て、うまく起動することができませんでした。 エラー: glibc >= 2.3 without NPTL or TLS is not a supported combination. It will most likely crash. Please upgrade to a glibc with NPTL support. これは、NPTLに対応したglibcをアップグレードしなさいということなのでしょうか?多くのサイトで探してみましたが、その方法がよくわかりませんでした。 このエラーを回避して、Wineを起動させる方法を、どなたか教えていただけないでしょうか。 ちなみに、現在のLinuxのカーネルのバージョンは2.6.16-0vl66で、glibcは2.3.4-2vl3.1です。 宜しくお願い致します。

  • Openldapインストールmake testでエラー

    Openldapのインストールについて質問があります。 1度は、正常にOpenldapのインストールは、成功したのですが Openldapを再インストールしようと思い実行したのですが、 make testで、下記のエラーが表示されました。 Initiating LDAP tests for BDB... Running ./scripts/all... >>>>> Executing all LDAP tests for bdb >>>>> Starting test000-rootdse ... running defines.sh Starting slapd on TCP/IP port 9011... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ldap_bind: Can't contact LDAP server (-1) >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) make[2]: *** [bdb-yes] Error 1 make[2]: Leaving directory `/var/tmp/src/ldap/openldap-2.2.17/tests' make[1]: *** [test] Error 2 make[1]: Leaving directory `/var/tmp/src/ldap/openldap-2.2.17/tests' make: *** [test] Error 2 ネットで調べたのですが、有力な情報がなかったので、知っている方がいれば教えて頂けたら幸いです。 BerkeleyDB.4.7のパッチは、当てています。 http://www.tail.gr.jp/wiki/?OpenLDAP CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include -I/usr/loca/ssl/include -I/usr/local/include" export CPPFLAGS LDFLAGS="-L/usr/local/BerkeleyDB.4.7/lib -R/usr/loca/BerkeleyDB.4.7/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib" export LDFLAGS ./configure --enable-crypt make depend make ここまでは、エラー無く通っています。 make test よろしくお願いします。

  • configファイル入れ替え

    Debian でconfigファイルだけを差し替えて、再度カーネルをビルドしようとしています。 手順は以下を参考に行っています。 http://www.kozupon.com/debian/kernel.html cp /home/ユーザ名/config-2.6.26.8 .config でコンフィグを差し替えたあと make oldconfig, make-kpkg cleanを行い、 make-kpkg --revision 20091027 kernel-imageでバイナリを作成しようとすると、 以下のエラーが発生します。 「/usr/src/linux-2.6.26.8/scripts/gen_initramfs_list.sh :cannot open 'usr/root'」 原因についてどなたかご教授頂けませんでしょうか。 宜しくお願い致します。

  • libxml2のmakeでエラー

    phpをインストールする前にlibxml2が必要らしいのでインストールすることにしたのですが、make時にエラー出てしまいました。 検索したのですが自分では検討がつきません…。どのような原因なのか教えてください。 OS:fedora core 6 wget -P /usr/local/src ftp://xmlsoft.org/libxml2/libxml2-2.6.27.tar.gz # cd /usr/local/src # tar xzf libxml2-2.6.27.tar.gz # cd libxml2-2.6.27 # ./configure --prefix=/usr/local --with-low-memory # make parser.c:5103: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. The bug is not reproducible, so it is likely a hardware or OS problem. make[2]: *** [parser.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libxml2-2.6.27' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libxml2-2.6.27' make: *** [all] Error 2 ちなみにlinuxをのせてるPCはwindowsMe時代の奴でテキストモードでしかfedora6をインストールできないようなしょぼい奴です。 基本的にソースでインストールする勉強をしているのでソースから入れようと思ってます。 mysqlのmake時にには下のようなエラーがでました。 make[2]: *** [my_write.lo] Error 1 make[2]: Leaving directory `/home/mysql/src/mysql-5.1.22-rc/libmysql' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/mysql/src/mysql-5.1.22-rc/libmysql' make: *** [all-recursive] Error 1 こちらもどこが怪しいか指摘くださると助かります。

  • makeがエラーを吐く

    makeがエラーを吐く 今、Fedora13で無線LANのドライバ(RT2870)をインストールしているのですが・・・ makeを行うと下記のような表示で止まってしまいます # make make -C tools make[1]: ディレクトリ `/home/makoto/rt2870/tools' に入ります gcc -g bin2h.c -o bin2h make[1]: ディレクトリ `/home/makoto/rt2870/tools' から出ます /home/makoto/rt2870/tools/bin2h cp -f os/linux/Makefile.6 /home/makoto/rt2870/os/linux/Makefile make -C /lib/modules/2.6.33.3-85.fc13.i686/build SUBDIRS=/home/makoto/rt2870/os/linux modules make: *** /lib/modules/2.6.33.3-85.fc13.i686/build: そのようなファイルやディレクトリはありません. 中止. make: *** [LINUX] エラー 2 一応、カーネルソースなども一通りインストールしましたが、やはり上記のような状態です。 そこで、エラーを吐く/lib/modules/2.6.33.3-85.fc13.i686/buildへ行って見たところ、「このリンクはリンク切れです」と出ました。 そこで質問なのですが、このリンク切れを直したいのですが、どこにたどればいいのでしょうか。 よろしくお願いします。

  • Openldapインストールmakeでエラー

    Solaris10にOpenldapのインストールがうまく行きません。 make時でエラーになります。 色々、Googleで調べてしているのですが結局うまくいきませんでした。 教えていた頂けたら幸いです。 事前にインストールしたソフト BerkeleyDB4.7.25 openssl0.98l cyrus-sasl-2.1.21 cd openldap-2.4.16 CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib" ./configure make depend make (cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la) gcc -g -O2 -I../../include -I../../include -I/usr/local/BerkeleyDB.4.7/include -c -o apitest.o apitest.c /bin/sh ../../libtool --mode=link gcc -static -g -O2 -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib -o apitest apitest.o libldap.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl2 -lgss -lssl -lcrypto -lresolv -lgen -lnsl -lsocket gcc -g -O2 -o apitest apitest.o -L/usr/local/BerkeleyDB.4.7/lib ./.libs/libldap.a /work/src/openldap-2.4.16/libraries/liblber/.libs/liblber.a -L/usr/local/lib:-L/usr/local/ssl/lib:-L/usr/sfw/lib:-L/usr/lib:-L/opt/sfw/lib:-L/usr/ccs/lib:-L/usr/local/BerkeleyDB4.7/lib ../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a /usr/local/lib/libsasl2.so -ldl -lgss -lssl -lcrypto -lresolv -lgen -lnsl -lsocket -R/usr/local/lib -R/usr/local/lib -R/usr/local/BerkeleyDB.4.7/lib Undefined first referenced symbol in file BIO_set_flags ./.libs/libldap.a(tls_o.o) BIO_clear_flags ./.libs/libldap.a(tls_o.o) SSL_CTX_set_info_callback ./.libs/libldap.a(tls_o.o) ld: fatal: Symbol referencing errors. No output written to apitest collect2: ld returned 1 exit status make[2]: *** [apitest] エラー 1 make[2]: ディレクトリ `/work/src/openldap-2.4.16/libraries/libldap' から出ます make[1]: *** [all-common] エラー 1 make[1]: ディレクトリ `/work/src/openldap-2.4.16/libraries' から出ます make: *** [all-common] エラー 1 勉強不足で申し訳ありませんが、よろしくお願いします。

  • ソースからmakeをインストール。どうすれば?

    こんばんわ。 ただいま、sparcマシンでサーバを構築している最中ですが、 ソースからmakeをインストールする方法がよくわかりません。 $ wget ftp://sunsite.tus.ac.jp/pub/archives/gnu/make/make-3.80.tar.gz $ tar -xvzf make-3.80.tar.gz $ cd make-3.80 $ ./configure --prefix=/usr/local $ make の後、パッケージ版のmakeをアンインストールする $ su Password:******** # pkgrm SMCmake ところまではうまくいったのですが、 「ソース内にあるmakeを使ってインストールする」という部分がよくわかりません。 どのmakeコマンドを使えばよろしいのでしょうか? findコマンドをみたのですが、思い当たるコマンドはありませんでした。 ご教授のほどお願いします。

  • ソースからプログラムをインストールする一般的な方法をおしえてください。

    ソースファイルをとってきて、解凍して、make,make installとすればいいのでしょうか? それとも解凍したものを/usr/localにコピーしてからmake,make installとするのでしょうか?

  • Apacheのインストール

    相当初心者で申し訳ありませんが、Fedora Core5より 新規でApacheをインストールする事が出来ません。 tar zxvf apache_1.3.36.tar.gz mv apache_1.3.36 httpd cd ./httpd ./configure make make install としたところ、 make[1]: Entering directory '/usr/local/src/httpd' make[2]: Entering directory '/usr/local/src/httpd/src' make[2]: *** ターゲット 'all' を make するルールがありません。中止。 make[2]: Leaving directory 'usr/local/src/httpd/src' make[1]: *** [build-sstd] エラー 2 make[1]: Leaving directory 'usr/local/src/httpd' make: *** [build] エラー 2 というエラーが出てしまいます。 Makefileがおかしくてコンパイルエラーになるのは分かりますが、 何せ初めてLinuxを利用するもので、ネットに転がっていた インストール方法をそのまま試しただけでして、 対処法がさっぱり分かりません。 何をどうすれば良いのでしょうか? 例も挙げて頂けると助かります。 宜しくお願い致します。 因みにファイルのダウンロードからのセットアップに かかる時間を知りたいので、元々インストールされている Apacheのアップグレードとかはナシです。