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

Bug#589922: cannot compile apt statically - static compile fails



Package: apt
Version: 0.7.20.2+lenny2
Severity: important
Justification: fails to build from source


I go:
	export CFLAGS=-static; export CXXFLAGS=-static

and then I go:
	# cd /usr/src
	# dpkg-source -x apt_0.7.20.2+lenny2.dsc
	# cd apt-0.7.20.2+lenny2
	# ./configure

./configure pukes. Its final lines of output:

	checking for stdint.h... yes
	checking for unistd.h... yes
	checking db.h usability... no
	checking db.h presence... no
	checking for db.h... no
	checking for curl_easy_init in -lcurl... no
	configure: error: failed: I need CURL due https support

I am trying to build apt statically for use in a miniature 'system 
within a system' I am constructing inside a chroot jail for a project. I 
do NOT want to have to litter the system with all of the various 
libraries that apt depends upon. I want static binaries of apt-get and 
all of the other apt programs.


-- Package-specific info:

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


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-5-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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.7-18lenny4 GNU C Library: Shared libraries
ii  libgcc1                     1:4.3.2-1.1  GCC support library
ii  libstdc++6                  4.3.2-1.1    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc               <none>             (no description available)
ii  aptitude              0.4.11.11-1~lenny1 terminal-based package manager
ii  bzip2                 1.0.5-1            high-quality block-sorting file co
ii  dpkg-dev              1.14.29            Debian package development tools
ii  lzma                  4.43-14            Compression method of 7z format in
pn  python-apt            <none>             (no description available)

-- no debconf information



Reply to: