LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   dpkg architecture problem (http://www.linuxquestions.org/questions/linux-from-scratch-13/dpkg-architecture-problem-4175437761/)

k84834 11-19-2012 04:19 AM

dpkg architecture problem
 
Hi friends
I am installed dpkg on my LFS7.2 but there is a problem!
please consider below commands
Code:

root [ /sources ]# uname -m
i686

root [ /sources ]# gcc --print-libgcc-file-name
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/libgcc.a

root [ /sources ]# dpkg --print-architecture
root [ /sources ]#

I installed dpkg package with below options:
Code:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
 --build=i386-gnu-linux  --without-dselect

Code:

root [ /sources ]# dpkg-architecture
Use of uninitialized value $v{"DEB_BUILD_GNU_TYPE"} in split at /usr/bin/dpkg-architecture line 183.
DEB_BUILD_ARCH=
Use of uninitialized value $v{"DEB_BUILD_ARCH_OS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_ARCH_OS=
Use of uninitialized value $v{"DEB_BUILD_ARCH_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_ARCH_CPU=
Use of uninitialized value $v{"DEB_BUILD_ARCH_BITS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_ARCH_BITS=
Use of uninitialized value $v{"DEB_BUILD_ARCH_ENDIAN"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_ARCH_ENDIAN=
Use of uninitialized value $v{"DEB_BUILD_GNU_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_GNU_CPU=
Use of uninitialized value $v{"DEB_BUILD_GNU_SYSTEM"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_GNU_SYSTEM=
Use of uninitialized value $v{"DEB_BUILD_GNU_TYPE"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 194.
DEB_BUILD_GNU_TYPE=
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_ARCH_BITS=32
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu

what do I do ? :(

k84834 11-20-2012 01:19 AM

anyone?

druuna 11-20-2012 02:14 AM

It seems that your other dpkg thread (blfs + dpkg make error!) is still unresolved.

Could this problem be a result of that unresolved problem?

On a side note: I see dpkg versions dpkg-1.9.21 and dpkg-1.13.25 in your other thread (and latest stable is 1.15.8.13). Did you try to mix and match versions?

k84834 11-20-2012 05:02 AM

Hi drunna
thanks for your reply
no I don't want to match versions of dpkg .
I first tried to make dpkg-1.13.25 but I can not.
then I retry with installing dpkg-1.15.8.13 and it installed but with above problem.
I use from VM mashin for building my LFS then I can come back to previous snapshot and retry installing packages.
and then, you right. this problem a result of unresolved problem.
at this point, I came back to my mashine snapshot that this mashine have all LFS packages and I installed just openssl and wget on it.
these are dpkg configure command results:
Code:

blfs [ /sources/dpkg-1.15.8.13 ]$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var  --build=i386-gnu-linux
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... i386-gnu-linux-gnu
checking host system type... i386-gnu-linux-gnu
checking dpkg cpu type... i386
configure: WARNING: i386 not found in cputable
checking dpkg operating system type... linux-gnu
configure: WARNING: linux-gnu not found in ostable
checking dpkg architecture name...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make supports nested variables... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for ranlib... ranlib
checking for doxygen... no
checking for dot... NO
checking for po4a... no
checking for perl... /usr/bin/perl
checking for pod2man... pod2man
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for gzdopen in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for BZ2_bzdopen in -lbz2... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for is_selinux_enabled in -lselinux... no
checking selinux/selinux.h usability... no
checking selinux/selinux.h presence... no
checking for selinux/selinux.h... no
checking whether Unicode is requested... yes
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses/term.h usability... no
checking ncurses/term.h presence... no
checking for ncurses/term.h... no
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking ncursesw/ncurses.h usability... no
checking ncursesw/ncurses.h presence... no
checking for ncursesw/ncurses.h... no
checking ncursesw/term.h usability... no
checking ncursesw/term.h presence... no
checking for ncursesw/term.h... no
checking for initscr in -lncursesw... yes
checking for ihash_create in -lihash... no
checking for proc_stat_list_create in -lps... no
checking for fmt_past_time in -lshouldbeinlibc... no
checking for kvm_openfiles in -lkvm... no
checking for ANSI C header files... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking error.h usability... yes
checking error.h presence... yes
checking for error.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking kvm.h usability... no
checking kvm.h presence... no
checking for kvm.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking linux/fiemap.h usability... yes
checking linux/fiemap.h presence... yes
checking for linux/fiemap.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking whether compiler supports C99 features... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking size of unsigned int... 4
checking size of unsigned long... 4
checking for unistd.h... (cached) yes
checking whether sys_siglist is declared... yes
checking for va_copy... yes
checking for C99 snprintf functions... yes
checking whether sync is synchronous... yes
checking whether to use synchronous sync... no
checking whether offsetof is declared... yes
checking whether WCOREDUMP is declared... yes
checking whether TIOCNOTTY is declared... yes
checking for getopt... yes
checking for getopt_long... yes
checking for obstack_free... yes
checking for strnlen... yes
checking for strerror... yes
checking for strsignal... yes
checking for asprintf... yes
checking for scandir... yes
checking for alphasort... yes
checking for unsetenv... yes
checking for strtoul... yes
checking for isascii... yes
checking for bcopy... yes
checking for memcpy... yes
checking for setsid... yes
checking for getdtablesize... yes
checking for posix_fadvise... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dpkg-deb/Makefile
config.status: creating dpkg-split/Makefile
config.status: creating dselect/Makefile
config.status: creating dselect/methods/Makefile
config.status: creating dselect/po/Makefile.in
config.status: creating lib/Makefile
config.status: creating lib/compat/Makefile
config.status: creating lib/dpkg/Makefile
config.status: creating lib/dpkg/libdpkg.pc
config.status: creating lib/dpkg/test/Makefile
config.status: creating doc/Doxyfile
config.status: creating man/Makefile
config.status: creating po/Makefile.in
config.status: creating scripts/Makefile
config.status: creating scripts/po/Makefile.in
config.status: creating src/Makefile
config.status: creating utils/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating dselect/po/POTFILES
config.status: creating dselect/po/Makefile
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating scripts/po/POTFILES
config.status: creating scripts/po/Makefile
blfs [ /sources/dpkg-1.15.8.13 ]$

cputable
Code:

blfs [ /sources/dpkg-1.15.8.13 ]$ cat cputable
# This file contains the table of known CPU names.
#
# Architecture names are formed as a combination of the system name
# (from ostable) and CPU name (from this table) after mapping from
# the Debian triplet (from triplettable). A list of architecture
# names in the Debian ‘sid’ distribution can be found in the archtable
# file.
#
# Column 1 is the Debian name for the CPU, used to form the cpu part in
# the Debian triplet.
# Column 2 is the GNU name for the CPU, used to output build and host
# targets in ‘dpkg-architecture’.
# Column 3 is an extended regular expression used to match against the
# CPU part of the output of the GNU config.guess script.
# Column 4 is the size (in bits) of the integers/pointers
# Column 5 is the endianness (byte ordering in numbers)
#
# <Debian name>        <GNU name>        <config.guess regex>        <Bits>        <Endianness>
i386                i486                (i[3456]86|pentium)        32        little
ia64                ia64                ia64                        64        little
alpha                alpha                alpha.*                        64        little
amd64                x86_64                x86_64                        64        little
armeb                armeb                arm.*b                        32        big
arm                arm                arm.*                        32        little
avr32                avr32                avr32                        32        big
hppa                hppa                hppa.*                        32        big
m32r                m32r                m32r                        32        big
m68k                m68k                m68k                        32        big
mips                mips                mips(eb)?                32        big
mipsel                mipsel                mipsel                        32        little
powerpc                powerpc                (powerpc|ppc)                32        big
ppc64                powerpc64        (powerpc|ppc)64                64        big
s390                s390                s390                        32        big
s390x                s390x                s390x                        64        big
sh3                sh3                sh3                        32        little
sh3eb                sh3eb                sh3eb                        32        big
sh4                sh4                sh4                        32        little
sh4eb                sh4eb                sh4eb                        32        big
sparc                sparc                sparc                        32        big
sparc64                sparc64                sparc64                        64        big

ostable
Code:

blfs [ /sources/dpkg-1.15.8.13 ]$ cat ostable
# This file contains the table of known operating system names.
#
# Architecture names are formed as a combination of the system name
# (from this table) and CPU name (from cputable) after mapping from
# the Debian triplet (from triplettable). A list of architecture
# names in the Debian ‘sid’ distribution can be found in the archtable
# file.
#
# Column 1 is the Debian name for the system, used to form the system part
# in the Debian triplet.
# Column 2 is the GNU name for the system, used to output build and host
# targets in ‘dpkg-architecture’.
# Column 3 is an extended regular expression used to match against the
# system part of the output of the GNU config.guess script.
#
# <Debian name>                <GNU name>                <config.guess regex>
uclibceabi-linux        linux-uclibceabi        linux[^-]*-uclibceabi
uclibc-linux                linux-uclibc                linux[^-]*-uclibc
gnueabihf-linux                linux-gnueabihf                linux[^-]*-gnueabihf
gnueabi-linux                linux-gnueabi                linux[^-]*-gnueabi
gnuspe-linux                linux-gnuspe                linux[^-]*-gnuspe
gnulp-linux                linux-gnulp                linux[^-]*-gnulp
gnu-linux                linux-gnu                linux[^-]*(-gnu.*)?
gnu-kfreebsd                kfreebsd-gnu                kfreebsd[^-]*(-gnu.*)?
gnu-knetbsd                knetbsd-gnu                knetbsd[^-]*(-gnu.*)?
gnu-kopensolaris        kopensolaris-gnu        kopensolaris[^-]*(-gnu.*)?
gnu-hurd                gnu                        gnu[^-]*
bsd-darwin                darwin                        darwin[^-]*
bsd-freebsd                freebsd                        freebsd[^-]*
bsd-netbsd                netbsd                        netbsd[^-]*
bsd-openbsd                openbsd                        openbsd[^-]*
sysv-solaris                solaris                        solaris[^-]*
uclibceabi-uclinux        uclinux-uclibceabi        uclinux[^-]*-uclibceabi
uclibc-uclinux                uclinux-uclibc                uclinux[^-]*(-uclibc.*)?
blfs [ /sources/dpkg-1.15.8.13 ]$


ldpreload 01-01-2013 02:35 AM

I ran into this problem building dpkg for a non-Debian operating system. The problem appeared to fix itself when I recompiled dpkg a second time, having installed the previous build of dpkg. Try compiling it again, now that you have dpkg installed, and see if that helps.

(It doesn't seem too surprising for this sort of bug to slip in, since dpkg is always installed on a Debian machine.)


All times are GMT -5. The time now is 11:43 PM.