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

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

2006年07月24日(月) 旧暦 [n年日記] [更新:"2006/07/24 17:36:44"]

#1 [NetBSD][pkgsrc] 3.99.21 三台目

機種PowerMac G4/400
CPU1.2GHz7455 (Revision 303)
disk wd010GIBM-DTTA-371010
disk wd180GWDC WD800BB-00CAA1
ifconfig gm0
media auto-select通信出来ない。
media 100BaseTX-FDX通信出来るが Full dup のランプが付かない
OF の時には Full dup のランプは付いている ....
  1. multi-user の時に
    cp netbsd-GENERIC_MD.gz /20060702.gz 
    
    のように用意しておいて boot ultra1,ofwboot.elf hd:10/20060702.gz
  2. (sysinst で) Install。全て区画をやり直し。 この時に HFS 区画も作る。(.. 作れるんだ)。
  3. しかし、何故か通信出来ずに、そのまま消えてしまった (autoselect が使えないなどととは想像出来なかった)
  4. 実は、この時点であわてて CDROM を作る
  5. boot cd:,ofwboot.elf で sysinst から入直し。今度は Use existing partition。
  6. pdisk が空っぽのため、起動出来ず
  7. pdisk /dev/wd0c で起動して disklabel wd0 を見ながら手動で区画を作る
  8. boot cd:,ofwboot.elf hd:3/netbsd で起動

pkg_add config-serv:

これは何かな
pkg_add: Where did our dependency go?!
getty[169]: /dev/ttyE0: Device not configured
こう言われるのは何の話か、良く教えてもらっている気がするが、 思い出せない。

ofwboot.elf を写す:

ttyZ0:root@st4200  10:52:50/060724(/cdrom)# disklabel wd0
     (omitted)
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1023120      9072     4.2BSD   1024  8192 46512  # (Cyl.      9 -   1023)
 b:   2040192   1032192       swap                     # (Cyl.   1024 -   3047)
 c:  19746720         0     unused      0     0        # (Cyl.      0 -  19589)
 d:   8201088   3072384     4.2BSD   1024  8192 46600  # (Cyl.   3048 -  11183)
 e:      9009        63        HFS                     # (Cyl.      0*-      8)
 f:   8191008  11273472     4.2BSD   1024  8192 46544  # (Cyl.  11184 -  19309)
ttyZ0:root@st4200  10:52:55/060724(/cdrom)# hformat /dev/wd0e
Volume name is "Untitled"
Volume was created on Mon Jul 24 10:53:03 2006
Volume was last modified on Mon Jul 24 10:53:03 2006
Volume has 4536832 bytes free
ttyZ0:root@st4200  10:53:03/060724(/cdrom)# hmount /dev/wd0e
Volume name is "Untitled"
Volume was created on Mon Jul 24 10:53:03 2006
Volume was last modified on Mon Jul 24 10:53:03 2006
Volume has 4536832 bytes free
ttyZ0:root@st4200  10:53:09/060724(/cdrom)# hcopy ofwboot.elf :
二台目には次の link があるが、これが出来ていない。なくてもいいかな ?
lrwxr-xr-x 1 root wheel 22 Jul 22 10:36 /usr/pkg/bin/mkfontdir@ -> /usr/X11/bin/mkfontdir

samba Unsupported relocation type 6 in non-PLT relocations:

ttypf:makoto@mini 14:13:30/060724(~)> sudo /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations

Starting smbd.
/usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations

ttypf:makoto@mini 14:13:37/060724(~)> 
If you look the src, binutils-2.16/include/elf/ppc.h:
  RELOC_NUMBER (R_PPC_ADDR16,		  3)
  RELOC_NUMBER (R_PPC_ADDR16_LO,	  4)
  RELOC_NUMBER (R_PPC_ADDR16_HI,	  5)
  RELOC_NUMBER (R_PPC_ADDR16_HA,	  6)
  
  RELOC_NUMBER (R_PPC_GOT16,		 14)
  RELOC_NUMBER (R_PPC_GOT16_LO,		 15)
  RELOC_NUMBER (R_PPC_GOT16_HI,		 16)
  RELOC_NUMBER (R_PPC_GOT16_HA,		 17)
