Subject: Re: dptutil on -current, i386
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Herb Peyerl <hpeyerl@beer.org>
List: current-users
Date: 11/17/2003 13:19:18
Manuel Bouyer <bouyer@antioche.eu.org> wrote:
> > My old binary and the latest pkg binary from nbftp fail like so:
> >
> > Undefined symbol "__vt_7istream$3ios" referenced from COPY relocation in sbin/dptutil
>
> Looks like and old vs new g++ issue.
>
> Does it use gcc or g++ for linking ?
> It should use g++, but I've seen several packages failing this way (use g++ to
> compile and gcc to link, which doens't work with gcc3)
it uses g++.
g++ -v -o raidutil alarm.o bufiolsb.o cmdlist.o command.o config.o creatrad.o ctlr_map.o deletrad.o dpt_buff.o dptalign.o dynsize.o engcalls.o engiface.o engmsg.o eventlog.o expand.o findpath.o flash.o flashmem.o forcest.o hba_log.o id_list.o intlist.o listdev.o lockunix.o lzssdon.o lzstrbuf.o modnvram.o namarray.o nvrambit.o parsargv.o parser.o parserr.o raidutil.o rawdata.o rdutlosd.o rmwflash.o rstnvram.o scsi_log.o scsilist.o setcache.o setrate.o setspeed.o showinq.o status.o strlist.o swap_em.o taskctrl.o uartdmp.o usage.o zap.o setscfg.o segment.o
Using built-in specs.
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --build=i386-unknown-netbsdelf --host=i386--netbsdelf --target=i386--netbsdelf : (reconfigured) /usr/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --build=i386-unknown-netbsdelf1.6W --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 3.3.2 (NetBSD nb1 20031026)
/usr/bin/../libexec/collect2 -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so -o raidutil /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/bin/../libexec alarm.o bufiolsb.o cmdlist.o command.o config.o creatrad.o ctlr_map.o deletrad.o dpt_buff.o dptalign.o dynsize.o engcalls.o engiface.o engmsg.o eventlog.o expand.o findpath.o flash.o flashmem.o forcest.o hba_log.o id_list.o intlist.o listdev.o lockunix.o lzssdon.o lzstrbuf.o modnvram.o namarray.o nvrambit.o parsargv.o parser.o parserr.o raidutil.o rawdata.o rdutlosd.o rmwflash.o rstnvram.o scsi_log.o scsilist.o setcache.o setrate.o setspeed.o showinq.o status.o strlist.o swap_em.o taskctrl.o uartdmp.o usage.o zap.o setscfg.o segment.o -lstdc++ -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o