naarisan@onakahetta:~[135]% uname -a SunOS onakahetta 5.8 Generic_108529-12 i86pc i386 i86pc naarisan@onakahetta:~[136]% gcc -v Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/3.0/specs Configured with: configure --enable-threads --enable-libgcj --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld Thread model: posix gcc version 3.0 naarisan@onakahetta:~[137]% as --version GNU assembler 2.11.2 Copyright 2001 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `i386-pc-solaris2.8'. naarisan@onakahetta:~[138]% ld --version GNU ld 2.11.2 Copyright 2001 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Supported emulations: elf_i386
これは、問題なく通りました。 しかし、 次に同じディレクトリで、 make すると、 # make cd ./lib-src && make CC='gcc' CFLAGS='-g -O3 -Wall -Wno-switch' LDFLAGS='' CPPFLAGS='' all make: Fatal error in reader: Makefile, line 40: Unexpected end of line seen Current working directory /export/home/user/tmp/xemacs-21.1.9/lib-src *** Error code 1 make: Fatal error: Command failed for target `lib-src' とエラーがでます。
そこで、 #cd lib-src;make しても、 make: Fatal error in reader: Makefile, line 40: Unexpected end of line seen となります。 助けてください!
>>136 さん ありがとうございます。 Gnu makeはgccとはまた違うのですね。 今、FreewareSolarisでパッケージ を調べたところ、 make-3.79.1-sol8-sparc-local.gz The GNU version of make - installs in /usr/local. Note that a make program is included in Solaris 8 and therefore you may try it first before you install this package. とありました。 つまり、最初っからSolaris8で入っているということですよね。 ということは、僕はGnumakeをインストールする必要がなくて、 その使い方をしったほうがいいと思うのですが、 ふつうのmakeとGnumakeってどうやって使い分けたらいいのでしょうか? お願いします。
>>137 > つまり、最初っからSolaris8で入っているということですよね。 違う。その文の意味は GNU make が最初に入ってるということではなく GNU のものではない make が入っている。 GNU make を使うにはインストールする必要がある。
> ふつうのmakeとGnumakeってどうやって使い分けたらいいのでしょうか? 君が freewaresolaris で取得した GNU make をインストールすると /usr/local/bin/ 以下に make が入る。 純正のものはそれ以外(おそらく /usr/ccs/bin/)のディレクトリに入っている。 なので path で切り替えればよい。 というかその前にじっくり UNIX や Solaris について勉強した方がよい。 Solaris を扱っている日本語の書籍も web ページも沢山あるのだから。
139 :名無しさん@お腹いっぱい。 :01/11/30 23:33
135です。 Freewaresolarisからmakeを落としてきてpkgaddしました。 実は僕はsendmailの質問もしていた厨房ですが、 xemacsのmakeにおいてもmakeしよ/うとすると、 usr/ccs/bin/as: "/var/tmp/ccDhWtjs.s", line 5147: error: unknown opcode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccDhWtjs.s", line 5147: error: statement syntax /usr/ccs/bin/as: "/var/tmp/ccDhWtjs.s", line 5236: error: unknown opcode ".previous" /usr/ccs/bin/as: "/var/tmp/ccDhWtjs.s", line 5236: error: statement syntax といったメッセージが続出して、 先ほどと同じくasがおかしいみたいです。