FreeBSD compile issues for argus-clients-3.0.5.24
Carter Bullard
carter at qosient.com
Tue Nov 22 10:42:09 EST 2011
Hey Mike,
Hmmm, I thought " pushd " was a generic sh command. I'll fix that today.
Carter
On Nov 22, 2011, at 10:29 AM, mike tancsa wrote:
> Hi Carter,
> It looks like the recent Makefile changes on FreeBSD broke a few
> things. All used to compile just fine with BSDMake. However, now the
> shell needs to be changed either to bash, and gmake needs to be used
> from the ports.
>
> Running ./configure
> and just typing make
>
> results in
>
>
>
> 0(ich10)# make
> making in ./common
> pushd: not found
> *** Error code 127
>
> Stop in /tmp/argus-clients-3.0.5.24.
> 1(ich10)#
>
> It seems to be the change from cd to pushd and popd
>
> # diff -u ../argus-clients-3.0.5.19/Makefile Makefile
> --- ../argus-clients-3.0.5.19/Makefile 2011-09-07 10:39:21.000000000 -0400
> +++ Makefile 2011-11-22 10:25:43.000000000 -0500
> @@ -47,12 +47,12 @@
>
> SHELL = /bin/sh
>
> -DIRS = ./common ./include ./clients ./ragraph ./ratop ./radium ./radump
> ./ramysql
> -INSTDIRS = ./clients ./radium ./common ./include
> +DIRS = ./common ./include ./clients ./radium ./examples
> +INSTDIRS = ./clients ./examples ./common ./include
>
> DISTFILES = AUTHORS CHANGES COPYING CREDITS ChangeLog INSTALL MANIFEST
> Makefile.in README VERSION \
> include lib man support aclocal.m4 acsite.m4 config configure
> configure.ac .threads \
> - bin clients common doc ragraph ratop radium radump ramysql
> + bin clients radium examples common
>
> .c.o:
> $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
> @@ -63,19 +63,18 @@
> @for i in $(DIRS) ; do \
> if [ -d $$i ] ; then \
> echo "making in $$i"; \
> - cd $$i; \
> + pushd $$i > /dev/null; \
> $(MAKE); \
> - cd ..; \
> + popd > /dev/null; \
> fi; \
> done
>
> .PHONY: all
>
>
> changing to
>
>
> -SHELL = /bin/sh
> +SHELL = /usr/local/bin/bash
>
>
> and using gmake seems to work
>
> However, the examples directory has
>
> SHELL = /bin/sh
>
> hardcoded as well.
>
> ---Mike
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4367 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20111122/566f73f9/attachment.bin>
More information about the argus
mailing list