Subject: Re: boostrap on solaris 7
To: julien Touche <julien.touche@lycos.com>
From: Chris Pinnock <cjep@fawlty.net>
List: tech-pkg
Date: 01/27/2003 16:12:58
On Mon, Jan 27, 2003 at 04:51:08PM +0100, julien Touche wrote:
> 
> Hi
> 
> 
> i encounter the following error when installing pkgsrc bootstrap on 
> solaris7 (as non-root)
> 
> it's for bmake (same with bootstrap script)
> 
> (www@e450n) bmake>./bmake -f makefile.boot
> (cd lst.lib; ./bmake -f makefile.boot CC="gcc" CFLAGS="-I.. -I./.. -I. 
> -I. -DHAVE_CONFIG_H  -I./missing -D__EXTENSIONS__ 
> "-D_PATH_DEFSYSPATH=\"/tmp/wwwpkgsrc/share/mk\"" -DMAKE_BOOTSTRAP " )
> gcc *.o lst.lib/*.o -o bmake.boot
> ld: fatal: symbol `Lst_Append' is multiply-defined:
>         (file lstAppend.o and file lst.lib/lstAppend.o);
> ld: fatal: symbol `Lst_AtEnd' is multiply-defined:
>         (file lstAtEnd.o and file lst.lib/lstAtEnd.o);
> ld: fatal: symbol `Lst_AtFront' is multiply-defined:
>         (file lstAtFront.o and file lst.lib/lstAtFront.o);
> ld: fatal: symbol `Lst_Close' is multiply-defined:
>         (file lstClose.o and file lst.lib/lstClose.o);
> ld: fatal: symbol `Lst_Concat' is multiply-defined:
>         (file lstConcat.o and file lst.lib/lstConcat.o);
> ld: fatal: symbol `Lst_Datum' is multiply-defined:
>         (file lstDatum.o and file lst.lib/lstDatum.o);
> ld: fatal: symbol `Lst_DeQueue' is multiply-defined:
>         (file lstDeQueue.o and file lst.lib/lstDeQueue.o);
> ld: fatal: symbol `Lst_Destroy' is multiply-defined:
>         (file lstDestroy.o and file lst.lib/lstDestroy.o);
> ld: fatal: symbol `Lst_Duplicate' is multiply-defined:
>         (file lstDupl.o and file lst.lib/lstDupl.o);
> ld: fatal: symbol `Lst_EnQueue' is multiply-defined:
>         (file lstEnQueue.o and file lst.lib/lstEnQueue.o);
> ld: fatal: symbol `Lst_Find' is multiply-defined:
>         (file lstFind.o and file lst.lib/lstFind.o);
> ld: fatal: symbol `Lst_FindFrom' is multiply-defined:
>         (file lstFindFrom.o and file lst.lib/lstFindFrom.o);
> ld: fatal: symbol `Lst_First' is multiply-defined:
>         (file lstFirst.o and file lst.lib/lstFirst.o);
> ld: fatal: symbol `Lst_ForEach' is multiply-defined:
>         (file lstForEach.o and file lst.lib/lstForEach.o);
> ld: fatal: symbol `Lst_ForEachFrom' is multiply-defined:
>         (file lstForEachFrom.o and file lst.lib/lstForEachFrom.o);
> ld: fatal: symbol `Lst_Init' is multiply-defined:
>         (file lstInit.o and file lst.lib/lstInit.o);
> ld: fatal: symbol `Lst_Insert' is multiply-defined:
>         (file lstInsert.o and file lst.lib/lstInsert.o);
> ld: fatal: symbol `Lst_IsAtEnd' is multiply-defined:
>         (file lstIsAtEnd.o and file lst.lib/lstIsAtEnd.o);
> ld: fatal: symbol `Lst_IsEmpty' is multiply-defined:
>         (file lstIsEmpty.o and file lst.lib/lstIsEmpty.o);
> ld: fatal: symbol `Lst_Last' is multiply-defined:
>         (file lstLast.o and file lst.lib/lstLast.o);
> ld: fatal: symbol `Lst_Member' is multiply-defined:
>         (file lstMember.o and file lst.lib/lstMember.o);
> ld: fatal: symbol `Lst_Next' is multiply-defined:
>         (file lstNext.o and file lst.lib/lstNext.o);
> ld: fatal: symbol `Lst_Open' is multiply-defined:
>         (file lstOpen.o and file lst.lib/lstOpen.o);
> ld: fatal: symbol `Lst_Remove' is multiply-defined:
>         (file lstRemove.o and file lst.lib/lstRemove.o);
> ld: fatal: symbol `Lst_Replace' is multiply-defined:
>         (file lstReplace.o and file lst.lib/lstReplace.o);
> ld: fatal: symbol `Lst_Succ' is multiply-defined:
>         (file lstSucc.o and file lst.lib/lstSucc.o);
> ld: fatal: File processing errors. No output written to bmake.boot
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> Stop.
> bmake: stopped in /tmp/www/test/bootstrap-pkgsrc/bmake
> 
> i change only prefix/pkgsrcdir/dbdir and comment root code in bootstrap.
> so i don't explain where the error could came from. ideas ?
> is there an env var to fix or something else ?

I've seen this -- a cleanup in the bmake directory will fix it.

best wishes,
Chris