John,

When I do a make I get this:

cat chg-manual.sh > chg-manual
chmod a+x chg-manual
cat chg-multi.sh > chg-multi
chmod a+x chg-multi
cat chg-mtx.sh > chg-mtx
chmod a+x chg-mtx
cat chg-rth.pl > chg-rth
chmod a+x chg-rth
cat chg-chs.sh > chg-chs
chmod a+x chg-chs
cat chg-chio.pl > chg-chio
chmod a+x chg-chio
cat chg-zd-mtx.sh > chg-zd-mtx
chmod a+x chg-zd-mtx

When I do a make chg-scsi, I get the following (some of it may be chopped
off the right):

cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c chg-scsi.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-aix.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-changer-driver.c
cc: Warning: scsi-changer-driver.c, line 728: In the initializer for p, &
before array "ChangerIO" is ignored. (addrarray)
  ChangerCMD_T *p = (ChangerCMD_T *)&ChangerIO;
------------------------------------^
cc: Warning: scsi-changer-driver.c, line 763: In this statement, & before
array "ChangerIO" is ignored. (addrarray)
      p = (ChangerCMD_T *)&ChangerIO;
--------------------------^
cc: Warning: scsi-changer-driver.c, line 878: In this statement, & before
array "SCSICommand" is ignored. (addrarray)
  pSCSICommand = (SC_COM_T *)&SCSICommand;
-----------------------------^
cc: Warning: scsi-changer-driver.c, line 4316: In this statement, & before
array "DecodePages" is ignored. (addrarray)
          p = (struct LogPageDecode *)&DecodePages;
--------------------------------------^
cc: Warning: scsi-changer-driver.c, line 4724: In the initializer for p, &
before array "ChangerIO" is ignored. (addrarray)
  ChangerCMD_T *p = (ChangerCMD_T *)&ChangerIO;
------------------------------------^
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-hpux_new.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-irix.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-linux.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-solaris.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../
tape-src    -g   -c scsi-bsd.c
/usr/bin/sh ../libtool --mode=link cc  -g    -o chg-scsi  chg-scsi.o
scsi-aix.o scsi-changer-driver.o scsi-hpux_new.o scsi-irix.
si-linux.o scsi-solaris.o scsi-bsd.o ../common-src/libamanda.la
../server-src/libamserver.la    ../tape-src/libamtape.la
./common-src/libamanda.la -lm -lreadline -ltermcap
mkdir .libs
cc -g -o chg-scsi chg-scsi.o scsi-aix.o scsi-changer-driver.o
scsi-hpux_new.o scsi-irix.o scsi-linux.o scsi-solaris.o scsi-bsd.o
common-src/.libs/libamanda.a -lm -lreadline -ltermcap
../server-src/.libs/libamserver.a -lm -lreadline -ltermcap ../tape-src/.li
ibamtape.a -lm -lreadline -ltermcap
../common-src/.libs/libamanda.a -lm -lreadline -ltermcap -lm -lreadline -lte
rmcap
ld:
Unresolved:
SCSI_OpenDevice
Tape_Eject
Tape_Status
SCSI_ExecuteCommand
make: *** [chg-scsi] Error 1


I now have an executable program in the changer-src directory called
chg-scsi.  I copied that to the libexec directory, but now I get the
following error:

8409:/usr/lcl/libexec/chg-scsi: /sbin/loader: Fatal Error: Unresolved symbol
in /usr/lcl/libexec/chg-scsi: SCSI_OpenDevice
amtape: could not get changer info: could not read result from
"/usr/lcl/libexec/chg-scsi"

I'm thinking this might have something to do with the unresolves during the
build of chg-scsi.  Is there something special I should set when building
the executable?

Thanks,
Rob


-----Original Message-----
From: John R. Jackson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:19 PM
To: Rob Earl
Cc: Amanda-Users
Subject: Re: chg-scsi


>... when you say "For now, just copy it
>over by hand" what exactly do mean for me to copy?  I looked in the
>changer-src directory and didn't find a chg-scsi script.  ...

Hmmm.  There should have been a file (executable program) named chg-scsi.
What happens if you cd to changer-src and run "make"?  Does it get
created?  How about "make chg-scsi"?

>Rob

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to