Код: Выделить всё
karaped@chukcha:~/ubench-0.32$ ./configure
==== Creating Makefile for Linux x86_64
==== Now type make to compile ubench for Linux
karaped@chukcha:~/ubench-0.32$ make
gcc -O2 -Wall -malign-loops=2 -malign-jumps=2 -malign-functions=2 -I. -c cpubench.c
cpubench.c:1: warning: -malign-loops is obsolete, use -falign-loops
cpubench.c:1: warning: -malign-jumps is obsolete, use -falign-jumps
cpubench.c:1: warning: -malign-functions is obsolete, use -falign-functions
cpubench.c: In function ‘cpucalc’:
cpubench.c:72: warning: implicit declaration of function ‘abs’
cpubench.c: In function ‘cpuload’:
cpubench.c:93: error: ‘CLK_TCK’ undeclared (first use in this function)
cpubench.c:93: error: (Each undeclared identifier is reported only once
cpubench.c:93: error: for each function it appears in.)
cpubench.c: In function ‘cpubench’:
cpubench.c:136: warning: implicit declaration of function ‘exit’
cpubench.c:136: warning: incompatible implicit declaration of built-in function ‘exit’
cpubench.c:195: warning: incompatible implicit declaration of built-in function ‘exit’
make: *** [cpubench.o] Error 1Использую Ubuntu 7.04 64-bit
Соответственно интересно почему возникла ошибка, как исправить. Пакет build-essential установлен.