[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:001934] install ruby-netcdf on Dec Alpha



竹広です. 

ruby-netcdf をちょっと古い Alpha マシンにいれてみてますが
どうもうまくないようです. コンパイル時に Warining がたくさん
でてますが一応 shared library は作成されます. しかし
make test で Segmentation fault で失敗してしまいます. 
どっかいじれば何とかなりますでしょうか. 以下, log を添付します. 
御助言頂ければありがたいです. 

○コンパイル時のメッセージ

  cc -ieee -g -oldc -std  -I. -I/home04/takepiro/lib/ruby/1.8/alphaev68-osf5.1 -I/
  home04/takepiro/lib/ruby/1.8/alphaev68-osf5.1 -I. -DHAVE_NARRAY_H -DHAVE_NARRAY_
  CONFIG_H -DHAVE_NETCDF_H -I/home04/takepiro/include -I/home04/takepiro/lib/ruby/
  site_ruby/1.8/alphaev68-osf5.1  -c netcdfraw.c
  cc: Warning: netcdfraw.c, line 666: In this statement, the referenced type of th
  e pointer value "ptr" is "char", which is not compatible with "const unsigned ch
  ar" because they differ by signed/unsigned attribute. (ptrmismatch1)
	  status = nc_put_att_uchar(ncid,varid,name,NC_BYTE,len,ptr);
  --------------------------------------------------------------^
  cc: Warning: netcdfraw.c, line 1582: In this statement, the referenced type of t
  he pointer value "attlen" is "unsigned long", which is not compatible with "int"
  . (ptrmismatch)
      Cbyte_to_NArray(NArray,1,attlen,up);
  ----^
  cc: Warning: netcdfraw.c, line 1595: In this statement, the referenced type of t
  he pointer value "attlen" is "unsigned long", which is not compatible with "int"
  . (ptrmismatch)
      Csint_to_NArray(NArray,1,attlen,sp);
  ----^
  .... 以下同じ様なメッセージが続く....


○make test の結果

  home04/takepiro/lib/ruby/site_ruby/1.8/alphaev68-osf5.1/numru/netcdfraw.so: warning: already initialized constant NC_NOWRITE
  /home04/takepiro/lib/ruby/site_ruby/1.8/alphaev68-osf5.1/numru/netcdfraw.so: warning: already initialized constant NC_WRITE
  /home04/takepiro/lib/ruby/site_ruby/1.8/alphaev68-osf5.1/numru/netcdfraw.so: warning: already initialized constant NC_SHARE
  /home04/takepiro/lib/ruby/site_ruby/1.8/alphaev68-osf5.1/numru/netcdfraw.so: warning: already initialized constant NC_CLOBBER
  /home04/takepiro/lib/ruby/site_ruby/1.8/alphaev68-osf5.1/numru/netcdfraw.so: warning: already initialized constant NC_NOCLOBBER
  creating test.nc...
  ../lib/netcdf.rb:531: [BUG] Segmentation fault
  ruby 1.8.1 (2003-12-25) [alphaev68-osf5.1]

  sh: 84245 Abort
  *** Exit 134
  Stop.