FreeBSD QandA 1621

FreeBSD QandA

Q. FreeBSD 4.0-RELEASE で xmcd-2.6 を ports からインストールしたのですが、
   no disc と言われて CD が再生できません。また、-debug オプションをつけて
   起動すると、
     SCSI CDB bytes (dev=/dev/rcd0c rw=0 to=20):
     0000    00 00 00 00 00 00 -- --  -- -- -- ..............
     SCIOCCOMMAND ioctl failed: Inappropriate ioctl for device
   というメッセージが出力されます。

A. おそらく、お使いの imake のバージョンが古いことが原因です。
     <URL:http://www.jp.FreeBSD.org/cgi/cvsweb.cgi/ports/audio/xmcd/Makefile?lang=ja>
   に、以下のような記述があります。

     -- ここから --
     1.25 Wed Feb 23 3:40:29 2000 UTC by deischen
     CVS Tags: RELEASE_4_0_0
     Diffs to 1.24

     Upgrade to latest release (xmcd-2.6).

     This still fails to build correctly on -current since the /usr/libexec/cpp
     fiasco -- old versions of imake still use /usr/libexec/cpp instead of
     gcc -E.  If you don't have a fixed version of imake, a quick fix to get
     around this is to set IMAKECPP=/usr/bin/cpp in your environment before
     make'ing this port.

     Note that the port builds without errors if you don't have the correct
     version of imake, but FREEBSD_CAM will not be defined and xmcd will use
     the ioctl method which hasn't worked since 3.0.
     -- ここまで --

   新しい imake を入れるか、
     $ IMAKECPP=/usr/bin/cpp make
   として make して下さい。

   FreeBSD 4.1-RELEASE 以降では、この問題は起こらないはずです。

間違い・追加情報を見付けた場合は、 修正案の投稿のしかた を読んだ上で、
QandA@jp.FreeBSD.org まで お知らせください。