RPM wont compile!!!!

DaClink clinks_linux at btopenworld.com
Tue Aug 27 09:53:19 PDT 2002


Hi

After an entire day wasted tring to install RPM i think its time to
scream 
for help...
I'm trying to install it using the hint at
http://hints.linuxfromscratch.org/hints/rpm.txt

Just in case its relevant... this is an lfs 3.2 system with the
following 
addons.
(Apache 1.3.26 + mod_perl (DSO), Mysql 3.23.51 (as in book), Perl addons

modules DBI, CGI.pm and DBD::Mysql and also openssh. All required
libraries 
for these are also installled. An all the above work fine)

Zlib is already installed, gnupg installs no problems and db-3.1.17 
installs no problem (as far as i can see)

I ran the following to configure RPM 4.0

>LIBS='-L/usr/local/BerkeleyDB.3.1/lib' \
CPPFLAGS='- /usr/local/BerkeleyDB.3.1/include' ./configure
>make

The Outputs are shown at bottom of post.
(i have put ***** next to what i think might be an issue but am unsure
of 
how to fix.):

I seem to get errors when i run both and can get rpm to work.... any
help 
or guidance very very much apreciated!!!

DaClink


Output from  blah blah ./configure

loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking for a BSD compatible install... /bin/install -c
checking flag used by libtool to link rpm...  -all-static
checking POSIX chmod... yes
checking for mkdir... (cached) /bin/mkdir
checking if /bin/mkdir supports -p... yes
checking for AIX... no
checking for minix/config.h... (cached) no
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... (cached) none needed
checking for function prototypes... yes
checking for gawk... (cached) mawk
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for ar... ar
checking for bzip2... /bin/bzip2
checking for cat... /bin/cat
checking for chgrp... /bin/chgrp
checking for chmod... /bin/chmod
checking for chown... /bin/chown
checking for cp... /bin/cp
checking for cpio... /bin/cpio
checking for gzip... /bin/gzip
checking for grep... /bin/grep
checking for id... /usr/bin/id
checking checking whether id supports -u... yes
checking for install... /bin/install
checking for make... /usr/bin/make
checking for mkdir... /bin/mkdir
checking for mv... /bin/mv
checking for patch... /usr/bin/patch
checking old version of patch... patch later then 2.2 found
checking for perl... /usr/bin/perl
checking for pgp... /usr/bin/pgp
checking for rm... /bin/rm
checking for rsh... /usr/bin/rsh
checking for sed... /bin/sed
checking for ssh... /usr/bin/ssh
checking for tar... /bin/tar
checking for ld... /usr/bin/ld
checking for nm... /usr/bin/nm
checking for objcopy... /usr/bin/objcopy
checking for objdump... /usr/bin/objdump
checking for strip... /usr/bin/strip
checking for /usr/local/lib in LIBS... yes
checking for /usr/local/include in INCPATH... yes
checking for /usr/ucblib in LIBS... no
checking if you want experimental rpm-5.0 packages... no
checking for strcasecmp... yes
checking for setreuid... yes
checking for rand... yes
checking for getdomainname... yes
checking for socket... yes
checking for fchmod... yes
checking for writev in -lport... no
******checking for db_create... no
******checking for db_create in -ldb-3.1... no
******checking for db_create in -ldb-3.0... no
checking for db_create in -ldb... yes
******checking for dbopen... no
******checking for dbopen in -ldb1... no
******checking for dbopen in -ldb... no
checking for fork... yes
checking for gzread in -lz... yes
checking for gzseek in -lz... yes
checking for bzread in -lbz2... no
checking for BZ2_bzread in -lbz2... yes
checking for personality... yes
checking for error_at_line... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... (cached) yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs da de es fi fr gl hu id is
it 
ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312
checking for ANSI C header files... yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether time.h and sys/time.h may both be included... yes
checking for db_185.h... yes
checking for db1/db.h... no
checking for db3/db.h... no
checking for fcntl.h... yes
checking for getopt.h... yes
checking for grp.h... yes
checking for memory.h... yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for utime.h... yes
checking for sys/socket.h... yes
checking for sys/select.h... yes
checking for sys/types.h... yes
checking for sys/stdtypes.h... no
checking for sys/mman.h... yes
checking for sys/resource.h... yes
checking for sys/utsname.h... yes
checking for sys/wait.h... yes
checking for netinet/in_systm.h... yes
checking for machine/types.h... no
checking for mntent.h... yes
checking for sys/mnttab.h... no
checking for sys/systemcfg.h... no
checking for sys/mount.h... yes
checking for sys/mntctl.h... no
checking for sys/param.h... (cached) yes
checking for sys/vmount.h... no
checking for bzlib.h... yes
checking for libio.h... yes
checking for zlib.h... yes
checking for err.h... yes
checking for mcheck.h... yes
checking for glob.h... yes
checking for struct statfs... in sys/statvfs.h
checking for f_bavail member in struct statfs... yes
checking if statfs() requires 4 arguments... no
checking for inline... (cached) inline
checking if <netdb.h> defines h_errno... yes
checking if <sys/stat.h> defines S_IFSOCK... yes
checking if <sys/stat.h> defines S_ISLNK... yes
checking if <sys/stat.h> defines S_ISSOCK... yes
checking if timezone is defined... yes
checking for mode_t... yes
checking for pid_t... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for vprintf... yes
checking for working fnmatch... yes
checking for basename... yes
checking for getcwd... (cached) yes
checking for getwd... yes
checking for inet_aton... yes
checking for mtrace... yes
checking for putenv... (cached) yes
checking for realpath... yes
checking for setenv... (cached) yes
checking for stpcpy... (cached) yes
checking for stpncpy... yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... yes
checking for strcspn... yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
checking for strspn... yes
checking for strstr... yes
checking for regcomp... yes
checking for glob... yes
checking for GNU extensions to glob... yes
checking for setlocale... (cached) yes
checking for getpassphrase... no
checking for getmntent... yes
checking for lchown... yes
checking root's primary group... root
using ./autodeps/linux.prov for automatic provides generation
using ./autodeps/linux.req for automatic requires generation
updating cache ./config.cache
creating ./config.status
creating Doxyfile
creating Makefile
creating rpmrc
creating macros
creating platform
creating rpmpopt
creating scripts/brp-redhat
creating rpmio/Makefile
creating lib/Makefile
creating build/Makefile
creating tools/Makefile
creating scripts/Makefile
creating tests/Makefile
creating tests/rpmrc
creating tests/macros
creating tests/hello-test/Makefile
creating misc/Makefile
creating po/Makefile.in
creating intl/Makefile
creating doc/Makefile
creating doc/manual/Makefile
creating doc/ja/Makefile
creating doc/pl/Makefile
creating doc/ru/Makefile
creating doc/sk/Makefile
creating python/Makefile
creating perl/Makefile
******sed: can't read ./perl/Makefile.in: No such file or directory
creating perl/Makefile.PL
******sed: can't read ./perl/Makefile.PL.in: No such file or directory
creating config.h
configuring in popt
running /bin/sh ./configure  --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking for gcc option to accept ANSI C... (cached) none needed
checking for function prototypes... yes
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache .././config.cache
checking for a BSD compatible install... /bin/install -c
checking for alloca.h... (cached) yes
checking for libintl.h... (cached) yes
checking for mcheck.h... (cached) yes
checking for unistd.h... (cached) yes
checking for /usr/ucblib in LIBS... no
checking for strerror... (cached) yes
checking for mtrace... (cached) yes
checking for setreuid... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for gettext in libc... (cached) yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  cs da de es fi fr gl hu id is
it 
ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312
creating ./config.status
creating Doxyfile
creating Makefile
creating intl/Makefile
creating po/Makefile.in
creating config.h

