[dsc] DSC's collector fails to compile on CentOS 7

Oliver Peter lists at peter.de.com
Thu Aug 14 08:33:16 UTC 2014


On Wed, Aug 13, 2014 at 05:21:34PM +0200, Anand Buddhdev wrote:
> Hello DSC users and devs,
> 
> I'm trying to compile DSC on CentOS 7, and it's failing. I'm building
> dsc-201203250530. The specific error I get is:
> 
> # cd /builddir/build/BUILD/dsc-201203250530/collector/dsc/
> # ./configure
> ...
> [ configure output ]
> ...
> # make
> Makefile:6: *** missing separator.  Stop.
> 
> This exact sequence works fine on CentOS 6, but fails on CentOS 7.
> 
> If I diff the Makefiles produced by CentOS 6 and CentOS 7, I see:
> 
> < LDFLAGS += 	# from configure
> < CFLAGS += -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic	# from
> configure
> ---
> > LDFLAGS += -Wl,-z,relro 	# from configure
> > CFLAGS += -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
>   -m64 -mtune=generic	# from configure
> 
> 
> The other difference is that CentOS 6 has make version 3.81, and CentOS
> 7 has make version 3.82.
> 
> I can't see anything obviously wrong with the Makefile on line 6, but
> perhaps I'm missing something obvious. Any ideas?

It looks like GNU makes behaviour has changed, it's easy to fix:

Index: collector/dsc/Makefile.in
===================================================================
--- collector/dsc/Makefile.in   (revision 13833)
+++ collector/dsc/Makefile.in   (working copy)
@@ -3,7 +3,7 @@
 CFLAGS=-g -Wall -DUSE_IPV6=1
 CPPFLAGS = ${CFLAGS}
 MYCPPFLAGS = -g -DUSE_IPV6=1 -I $(HAPY)/src/include
 -I/usr/local/include
-TODAY != date +%Y%m%d
+TODAY!=date +%Y%m%d
 INSTALLDIR=/usr/local/dsc
 
 LDFLAGS += @LDFLAGS@   # from configure

Tested on Centos{6,7} and FreeBSD 10.


-- 
Oliver PETER       oliver at gfuzz.de       0x456D688F


More information about the dsc mailing list