hns - 日記自動生成システム - Version 2.19.9

先月 2005年10月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2005年10月17日(月) 旧暦 [n年日記] [更新:"2005/10/19 00:25:25"]

#1 [Database] MySQL / Access denied for user

M-x sql-mysql RET username RET password RET Database RET hostname で:
ERROR 1045 (28000): Access denied for user 'username'@'hostname' (using password: YES)
これって何だったっけ ? 単に wrong password ? Emacs からではなく shell から
mysql --host=HOSTNAME --user=USERNAME --password=PASSWORD
では利用可能だ。変だ。Database 違い ?
mysql --host=HOSTNAME --user=USERNAME --password=PASSWORD DATABASE
では確かに
ERROR 1044 (42000): Access denied for user 'USERNAME'@'' to database 'DATABASE' になってしまう (管理者権限が必要だったかな) .. そうでもない。

関係ないが --password=hogehoge という入力は良くない。--password で切って、次に聞かれた時に 入力するようにするのがいい。

元の問題だけれど、 ユーザ参照権 が不充分 ?
ttyp0:makoto@hostname 9:52:39/051017(/var/log)> mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2818 to server version: 4.1.11

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant select on DATABASE.* to MYLOGIN identified by 'PASSWORD';
Query OK, 0 rows affected (0.08 sec)

mysql> 
(この件、相変らず未解決)

#2 [gcc] as: unrecognized option `-mppc'

cross コンパイラを作ろうとしている。 gcc は、 最近、と言っても 3.0 以来かな、 まず仮のコンパイラを作って、その後で、作った仮のコンパイラで、 もう一度自分を作って見て、その作ったものが同じか比較する というようになっている。
  1. stage 1 を作る
  2. stage 1 で stage 2 を作る
  3. stage 2 で stage 3 を作る
  4. stage 2 と stage 3 が同じか比較する
ところが、 クロスの場合 には、このようにして出来た stage 2 は target で動くものだから、stage 2 で stage 3 を作ることは出来ない。 それで、途中で止めて欲しい訳だが、僕がいい加減に試すと、 次のように stage 2 で stage 3 を作ろうとする気がする。
as: unrecognized option `-mppc'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/home/makoto/local-src/gcc-4.0.2-work/gcc'
make: *** [all-gcc] Error 2
何か間違っているかな ? configure と make は次の通り
  135  ../gcc-4.0.2/configure \
       --target=powerpc-gnu-linux \
       --enable-languages=c,c++ \
       --build=i386-gnu-linux \
       --host=i386-gnu-linux
  136  time make
実は binutils は、後から用意しようと思っているが、それがあれば 解決する ? (はずがないと思う)

binutils を作ってからもう一度:

142 cd binutils-2.16.1-work
143 ../binutils-2.16.1/configure --target=powerpc-gnu-linux --build=i386-gnu-linux --host=i386-gnu-linux
144 time make
145 sudo make install
146 cd ../gcc-4.0.2-work/
147 ../gcc-4.0.2/configure --target=powerpc-gnu-linux --enable-languages=c,c++ --build=i386-gnu-linux --host=i386-gnu-linux --with-gnu-as --with-gnu-ld
148 rm -rf *
149 ../gcc-4.0.2/configure --target=powerpc-gnu-linux --enable-languages=c,c++ --build=i386-gnu-linux --host=i386-gnu-linux --with-gnu-as --with-gnu-ld
150 time make
何だか違う問題になっている
../../gcc-4.0.2/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory
../../gcc-4.0.2/gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
from ../../gcc-4.0.2/gcc/gthr.h:114,
include とか lib とかも調整・整備しておいて:
ckup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/usr/local/powerpc-gnu-linux/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/usr/local/powerpc-gnu-linux/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/home/makoto/local-src/gcc-4.0.2-work/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/makoto/local-src/gcc-4.0.2-work/gcc'
make: *** [all-gcc] Error 2



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)