トップ «前の日記(2004年02月03日) 最新 次の日記(2004年02月06日)» 編集
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|10|12|
2009|02|03|06|07|10|11|12|
2010|01|02|03|04|07|09|10|11|12|
2011|01|03|04|05|06|07|08|10|
2012|01|06|08|09|10|12|
2013|01|02|03|04|07|09|11|12|
2014|01|03|04|05|06|09|
2015|04|
2016|01|08|
ここは旧えびめもです。えびめも2に移行します(2016/12/1)

2004年02月05日 曇りのち雪

CAT709

I/O DATA の 802.11b無線LANカード を使ってみる。
認識させるために /etc/pcmcia/config ファイルに
card "IO DATA WNB11CF"
  version "IO DATA","WNB11CF"
  bind "orinoco_cs"
エントリーを追加して cardmgr を実行する。うん。認識した。
続いて
# iwconfig eth1
eth1      IEEE 802.11-DS  ESSID:""  Nickname:"Prism  I"
          Mode:Managed  Access Point: 00:00:00:00:00:00  Bit Rate:11Mb/s
          Tx-Power=15 dBm   Sensitivity:1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0/92  Signal level:-68 dBm  Noise level:-122 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
# iwconfig eth1 key "s:パスワード"
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device eth1 ; Operation not supported.
うーん。おかしい。keyの設定が出来ない。これは kernel-2.4.21の orinoco_cs のバージョンが古いからかな?

ノートPCのkernel-2.4.21で試してみると、同じエラーだった。じゃぁせっかくなので2.4.24へのVerUpを試みることにする。

追記 2.4.24 (i386)でもダメ

CAT709

sh3-linux-g++ でのクロスコンパイルが出来ない
#include 
int main()
{
  cout << "hello world\n";
}
ちなみに sh3機でセルフコンパイルならok。
$ sh3-linux-g++ -v hello.cc
Reading specs from /usr/lib/gcc-lib/sh3-linux/3.0.3/specs
Configured with: ../src/configure --build=i386-linux --host=i386-linux --target=sh3-linux --enable-languages=c++ --prefix=/usr --infodir=${prefix}/share/info --mandir=${prefix}/share/
man --with-gnu-as --with-gnu-ld --with-system-zlib --disable-nls --without-included-gettext --disable-checking --disable-cpp --enable-c99 --enable-long-long --enable-shared --enable-t
hreads=posix --with-gxx-include-dir=${prefix}/sh3-linux/include/g++-v3
Thread model: posix
gcc version 3.0.3
 /usr/lib/gcc-lib/sh3-linux/3.0.3/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -D__ELF__ -Dunix -D__sh__ -Dlinux -D__ELF__ -D__unix__ -D__sh__ -D__linux__ -D__un
ix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__LITTLE_ENDIAN__ -D__SH3__ -D__sh3__ hello.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100
 -musermode -ml -m3 -quiet -dumpbase hello.cc -version -musermode -ml -m3 -o /tmp/ccRTqkTw.s
GNU CPP version 3.0.3 (cpplib) (SH3 GNU/Linux with ELF)
GNU C++ version 3.0.3 (sh3-linux)
        compiled by GNU C version 2.95.4  (Debian prerelease).
ignoring nonexistent directory "/usr/sh3-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/sh3-linux/include/g++-v3
 /usr/sh3-linux/include/g++-v3/sh3-linux
 /usr/sh3-linux/include/g++-v3/backward
 /usr/lib/gcc-lib/sh3-linux/3.0.3/include
 /usr/sh3-linux/include
End of search list.
In file included from /usr/sh3-linux/include/g++-v3/cstdio:31,
                 from /usr/sh3-linux/include/g++-v3/sh3-linux/bits/c++io.h:35,
                 from /usr/sh3-linux/include/g++-v3/bits/fpos.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iosfwd.h:41,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ios.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ostream.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iostream.h:40,
                 from /usr/sh3-linux/include/g++-v3/backward/iostream.h:32,
                 from hello.cc:1:
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:146: `vscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:148: `vsscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:154: `vfscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:155: `vscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdio.h:157: `vsscanf' not declared
In file included from /usr/sh3-linux/include/g++-v3/bits/fpos.h:40,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iosfwd.h:41,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ios.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ostream.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iostream.h:40,
                 from /usr/sh3-linux/include/g++-v3/backward/iostream.h:32,
                 from hello.cc:1:
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:131: `fwide' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:132: `fwprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:133: `fwscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:142: `swprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:143: `swscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:145: `vfwprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:146: `vfwscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:147: `vswprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:148: `vswscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:149: `vwprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:150: `vwscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:165: `wcstof' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:175: `wprintf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:176: `wscanf' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:217: `wcstold' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:218: `wcstoll' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:219: `wcstoull' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:224: `wcstold' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:225: `wcstoll' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cwchar.h:226: `wcstoull' not declared
In file included from /usr/sh3-linux/include/g++-v3/bits/stl_algobase.h:73,
                 from /usr/sh3-linux/include/g++-v3/bits/std_memory.h:49,
                 from /usr/sh3-linux/include/g++-v3/bits/std_string.h:43,
                 from /usr/sh3-linux/include/g++-v3/bits/localefwd.h:42,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ios.h:43,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ostream.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iostream.h:40,
                 from /usr/sh3-linux/include/g++-v3/backward/iostream.h:32,
                 from hello.cc:1:
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:127: `lldiv_t' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:128: `_Exit' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:137: syntax error before `('
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:138: syntax error before `.'
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:138: syntax error before `.'
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:141: syntax error before `('
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:142: syntax error before `.'
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:142: syntax error before `.'
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:145: `strtof' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:148: `strtold' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:149: parse error before `}'
   token
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:153: `lldiv_t' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:154: `_Exit' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:157: `div' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:158: `lldiv' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:159: `atoll' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:160: `strtof' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:161: `strtoll' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:162: `strtoull' not declared
/usr/sh3-linux/include/g++-v3/bits/std_cstdlib.h:163: `strtold' not declared
In file included from /usr/sh3-linux/include/g++-v3/bits/locale_facets.h:45,
                 from /usr/sh3-linux/include/g++-v3/bits/basic_ios.h:36,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ios.h:46,
                 from /usr/sh3-linux/include/g++-v3/bits/std_ostream.h:39,
                 from /usr/sh3-linux/include/g++-v3/bits/std_iostream.h:40,
                 from /usr/sh3-linux/include/g++-v3/backward/iostream.h:32,
                 from hello.cc:1:
/usr/sh3-linux/include/g++-v3/bits/std_cwctype.h:70: `iswblank' not declared
ここにdebian bug report 発見
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=107633