[Asterisk-Dev] gmake issues (solved, #5885 on mantis)
Luigi Rizzo
rizzo at icir.org
Tue Nov 29 05:21:44 MST 2005
ok found the bug, see the report on mantis #5885
cheers
luigi
On Tue, Nov 29, 2005 at 04:02:37AM -0800, Luigi Rizzo wrote:
> as a followup, it that may help, i only see the messages from
> a tree checked-out from subversion.
> If i do the same build on a cvs co tree the "[: trunk: unexpected operator"
> are not there anymore.
>
> The only differences in the two trees are the metadata dirs,
> and the version tags in each file as below:
>
> Only in asterisk-test/work/asterisk-current: .svn
> Only in asterisk-current/work/asterisk-current: .svnbranch
> Only in asterisk-current/work/asterisk-current: .svnrevision
> Only in asterisk-current/work/asterisk-current: CVS
> diff -ubwr asterisk-current/work/asterisk-current/acl.c asterisk-test/work/asterisk-current/acl.c
> --- asterisk-current/work/asterisk-current/acl.c Tue Nov 29 11:12:31 2005
> +++ asterisk-test/work/asterisk-current/acl.c Tue Nov 29 11:20:49 2005
> @@ -59,7 +59,7 @@
>
> #include "asterisk.h"
>
> -ASTERISK_FILE_VERSION(__FILE__, "Revision: 6936 ")
> +ASTERISK_FILE_VERSION(__FILE__, "$Revision: 6936 $")
>
> and so on.
> By chance, do you see the same thing on linux as well ?
>
> cheers
> luigi
>
> On Tue, Nov 29, 2005 at 03:49:50AM -0800, Luigi Rizzo wrote:
> > Hi,
> > on FreeBSD 4.11 with gmake 3.80 and today's svn sources
> > i am seeing a lot of these "[: trunk: unexpected operator"
> > messages below:
> >
> > > gmake | & more
> > build_tools/make_version_h > include/asterisk/version.h.tmp
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > if cmp -s include/asterisk/version.h.tmp include/asterisk/version.h ; then echo;
> > else \
> > mv include/asterisk/version.h.tmp include/asterisk/version.h ; \
> > fi
> >
> > rm -f include/asterisk/version.h.tmp
> >
> > basically they happen every time the first command of a rule
> > is started, e.g. if i have
> >
> > foo:
> > echo "doing foo"
> >
> > i see in the output
> >
> > echo "doing foo"
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > [: trunk: unexpected operator
> > doing foo
> >
> > and so on.
> > If i remove the '.EXPORT_ALL_VARIABLES:'
> > from the beginning of the file, the messages disappear, but then of
> > course i am not sure the build is correct.
> >
> > Any ideas ? It has to do with the way the shell is invoked
> > because if put SHELL=/my/own/command in the makefile, i see the
> > output of my command and none of the 'unexpected operator'
> > messages. Changing /bin/sh with /usr/local/bin/bash however
> > does not help, and gmake is a bit too smart in handling shell
> > commands for me to be able to follow what is going on.
> >
> > cheers
> > luigi
> >
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Dev mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list