Bug 51218

Summary: Amanda. Build on 2.x->3.X->4.x fails. Build on 4.x box works.
Product: Ports & Packages Reporter: marc rassbach <marc>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description marc rassbach 2003-04-21 17:50:16 UTC
a make of amanda-server gets this:

Making all in changer-src
gmake[1]: Entering directory `/usr/ports/misc/amanda-server/work/amanda-2.4.4/changer-src'
/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.la ../server-src/libamserver.la ../tape-src/libamtape.la ../common-src/libamanda.la -lm -lreadline -ltermcap -lcam    
cc -O -pipe -o .libs/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  ../server-src/.libs/libamserver.so ../tape-src/.libs/libamtape.so ../common-src/.libs/libamanda.so -lm -lreadline -ltermcap -lcam -Wl,--rpath -Wl,/usr/local/lib
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 708 to 973 in scsi-cam.o
scsi-cam.o: In function `SCSI_CloseDevice':
scsi-cam.o(.text+0x4d8): multiple definition of `SCSI_CloseDevice'
scsi-bsd.o(.text+0x2e0): 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+0x53c): multiple definition of `SCSI_ExecuteCommand'
scsi-bsd.o(.text+0x318): 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+0x6f8): multiple definition of `Tape_Ioctl'
scsi-bsd.o(.text+0x4dc): first defined here
scsi-cam.o: In function `Tape_Status':
scsi-cam.o(.text+0x7a4): multiple definition of `Tape_Status'
scsi-bsd.o(.text+0x588): 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+0x894): multiple definition of `ScanBus'
scsi-bsd.o(.text+0x594): 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.4/changer-src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/misc/amanda-server.

Fix: 

No idea at this time beyond making a new install.
How-To-Repeat: 
Need an old-stale system to reproduce.  New systems lack this issue.
Comment 1 marc rassbach 2003-04-21 18:09:01 UTC
Fixxed via moving /usr/include/sys/scsiio.h  out of the way.

It seems /usr/include/sys/scsiio.h survived the upgrade of 3.x to 4.x
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2003-04-23 16:59:06 UTC
State Changed
From-To: open->closed

Submitters request. Bug was caused by stale header file.