[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt source compilation error



Hi,

I downloaded apt_0.6.46.4-0.1+etch1.tar.gz and decompress it. Then I
run ./configure and make. But I get the following error. Could
somebody let me know how to fix the problem?

Regards,
Peng

Compiling contrib/mmap.cc to
/home/pengy/download/linux/debian/etch/admin/apt-0.6.46.4/obj/apt-pkg/mmap.opic
contrib/mmap.cc: In constructor ‘DynamicMMap::DynamicMMap(long
unsigned int, long unsigned int)’:
contrib/mmap.cc:179: error: ‘memset’ was not declared in this scope
contrib/mmap.cc: In member function ‘long unsigned int
DynamicMMap::WriteString(const char*, long unsigned int)’:
contrib/mmap.cc:281: error: ‘strlen’ was not declared in this scope
contrib/mmap.cc:283: error: ‘memcpy’ was not declared in this scope
make[2]: *** [/home/pengy/download/linux/debian/etch/admin/apt-0.6.46.4/obj/apt-pkg/mmap.opic]
Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2


Reply to: