Bug 43371

Summary: Amanda fails to build on a 4.7-RC1 server
Product: Ports & Packages Reporter: Kirk Strauser <kirk>
Component: Individual Port(s)Assignee: jeh <jeh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kirk Strauser 2002-09-25 21:00:14 UTC
The misc/amanda-server port will not build on a 4.7-RC server with a recent ports collection.  The build fails in the 'changer-src' directory:

aking all in changer-src
gmake[1]: Entering directory `/usr/ports/misc/amanda-server/work/amanda-2.4.3b4/changer-src'
source='chg-scsi.c' object='chg-scsi.o' libtool=no \
depfile='.deps/chg-scsi.Po' tmpdepfile='.deps/chg-scsi.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f chg-scsi.c || echo './'`chg-scsi.c
source='scsi-aix.c' object='scsi-aix.o' libtool=no \
depfile='.deps/scsi-aix.Po' tmpdepfile='.deps/scsi-aix.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-aix.c || echo './'`scsi-aix.c
source='scsi-changer-driver.c' object='scsi-changer-driver.o' libtool=no \
depfile='.deps/scsi-changer-driver.Po' tmpdepfile='.deps/scsi-changer-driver.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-changer-driver.c || echo './'`scsi-changer-driver.c
source='scsi-hpux_new.c' object='scsi-hpux_new.o' libtool=no \
depfile='.deps/scsi-hpux_new.Po' tmpdepfile='.deps/scsi-hpux_new.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-hpux_new.c || echo './'`scsi-hpux_new.c
source='scsi-irix.c' object='scsi-irix.o' libtool=no \
depfile='.deps/scsi-irix.Po' tmpdepfile='.deps/scsi-irix.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-irix.c || echo './'`scsi-irix.c
source='scsi-linux.c' object='scsi-linux.o' libtool=no \
depfile='.deps/scsi-linux.Po' tmpdepfile='.deps/scsi-linux.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-linux.c || echo './'`scsi-linux.c
source='scsi-solaris.c' object='scsi-solaris.o' libtool=no \
depfile='.deps/scsi-solaris.Po' tmpdepfile='.deps/scsi-solaris.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-solaris.c || echo './'`scsi-solaris.c
source='scsi-bsd.c' object='scsi-bsd.o' libtool=no \
depfile='.deps/scsi-bsd.Po' tmpdepfile='.deps/scsi-bsd.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-bsd.c || echo './'`scsi-bsd.c
source='scsi-cam.c' object='scsi-cam.o' libtool=no \
depfile='.deps/scsi-cam.Po' tmpdepfile='.deps/scsi-cam.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f scsi-cam.c || echo './'`scsi-cam.c
source='sense.c' object='sense.o' libtool=no \
depfile='.deps/sense.Po' tmpdepfile='.deps/sense.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../server-src -I../tape-src    -O -pipe    -c `test -f sense.c || echo './'`sense.c
/bin/sh ../libtool --mode=link cc  -O -pipe      -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 scsi-cam.o sense.o ../common-src/libamanda.a ../server-src/libamserver.a ../tape-src/libamtape.a ../common-src/libamanda.a -lm -lreadline -ltermcap -lcam
mkdir .libs
cc -O -pipe -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 scsi-cam.o sense.o  ../common-src/libamanda.a ../server-src/libamserver.a ../tape-src/libamtape.a ../common-src/libamanda.a -lm -lreadline -ltermcap -lcam
scsi-cam.o: In function `SCSI_OS_Version':
scsi-cam.o(.text+0x0): multiple definition of `SCSI_OS_Version'
scsi-bsd.o(.text+0x0): first defined here
scsi-cam.o: In function `SCSI_OpenDevice':
scsi-cam.o(.text+0x108): multiple definition of `SCSI_OpenDevice'
scsi-bsd.o(.text+0x1c): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `SCSI_OpenDevice' changed from 696 to 945 in scsi-cam.o
scsi-cam.o: In function `SCSI_CloseDevice':
scsi-cam.o(.text+0x4bc): multiple definition of `SCSI_CloseDevice'
scsi-bsd.o(.text+0x2d4): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `SCSI_CloseDevice' changed from 54 to 97 in scsi-cam.o
scsi-cam.o: In function `SCSI_ExecuteCommand':
scsi-cam.o(.text+0x520): multiple definition of `SCSI_ExecuteCommand'
scsi-bsd.o(.text+0x30c): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `SCSI_ExecuteCommand' changed from 451 to 443 in scsi-cam.o
scsi-cam.o: In function `Tape_Ioctl':
scsi-cam.o(.text+0x6dc): multiple definition of `Tape_Ioctl'
scsi-bsd.o(.text+0x4d0): first defined here
scsi-cam.o: In function `Tape_Status':
scsi-cam.o(.text+0x788): multiple definition of `Tape_Status'
scsi-bsd.o(.text+0x57c): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `Tape_Status' changed from 10 to 237 in scsi-cam.o
scsi-cam.o: In function `ScanBus':
scsi-cam.o(.text+0x878): multiple definition of `ScanBus'
scsi-bsd.o(.text+0x588): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `ScanBus' changed from 10 to 537 in scsi-cam.o
gmake[1]: *** [chg-scsi] Error 1
gmake[1]: Leaving directory `/usr/ports/misc/amanda-server/work/amanda-2.4.3b4/changer-src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Fix: 

The problem seems to occur when both scsi-bsd.o and scsi-cam.o are linked in to chg-scsi.  I don't know enough about the system to know which should be included.
How-To-Repeat: cd /usr/ports/misc/amanda-server; make
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-09-26 03:28:06 UTC
Responsible Changed
From-To: freebsd-ports->jeh

over to maintainer
Comment 2 jeh freebsd_committer freebsd_triage 2002-09-26 13:36:55 UTC
State Changed
From-To: open->closed

This is the same problem as PR ports/41774 from last month.  There are 
old headers on the system.