Output from make:

make  all-recursive
make[1]: Entering directory `/usr/src/working/rpm-4.0'
Making all in intl
make[2]: Entering directory `/usr/src/working/rpm-4.0/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/working/rpm-4.0/intl'
Making all in po
make[2]: Entering directory `/usr/src/working/rpm-4.0/po'
PATH=../intl:$PATH /usr/bin/xgettext --default-domain=rpm --directory=..
\
  --add-comments --keyword=_ --keyword=N_ \
  --files-from=./POTFILES.in \
&& test ! -f rpm.po \
   || ( rm -f ./rpm.pot \
        && mv rpm.po ./rpm.pot )
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed ./rpm.pot \
| sed -e "s/@PACKAGE NAME@/rpm/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp ./cat-id-tbl.c; then \
  rm cat-id-tbl.tmp; \
else \
  echo cat-id-tbl.c changed; \
  rm -f ./cat-id-tbl.c; \
  mv cat-id-tbl.tmp ./cat-id-tbl.c; \
fi
cat-id-tbl.c changed
cd . && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
file=./`echo es | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file es.po
file=./`echo gl | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file gl.po
file=./`echo hu | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file hu.po
file=./`echo id | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file id.po
file=./`echo it | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file it.po
file=./`echo ko | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file ko.po
file=./`echo uk | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file uk.po
file=./`echo wa | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file wa.po
file=./`echo zh | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file zh.po
file=./`echo zh_CN.GB2312 | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../intl:$PATH /usr/bin/msgfmt -o $file 
zh_CN.GB2312.po
make[2]: Leaving directory `/usr/src/working/rpm-4.0/po'
Making all in popt
make[2]: Entering directory `/usr/src/working/rpm-4.0/popt'
make  all-recursive
make[3]: Entering directory `/usr/src/working/rpm-4.0/popt'
Making all in intl
make[4]: Entering directory `/usr/src/working/rpm-4.0/popt/intl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/src/working/rpm-4.0/popt/intl'
Making all in po
make[4]: Entering directory `/usr/src/working/rpm-4.0/popt/po'
file=./`echo de | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file de.po
file=./`echo es | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file es.po
file=./`echo fi | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file fi.po
file=./`echo fr | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file fr.po
file=./`echo id | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file id.po
file=./`echo it | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file it.po
file=./`echo ja | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ja.po
file=./`echo ko | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ko.po
file=./`echo pl | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file pl.po
file=./`echo pt_BR | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file pt_BR.po
file=./`echo sr | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file sr.po
file=./`echo zh | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file zh.po
make[4]: Leaving directory `/usr/src/working/rpm-4.0/popt/po'
make[4]: Entering directory `/usr/src/working/rpm-4.0/popt'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.  -
I/usr/local/BerkeleyDB.3.1/include  -Wall -g -O2 -c popt.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/BerkeleyDB.3.1/include
-
Wall -g -O2 -c popt.c  -fPIC -DPIC -o .libs/popt.lo
popt.c: In function `poptGetNextOpt':
popt.c:733: `FLT_MAX' undeclared (first use in this function)
popt.c:733: (Each undeclared identifier is reported only once
popt.c:733: for each function it appears in.)
popt.c:735: `FLT_MIN' undeclared (first use in this function)
make[4]: *** [popt.lo] Error 1
make[4]: Leaving directory `/usr/src/working/rpm-4.0/popt'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/working/rpm-4.0/popt'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/usr/src/working/rpm-4.0/popt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/working/rpm-4.0'
make: *** [all-recursive-am] Error 2

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list