Subject: Re: AfterStep
To: netbsd-amiga <port-amiga@NetBSD.ORG>
From: Georges Heinesch <ghmlist@ibm.net>
List: port-amiga
Date: 04/20/1998 14:40:00
In a message of 18-Apr-98 19:39:11, Ignatios Souvatzis wrote:

>> X11 properly installed.
>> Same goes for xpm-3.4k.
>> I also downloaded the syssrc.tgz file and installed that one.
>> 
>> During the "make" issue of AfterStep, there's an error in the
>> compilation process (during the ascd compilation):
>> 
>> ----- cut here -----
>> plat_freebsd.c:33 /sys/scsi/scsi_all.h: No such file or directory
>> plat_freebsd.c:34 /sys/scsi/scsi_cd.h: No such file or directory
>> ----- cut here -----
>> 
>> /sys/scsi doesn't exist.
>> 
>> However both files (scsi_[all|cd].h were found in:
>> 
>> /usr/include/dev/scsipi
>> /usr/src/sys/dev/scsipi

> Yes, the NetBSD scsi files moved when the SCSI and the ATAPI
> subsystem were unified.

> put this in that plat file...

> #ifdef __NetBSD__
> #include <dev/scsipi/scsi_all.h>
> #include <dev/scsipi/scsi_cd.h>
> #else
> /* what is there now */
> #endif

I tried this now with the latest release (1.4.5.0) and it stops again
at an undefined "audio" structure #?§%&#? !!!

Markus pointed it out already.

----- cut here -----
 Changing from "/sys/dev/scsipi/" to <dev/scsipi>" didnt helped:
gcc -O2 -fno-strength-reduce     -I/usr/X11R6/include -I/include  -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO    -c plat_freebsd.c
In file included from plat_freebsd.c:34:
/usr/include/dev/scsipi/scsi_cd.h:78: field `audio' has incomplete type
plat_freebsd.c: In function `gen_get_trackinfo':
plat_freebsd.c:110: subscripted value is neither array nor pointer
plat_freebsd.c:111: subscripted value is neither array nor pointer
plat_freebsd.c:112: subscripted value is neither array nor pointer
plat_freebsd.c: In function `gen_get_drive_status':
plat_freebsd.c:188: subscripted value is neither array nor pointer
plat_freebsd.c:189: subscripted value is neither array nor pointer
plat_freebsd.c:190: subscripted value is neither array nor pointer
*** Error code 1
----- cut here -----

What now?

> It would be more correct to create a plat_netbsd.c file... but this
> is the quick solution.

... and a working one ... ;((

--
Cu  Georges Heinesch, Luxembourg
    geohei@ibm.net - geohei@geocities.com
    http://www.geocities.com/yosemite/2480
    PGP 2.6.3i / 5.0i public key on request and on public servers

... if you can't beat them, join them !