NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-i386/44306: current NetBSD sources do not build



On Sat, Jan 01, 2011 at 06:35:01PM +0000, 
basia_i_tomek%magickgarden.dyndns-server.com@localhost wrote:
> >Number:         44306
> >Category:       port-i386
> >Synopsis:       Current sources are not buildable
...
> .../external/ibm-public/postfix/lib/dns. Neither cleandir nor objs 
> (NOCLEANDIR=yes  ) targets work.
> 
> Error transcript:
> nbmake: "/mnt/modlishka/srcs/external/ibm-public/postfix/lib/dns/obj/.depend" 
> line 2: Need an operator
> nbmake: Fatal errors encountered -- cannot continue

You need to look at what is wrong in the .depend file (generated from *.d by
make depend). Without knowing the contents (especially line 2) we can't
say what is wrong.

Neither of the 'clean' options you specified will remove the *.d or .depend
files.

As a matter of practice it is better to build with all the object files
in a completely separate direcory tree - rather than in subdirectories
of each directory. Typically you need to front build.sh with something
like:

base=`(cd ..;/bin/pwd)`
machine=i386

destdir=$base/dest_$machine
objdir=$base/obj_$machine
releasedir=$base/release

[ -d $objdir ] || mkdir $objdir || exit 1
[ -d $destdir ] || mkdir $destdir || exit 1
[ -d $releasedir ] || mkdir $releasedir || exit 1

exec ./build.sh -u -U -D $destdir -O $objdir -R $releasedir "$@"

Then is is very easy to tidy up by just deleting the object tree completely.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index