I am getting this also.  I am using gcc-2.95.2 on amanda-2.5.0 on 
Solaris 7:

make[1]: Entering directory `/nj/adm/src/amanda/changer-src'
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c chg-scsi.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-aix.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-changer-
driver.c
scsi-changer-driver.c:172: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:185: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:197: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:209: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:222: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:235: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:247: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:260: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:272: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:284: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:297: warning: initialization from incompatible 
pointer type
scsi-changer-driver.c:310: warning: initialization from incompatible 
pointer type
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
hpux_new.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-irix.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-linux.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64       -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-solaris.c
scsi-solaris.c: In function `SCSI_OpenDevice':
scsi-solaris.c:53: invalid type argument of `->'
scsi-solaris.c:76: `DeviceName' undeclared (first use in this 
function)
scsi-solaris.c:76: (Each undeclared identifier is reported only once
scsi-solaris.c:76: for each function it appears in.)
scsi-solaris.c: In function `Tape_Eject':
scsi-solaris.c:181: subscripted value is neither array nor pointer
make[1]: *** [scsi-solaris.o] Error 1
make[1]: Leaving directory `/nj/adm/src/amanda/changer-src'
make: *** [all-recursive] Error 1
vector.365:/nj/adm/src/amanda# 


--- In [EMAIL PROTECTED], Joi Ellis <[EMAIL PROTECTED]> wrote:
> Patrick LIN wrote:
> > 
> > Nobody answer my two first mail.....
> > is it because nobody can answer or my question is Stupid (never 
know).
> > 
> > i can compil the beta version on this same machine without any 
problem
> > 
> > i have problem to compil amanda last CVS version on solaris 2.6
> > i use gcc : egcs-2.91.66
> > the machine is a E220R
> 
> You didn't mention which amanda module/tag you downloaded.  If you 
got
> 2.5, you may be hitting compile issues due to the alpha status of 
that
> branch.  If that's the case, I'd try a more stable version.
> 
> I downloaded the amanda-242-branch and built that on my linux box.
> I believe it builds okay on solaris 2.6 but I can't swear I've 
built 
> that version myself here (yet.)
> 
> The first version of amanda I installed on my Solaris boxes was the
> pre-built package from www.sunfreeware.com.  I avoid Linux rpms of
> amanda, but the Solaris package seemed to make good default 
> configuration choices for my network.  (If one has no C compiler
> on one's Solaris boxes, this may be one's best choice...)
> 
> The instructions I used can be found at:
>   http://amanda.sourceforge.net/cgi-bin/fom?file=156
> 
> I'm not a Solaris developer so I can't really attempt to answer
> your compile question.  That's why I didn't answer myself earlier.
> 
> 
> > 
> > my configure line :
> > 
> > ./configure --sysconfdir=/etc/Configuration/Amanda
> > --with-configdir=/etc/Configuration/Amanda/Conf --with-user=amanda
> > --with-group=amanda --with-config=MainSet --with-index-
server=spoon
> > --with-tape-device=/dev/rmt/0mn --with-changer-
device=/dev/rmt/sst0
> > --with-gnutar
> > 
> > and th error :
> > 
> > Making all in changer-src
> > make[1]: Entering directory `/Amanda/amanda/changer-src'
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c chg-
scsi.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
aix.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c
> > scsi-changer-driver.c
> > scsi-changer-driver.c:172: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:185: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:197: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:209: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:222: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:235: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:247: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:260: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:272: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:284: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:297: warning: initialization from 
incompatible
> > pointer type
> > scsi-changer-driver.c:310: warning: initialization from 
incompatible
> > pointer type
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
hpux_new.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
irix.cgcc
> > -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-
src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
linux.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -
I../server-src
> > -I../tape-src  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2     -c scsi-
solaris.c
> > scsi-solaris.c: In function `SCSI_OpenDevice':
> > scsi-solaris.c:53: invalid type argument of `->'
> > scsi-solaris.c:76: `DeviceName' undeclared (first use in this 
function)
> > scsi-solaris.c:76: (Each undeclared identifier is reported only 
once
> > scsi-solaris.c:76: for each function it appears in.)
> > scsi-solaris.c: In function `Tape_Eject':
> > scsi-solaris.c:181: subscripted value is neither array nor pointer
> > make[1]: *** [scsi-solaris.o] Error 1
> > make[1]: Leaving directory `/Amanda/amanda/changer-src'
> > make: *** [all-recursive] Error 1
> > 
> > thanks
> > 
> > Any help ?
> > 
> > patrick
> 
> -- 
> --------------------------------------------------------------------
----
> 
> 
> 
> --
> Joi Ellis                    Software Engineer
> Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]
> 
> No matter what we think of Linux versus FreeBSD, etc., the one 
thing I
> really like about Linux is that it has Microsoft worried.  Anything
> that kicks a monopoly in the pants has got to be good for something.
>            - Chris Johnson


-- 
Ernest A. Oporto, Systems Administrator
Virage Logic Corporation
http://www.viragelogic.com
Perryville Corporate Park, Bldg 3, Clinton, NJ 08809
Phone:(908)735-1932   Fax:(908)735-1999
mailto:[EMAIL PROTECTED] 
BEGIN:VCARD
VERSION:2.1
N:Oporto;Ernie
FN:Ernie Oporto
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20000209T194835Z
END:VCARD

Reply via email to