This is the number we are seeing now:
ttypf:makoto@mini 15:05:42/060724(...work/samba-3.0.22)> objdump -R /usr/pkg/sbin/smbd | grep ADDR16
002b1a3e R_PPC_ADDR16_HA   .rodata+0x00325c10
002b1a46 R_PPC_ADDR16_LO   .rodata+0x00325c10
002b1a8e R_PPC_ADDR16_HA   .rodata+0x00304d54
002b1a92 R_PPC_ADDR16_HA   .rodata+0x00304d58
002b1a96 R_PPC_ADDR16_LO   .rodata+0x00304d54
002b1a9a R_PPC_ADDR16_LO   .rodata+0x00304d58
002b1aca R_PPC_ADDR16_HA   .rodata+0x00325c18
002b1ace R_PPC_ADDR16_LO   .rodata+0x00304d58
002b1ad6 R_PPC_ADDR16_HA   .rodata+0x002bfddc
002b1ade R_PPC_ADDR16_LO   .rodata+0x002bfddc
Probably, this (Reloc 6) should not appear.

-fPIC or -fpic is missing somewhere ? objdump -d /usr/pkg/sbin/smbd | grep ^00

002b0c74 <__udivdi3>:
002b10f0 <__moddi3>:
002b15c0 <__divdi3>:
002b1a3c <__fixdfdi>:
002b1a8c <__fixunsdfdi>:
find . -name \*.o | awk '{print "echo " $0 "; nm ", $0" | grep fixdfdi"}' | sh
./libsmb/libsmbclient.o
U __fixdfdi

lang/gcc3-c:

/bin/tcsh ./genfixes machname.h
SHELL=/bin/sh: Command not found.
export: Command not found.
if: Expression Syntax.
gmake[2]: *** [machname.h] Error 1
gmake[2]: Leaving directory `/export/pkgsrc/lang/gcc3-c/work/gcc-3.3.5/gcc/fixinc'
gmake[1]: *** [fixinc.sh] Error 2
unsetenv SHELL
env PATH=/usr/pkg/gcc3/bin:${PATH} make
...
Compiling lib/time.c
lib/time.c: In function `GetTimeOfDay':
lib/time.c:66: error: too few arguments to function `gettimeofday'
*** Error code 1
void GetTimeOfDay(struct timeval *tval)
{
#if 1 
	gettimeofday(tval,NULL);
#else
	gettimeofday(tval);
#endif
}
with gcc-3.3.5,
ttypf:makoto@mini 16:13:18/060724(...net/samba)> sudo /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/gcc3/lib/libgcc_s.so.1: Unsupported relocation type 10 in non-PLT relocations
in the log, we have the line
Compiling libsmb/libsmbclient.c with -fPIC -DPIC

gcc-3.3.6 with tsubai patch:

gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include ../../gcc-3.3.6/gcc/f/com.c -o f/com.o
../../gcc-3.3.6/gcc/f/com.c:11080: error: conflicting types for 'ffecom_gfrt_basictype'
../../gcc-3.3.6/gcc/f/com.h:236: error: previous declaration of 'ffecom_gfrt_basictype' was here
*** Error code 1
--- gcc-3.3.6/gcc/f/com.c~      2004-01-01 13:44:56.000000000 +0900
+++ gcc-3.3.6/gcc/f/com.c       2006-07-24 16:34:26.000000000 +0900
@@ -11075,7 +11075,7 @@
   return decl;
 }
 
-ffeinfoBasictype
+ffeinfoKindtype 
 ffecom_gfrt_basictype (ffecomGfrt gfrt)
 {
   assert (gfrt < FFECOM_gfrt);
../../gcc-3.3.6/gcc/java/gjavah.c:49: error: static declaration of 'flag_jni' follows non-static declaration
--- gcc-3.3.6/gcc/java/gjavah.c~        2003-03-29 07:18:48.000000000 +0900
+++ gcc-3.3.6/gcc/java/gjavah.c 2006-07-24 16:43:16.000000000 +0900
@@ -46,7 +46,7 @@
 static int found_error = 0;
 
 /* Nonzero if we're generating JNI output.  */
-static int flag_jni = 0;
+           flag_jni = 0;  // see java-tree.h line 170, or different variable ?
 
 /* When nonzero, warn when source file is newer than matching class
    file.  */
ttyq5:makoto@mini 16:43:19/060724(/export/local-src)> 
Making all in testsuite

/export/local-src/gcc-3.3.6-work/powerpc-unknown-netbsd3.99.21/soft-float/libstdc++-v3/include/bits/stl_alloc.h:652: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[in-charge](char const*, std::allocator<char> const&)'

sudo pkg_add samba-3.0.21a.tgz:

Using old package for 3.99.15
ttypf:makoto@mini 17:17:33/060724(...packages/All)> sudo pkg_add samba-3.0.21a.tgz
pkg_add: Warning: package `/cdrom/packages/All/./samba-3.0.21a.tgz' was built for a different version of the OS:
pkg_add: NetBSD/powerpc 3.99.15 (pkg) vs. NetBSD/powerpc 3.99.21 (this host)



最近の日記
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
2024年03月10日
停電 (瞬電)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)