From 0a993a3f6f32f6be05e6c592fd4ee54e9936b29b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 28 Feb 2019 17:11:00 +0100 Subject: [PATCH] TT#48650 Explicitly check for gperf binary If the gperf dependency isn't present then people seem to miss that it's not available. Admittedly, the error message isn't entirely obvious: | Makefile:135: .depend: No such file or directory | ../utils/const_str_hash < sdp.c > sdp.strhash.c | open2: exec of gperf -t -E -l -c -t -I -H __csh_hash -N __csh_lookup_raw failed at ../utils/const_str_hash line 37. Change-Id: I15edcd0517e88c690be246dc628cb55e25297dd0 Closes: https://github.com/sipwise/rtpengine/issues/718 --- utils/const_str_hash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/const_str_hash b/utils/const_str_hash index ccfe1ae32..0d18742ae 100755 --- a/utils/const_str_hash +++ b/utils/const_str_hash @@ -3,6 +3,9 @@ use strict; use warnings; use IPC::Open2; +use IPC::Cmd qw[can_run]; + +can_run('gperf') or die 'No gperf binary found, make sure to have gperf installed!'; print("/******** GENERATED FILE ********/\n");