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

先月 2010年04月 来月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年04月28日(水) 旧暦 [n年日記] [更新:"2010/04/29 15:37:19"]

#1 [comp] ssh -o XauthLocation=/usr/pkg/bin/xauth の謎

ssh 元NetBSD/amd645.0_STABLEOpenSSL 0.9.9-dev
ssh 先NetBSD/i3865.0_STABLEOpenSSL 0.9.9-dev
以前に nork さんと hrs さんに ssh についていろいろ教わった。 それまでは、「ssh -X がどうもうまく行かない」状態だった。 今回は、どうやれば良いかを再確認した。 条件としては、 NetBSD/amd64 5.0_STABLE で動いている X11 の画面から NetBSD/i386 5.0_STABLE に ssh で入り、その中で X11 の用途別(application) を立上げる、という場合の話。
出発の ssh も、受けの sshd も同じ版
OpenSSH_5.0 NetBSD_Secure_Shell-20080403, OpenSSL 0.9.9-dev 09 May 2008
また受け側の sshd では /etc/ssh/sshd_config を次のように変更している
-#X11Forwarding no
+X11Forwarding yes
 # If you use xorg from pkgsrc then uncomment the following line.
-#XAuthLocation /usr/pkg/bin/xauth
+XAuthLocation /usr/pkg/bin/xauth
元の X11 は modular-xorg, 起動は xdm。また二つの機械は home directory を共有している。

ssh -v -X hostname:

debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.

ssh -v -X -o XauthLocation=/usr/pkg/bin/xauth hostname:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.

ssh -v -Y hostname:

debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.

ssh -v -Y -o XauthLocation=/usr/pkg/bin/xauth hostname これならうまく行く:

あるいは
ssh    -Y -o XauthLocation=/usr/pkg/bin/xauth hostname
だと大丈夫

まとめ

  • -X でなく -Y が必要
  • ssh 先の /etc/ssh/sshd_config に
    XAuthLocation /usr/pkg/bin/xauth
    
    と書いてあっても、 ssh 元の方で、 これを上書きする設定を送っているらしく、 効かないので、元の方で次の選択を付けておく
    -o XauthLocation=/usr/pkg/bin/xauth
    
  • 前項の、「これを上書きする設定」は /etc/ssh/ssh_config で設定可能で、その中を次のようにすると
    47  # If you use xorg from pkgsrc then uncomment the following line.
    48      XAuthLocation /usr/pkg/bin/xauth
    
    次のように指定無で行ける
    ssh -Y hostname
    

#2 [cad] pinapa と gcc の版

pinapa は gcc-3.4.1 だと一応コンパイルが通る (まだこまかいところで make は完了していないが gcc 的問題は通過している) それを gcc-4.1.3 で試して見ると、次のようになる。 これは gcc-3.4.1 ならコンパイル出来るのに gcc-4.1.3 では不可ということである
g++ -I. -I. -I../../../../src/sysc/tracing -I../../../../src -Wall -DSC_INCLUDE_FX -O3 -c -o sc_vcd_trace.o `test -f '../../../../src/sysc/tracing/sc_vcd_trace.cpp' || echo '../../../../src/sysc/tracing/'`../../../../src/sysc/tracing/sc_vcd_trace.cpp
../../../../src/sysc/datatypes/misc/sc_value_base.h:58: warning: 'class sc_dt::sc_value_base' has virtual functions but non-virtual destructor
../../../../src/sysc/datatypes/fx/sc_context.h: In static member function 'static void* sc_dt::sc_context<T>::operator new(size_t)':
../../../../src/sysc/datatypes/fx/sc_context.h:230: warning: no return statement in function returning non-void
../../../../src/sysc/datatypes/fx/scfx_rep.h: In function 'sc_dt::scfx_rep* sc_dt::mult_scfx_rep(const sc_dt::scfx_rep&, const sc_dt::scfx_rep&, int)':
../../../../src/sysc/datatypes/fx/scfx_rep.h:347: error: 'multiply' is not a member of 'sc_dt'
../../../../src/sysc/datatypes/fx/sc_fxval.h: In function 'const sc_dt::sc_fxval sc_dt::operator+(const sc_dt::sc_fxval&, const sc_dt::sc_fxval&)':
../../../../src/sysc/datatypes/fx/sc_fxval.h:957: error: 'add_scfx_rep' is not a member of 'sc_dt'
もっとも、良く見ると、これは SystemC-2.1v1 を読んでいる部分で、これは 2.2.0 も出ているので、直そうとするのは、その辺を確めた後の方が良い。 「こまかいところ」の方を先に解決すべき。



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)