Доброго времени суток господа, помогите с проблемой. Пытаюсь собрать из исходников программу на FreeBSD5.2.1 .# ./configure
......
......
checking for malloc.h... no
configure: error: Missing required header
*** Error code 1Я пытаюсь казать вручную папку с malloc.h
# ./configure CFLAGS=-I/usr/include/sys
....
configure: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: malloc.h: proceeding with the compiler's result
....Что-то получилось, но warning настораживает, пробую make и ...
# make
....
/usr/include/sys/malloc.h:64: error: 'u_long' is used as a type, but is not
defined as a type.
In file included from /usr/include/c++/3.3/bits/stl_algobase.h:67,
from /usr/include/c++/3.3/bits/stl_tree.h:86,
from /usr/include/c++/3.3/set:66,
from Common.h:73,
from Database.h:20,
from Database.cpp:17:
/usr/include/c++/3.3/cstdlib:104: error: `malloc' not declared
/usr/include/c++/3.3/cstdlib:110: error: `realloc' not declared
*** Error code 1Что мне делать?
Pereustanovi isxodniki yadra...
a stariye sotri nafigcd /usr
rm -r src/i t.d...
>Доброго времени суток господа, помогите с проблемой. Пытаюсь собрать из исходников программу
>на FreeBSD5.2.1 .
>
># ./configure
>......
>......
>checking for malloc.h... no
>configure: error: Missing required header
>*** Error code 1
>
>Я пытаюсь казать вручную папку с malloc.h
># ./configure CFLAGS=-I/usr/include/sys
>....
>configure: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!
>configure: WARNING: malloc.h: proceeding with the compiler's result
>....
>
>Что-то получилось, но warning настораживает, пробую make и ...
># make
>....
>/usr/include/sys/malloc.h:64: error: 'u_long' is used as a type, but is not
> defined as a type.
>In file included from /usr/include/c++/3.3/bits/stl_algobase.h:67,
>
> from /usr/include/c++/3.3/bits/stl_tree.h:86,
>
> from /usr/include/c++/3.3/set:66,
>
> from Common.h:73,
>
> from Database.h:20,
>
> from Database.cpp:17:
>/usr/include/c++/3.3/cstdlib:104: error: `malloc' not declared
>/usr/include/c++/3.3/cstdlib:110: error: `realloc' not declared
>*** Error code 1
>
>Что мне делать?Во FreeBSD 5.3 malloc.h объявлен obsolete. Ваши грабли, видимо, оттуда же. Попробуйте вместо #include<malloc.h> прописать в исходниках программы
#include<stdlib.h>