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

Bug#588610: apt: does not compile on my setup



Package: apt
Version: 0.7.26~exp9
Severity: normal
Tags: experimental patch

As package was not copiled for amd64 arch I tried to compile it myself.
I found an error related to constness of va_list type in error.cc

--- apt-0.7.26~exp9/apt-pkg/contrib/error.cc	2010-07-09 22:04:40.000000000 +0200
+++ apt-0.7.26~exp9.new/apt-pkg/contrib/error.cc	2010-07-10 10:00:42.000000000 +0200
@@ -96,7 +96,7 @@
 bool GlobalError::InsertErrno(MsgType type, const char* Function,
 			      const char* Description, va_list const &args) {
 	char S[400];
-	vsnprintf(S,sizeof(S),Description,args);
+	vsnprintf(S,sizeof(S),Description, (va_list &) args);
 	snprintf(S + strlen(S),sizeof(S) - strlen(S),
 	         " - %s (%i: %s)", Function, errno, strerror(errno));
 	return Insert(type, S, args);
@@ -143,7 +143,7 @@
 bool GlobalError::Insert(MsgType type, const char* Description,
 			 va_list const &args) {
 	char S[400];
-	vsnprintf(S,sizeof(S),Description,args);
+	vsnprintf(S,sizeof(S),Description, (va_list &)args);
 
 	Item const m(S, type);
 	Messages.push_back(m);


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Acquire::Max-Default-Age "";
APT::Acquire::Max-Default-Age::Debian-Security "7";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "/var/lib/apt/extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

#deb ftp://ftp.debian.org/debian dists/proposed-updates/
#deb ftp://ftp.fr.debian.org/debian testing-proposed-updates main contrib non-free
#deb ftp://ftp.debian.org/debian testing-proposed-updates main contrib non-free
deb ftp://ftp.fr.debian.org/debian unstable main contrib non-free
#deb ftp://ftp.debian.org/debian unstable main contrib non-free
#deb ftp://ftp.fr.debian.org/debian-non-US unstable/non-US main contrib non-free

#deb ftp://security.debian.org/debian-security sarge/updates main contrib non-free
#gphoto updated packages
#deb ftp://ufies.org/pub/people/christophe debian/
#deb ftp://download.us.kde.org/pub/kde/stable/latest/Debian/woody ./
#deb ftp://ftp.du.se/pub/mirrors/kde/stable/3.1/Debian unstable main
#deb ftp://download.us.kde.org/pub/kde/stable/koffice-1.2.1/Debian/unstable ./

#deb http://quakeforge.net/packages/debian unstable main contrib non-free

#avrious video stuff
# deb http://www.debian-multimedia.org sid main

# New address for the above packages...
deb http://www.debian-multimedia.org sid main
deb http://www.debian-multimedia.org experimental main
# KDE 3.4
#deb http://pkg-kde.alioth.debian.org/kde-3.4.1/ ./

# Xorg
#deb http://neo.wh-stuttgart.de/debian sid xorg 
# XMMS2
#deb http://exodus.xmms.se/debian stable main
deb-src ftp://ftp.fr.debian.org/debian unstable main contrib non-free
deb ftp://ftp.fr.debian.org/debian experimental main contrib non-free
deb-src ftp://ftp.fr.debian.org/debian experimental main contrib non-free
#deb-src http://amarok2deb.co.cc/debian unstable main

# debian kde 4.4
#deb http://qt-kde.debian.net/debian experimental-snapshots main

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF8, LC_CTYPE=fr_FR.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring        2009.01.31 GnuPG archive keys of the Debian a
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.4-6  GCC support library
ii  libstdc++6                    4.4.4-6    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc           <none>                 (no description available)
pn  aptitude | synapt <none>                 (no description available)
ii  bzip2             1.0.5-4                high-quality block-sorting file co
ii  dpkg-dev          1.15.7.2               Debian package development tools
pn  python-apt        <none>                 (no description available)
ii  xz-lzma [lzma]    4.999.9beta+20100602-1 XZ-format compression utilities - 

-- no debconf information





Reply to: