Re: apt source compilation error
On 2009-09-20 18:40 +0200, Peng Yu wrote:
> I downloaded apt_0.6.46.4-0.1+etch1.tar.gz and decompress it. Then I
> run ./configure and make.
Out of curiosity, why are you doing that? Apparently you don't use
etch, because...
> 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
...this looks like you have a newer C++ compiler than in etch. What
does "g++ --version" print?
Sven
Reply to: