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

[mhc:02323] mhc_pilib.c でエラー



7年ぶりに投稿する澤田です。

最近使っていなかった mhc2ol を再び使おうとしたのですが、
上手くいきません。

Meadow-3.00-dev (KIKU)
mhc 0.25 + snap (CHECKOUT-FROM-CVS)
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
cygwin 1.5.25-15

Win32OLEは、Ruby1.8より標準添付だそうなのでとくに入れていません。

昔の記憶から、
ruby ./configure.rb --kcode=SJIS --bindir=/usr/local/bin --libdir=/lib/ruby/1.8 --with-emacs=meadow --with-lispdir=/usr/home/non/elisp/mhc-current --with-mew --with-icondir=/usr/home/non/elisp/mhc-icons --disable-palm

としたのですが、エラーで止まってしまいました(2ページ)。
色々やって
--with-emacs=meadow
を付けるとエラーになる事は分かりました。
このあとどうすれば良いでしょうか。

;; 昔はどうやって使っていたんだろう。

ruby ./configure.rb

だけにするとエラーは出ないのですが、
mhc/ruby-ext 以下の
 mhc-date.rb
 mhc-gtk.rb
 mhc-kconv.rb
 mhc-palm.rb
 mhc-schedule.rb
 mhc-signal.rb
をコピーしてくれなかったので、/lib/ruby/1.8 に手動installしたところ、
3ページのエラーになりました。

ご教示いただければ幸いです。



mhc$ ruby ./configure.rb --kcode=SJIS --bindir=/usr/local/bin --libdir=/lib/ruby/1.8 --with-emacs=meadow --with-lispdir=/usr/home/non/elisp/mhc-current --with-mew --with-icondir=/usr/home/non/elisp/mhc-icons --disable-palm
Warn: keyword @@MHC_XEMACS_PATH@@ was remiained in emacs/make.rb.
ruby is .. /usr/bin/ruby
creating mhc-sync ...done.
creating mhc2palm ...done.
creating palm2mhc ...done.
creating adb2mhc ...done.
creating gemcal ...done.
creating make.rb ...done.
creating today ...done.
creating emacs/make.rb ...done.
creating ruby-ext/lib/mhc-gtk.rb ...done.
creating ruby-ext/extconf.rb ...done.
creating mhc2ol ...done.
In ruby-ext/
/usr/bin/ruby extconf.rb
creating make.rb
mhc$ ./make.rb
Making  in /usr/home/non/archives/src/mhc/emacs
ruby make.rb
meadow -batch -q -no-site-file -l MHC-MK -f make-mhc-compile  --with-lispdir=/usr/home/non/elisp/mhc-current --with-mew
Loading subst-ksc...
Loading subst-gb2312...
Loading subst-big5...
Loading subst-jis...
Making  in /usr/home/non/archives/src/mhc/ruby-ext
ruby make.rb
make
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I.  -g -O2    -I/usr/local/include  -DNEW_NAMING   -c ext-helper.c
ext-helper.c: In function `IS_CLASS_OF':
ext-helper.c:30: warning: initialization discards qualifiers from pointer target type
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I.  -g -O2    -I/usr/local/include  -DNEW_NAMING   -c mhc_pilib.c
mhc_pilib.c: In function `rpi_sock_open':
mhc_pilib.c:41: warning: passing arg 2 of `pi_bind' from incompatible pointer type
mhc_pilib.c:41: error: too few arguments to function `pi_bind'
mhc_pilib.c: In function `rdlp_ReadAppBlock':
mhc_pilib.c:173: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:173: error: (Each undeclared identifier is reported only once
mhc_pilib.c:173: error: for each function it appears in.)
mhc_pilib.c:173: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:179: warning: passing arg 4 of `dlp_ReadAppBlock' makes pointer from integer without a cast
mhc_pilib.c: In function `rdlp_ReadRecordByIndex':
mhc_pilib.c:206: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:206: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:213: error: too few arguments to function `dlp_ReadRecordByIndex'
mhc_pilib.c: In function `rdlp_ReadRecordById':
mhc_pilib.c:240: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:240: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:248: error: too few arguments to function `dlp_ReadRecordById'
mhc_pilib.c: In function `rdlp_WriteRecord':
mhc_pilib.c:277: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:277: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:296: error: `datebook_v1' undeclared (first use in this function)
mhc_pilib.c: In function `rpack_Appointment':
mhc_pilib.c:368: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:368: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:392: error: `datebook_v1' undeclared (first use in this function)
mhc_pilib.c: In function `runpack_Appointment':
mhc_pilib.c:406: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:406: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:417: error: `datebook_v1' undeclared (first use in this function)
mhc_pilib.c: In function `rpack_Address':
mhc_pilib.c:456: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:456: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:468: error: `address_v1' undeclared (first use in this function)
mhc_pilib.c: In function `runpack_Address':
mhc_pilib.c:481: error: `pi_buffer_t' undeclared (first use in this function)
mhc_pilib.c:481: error: `buffer' undeclared (first use in this function)
mhc_pilib.c:491: error: `address_v1' undeclared (first use in this function)
make: *** [mhc_pilib.o] Error 1
mhc$ 



mhc$ which mhc2ol
/usr/local/bin/mhc2ol
mhc$ mhc2ol -i
deleting appointments in Outlook........ done.
deleting tasks in Outlook... done.
...../usr/local/bin/mhc2ol:162:in `handle_recurrence': undefined method `+' for nil:NilClass (NoMethodError)
	from /usr/local/bin/mhc2ol:507:in `setup_ol_appointments'
	from /usr/local/bin/mhc2ol:453:in `each'
	from /usr/local/bin/mhc2ol:453:in `setup_ol_appointments'
	from /usr/local/bin/mhc2ol:642:in `send_to_outlook'
	from /usr/local/bin/mhc2ol:664:in `export'
	from /usr/lib/ruby/1.8/mhc-schedule.rb:1213:in `each_sch'
	from /usr/lib/ruby/1.8/mhc-schedule.rb:1211:in `each'
	from /usr/lib/ruby/1.8/mhc-schedule.rb:1211:in `each_sch'
	from /usr/lib/ruby/1.8/mhc-schedule.rb:1210:in `each'
	from /usr/lib/ruby/1.8/mhc-schedule.rb:1210:in `each_sch'
	from /usr/local/bin/mhc2ol:652:in `export'
	from /usr/local/bin/mhc2ol:886
mhc$ 



--
  の@会社		non@xxxxxxxxxxxx