[ntp:questions] Cannot execute keyword-gen

Dave Hart davehart at gmail.com
Thu Oct 15 20:39:14 UTC 2009


On Thu, Oct 15, 2009 at 8:00 PM, Piotr Grudzinski <piotr at powersmiths.com> wrote:
> Clean build of ntp-dev-4.2.5p233-RC fails on my Linux system with the following error:
>
> /bin/bash: ./keywork-gen: cannot execute binary file
>
> If the make is re-run, the build of ntpd finishes properly. ntp-dev-4.2.5p230 didn't have this problem.

I just tried to reproduce this on a current Debian system:

hart at psp-deb1> uname -a
Linux psp-deb1 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux
hart at psp-deb1> scripts/cvo.sh @cvo@
i686-pc-debian5.0.3

I downloaded the p233-RC tarball, extracted, cd'd, then

./configure --with-lineeditlibs=readline
make | tee make.log

It completed without errors.  Was your clean build in a
freshly-extracted tarball directory?  There may be a problem I need to
work a little harder to reproduce.  FYI:

hart at psp-deb1> fgrep keyword-gen make.log
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../lib/isc/include
-I../lib/isc/nothreads/include -I../lib/isc/unix/include -I../libopts
-I/usr/include  -g -O2  -Wall -Wcast-qual -Wmissing-prototypes
-Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow
-Wno-strict-prototypes -MT keyword-gen.o -MD -MP -MF
".deps/keyword-gen.Tpo" -c -o keyword-gen.o keyword-gen.c; \
        then mv -f ".deps/keyword-gen.Tpo" ".deps/keyword-gen.Po";
else rm -f ".deps/keyword-gen.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -Wall -Wcast-qual
-Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self
-Wstrict-overflow -Wno-strict-prototypes  -L/usr/lib -o keyword-gen
keyword-gen.o ../libntp/libntp.a -lcap
gcc -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith
-Wshadow -Winit-self -Wstrict-overflow -Wno-strict-prototypes -o
keyword-gen keyword-gen.o  -L/usr/lib ../libntp/libntp.a -lcap
./keyword-gen ./ntp_parser.h > ntp_keyword.out

Cheers,
Dave Hart



More information about the questions mailing list