LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   how can i install rpm-4.4.6 on lfs system? (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-can-i-install-rpm-4-4-6-on-lfs-system-563916/)

h_r0019 06-23-2007 06:26 AM

how can i install rpm-4.4.6 on lfs system?
 
i have lfs 6.2 system and now i want to install rpm-4.4.6 but i get this error :
Code:

r/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for locale.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tzname... yes
checking for tm_isdst in struct tm... yes
checking for daylight... yes
checking for special C compiler options needed for large files=
... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for mbstate_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for long long... yes
checking for uint64_t... yes
checking size of uint8_t... 1
checking size of uint16_t... 2
checking size of uint32_t... 4
checking size of uint64_t... 8
checking for mmap... yes
checking for strerror... yes
checking for strtoul... yes
checking for mbrtowc... yes
checking for mkstemp... yes
checking for getopt_long... yes
checking for utimes... yes
checking for utime... yes
checking for wcwidth... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for gzopen in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating magic/Makefile
config.status: creating doc/Makefile
config.status: creating python/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: configuring in sqlite
configure: WARNING: no configuration information is in sqlite
configure: configuring in db3
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--without-selinux' '--enable-share' --cache-file=/dev/null --srcdir=.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if building in the top-level or dist directories... no
checking if --disable-cryptography option specified... no
checking if --disable-hash option specified... no
checking if --disable-queue option specified... no
checking if --disable-replication option specified... no
checking if --disable-statistics option specified... no
checking if --disable-verify option specified... no
checking if --enable-compat185 option specified... no
checking if --enable-cxx option specified... no
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-mingw option specified... no
checking if --enable-o_direct option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-pthread_self option specified... no
checking if --enable-rpc option specified... yes
checking if --enable-smallbuild option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... _rpmdb
checking for ar... ar
checking for chmod... chmod
checking for cp... cp
checking for ln... ln
checking for mkdir... mkdir
checking for ranlib... ranlib
checking for ranlib... /usr/bin/ranlib
checking for rm... rm
checking for rpcgen... rpcgen
checking for sh... sh
checking for sh... /bin/sh
checking for true... true
checking for strip... strip
checking for strip... /usr/bin/strip
checking for a BSD-compatible install... /usr/bin/install -c
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking whether we are using gcc version 2.96... no
checking whether g++ requires -fhandle-exceptions... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by cc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... no
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking SOSUFFIX from libtool... .so
checking MODSUFFIX from libtool... .so
checking JMODSUFFIX from libtool... .so
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking for struct stat.st_blksize... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for size_t... yes
checking for char... yes
checking size of char... 1
checking for unsigned char... yes
checking size of unsigned char... 1
checking for short... yes
checking size of short... 2
checking for unsigned short... yes
checking size of unsigned short... 2
checking for int... yes
checking size of int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for long... yes
checking size of long... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for long long... yes
checking size of long long... 8
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for size_t... (cached) yes
checking size of size_t... 4
checking for char *... yes
checking size of char *... 4
checking for u_char... yes
checking for u_short... yes
checking for u_int... yes
checking for u_long... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for int16_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for u_int64_t... yes
checking for int64_t... yes
checking for ssize_t... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for ANSI C exit success/failure values... yes
checking for library containing fdatasync... none required
checking for library containing sched_yield... none required
checking for main in -lpthread... yes
checking for main in -lm... yes
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for mutexes... POSIX/pthreads/library
checking for getcwd... yes
checking for getopt... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for raise... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
checking for _fstati64... no
checking for clock_gettime... no
checking for directio... no
checking for fchmod... yes
checking for fcntl... yes
checking for fdatasync... yes
checking for ftruncate... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for getuid... yes
checking for pstat_getdynamic... no
checking for rand... yes
checking for sched_yield... yes
checking for select... yes
checking for snprintf... yes
checking for srand... yes
checking for sysconf... yes
checking for vsnprintf... yes
checking for yield... no
checking for pread... yes
checking for pwrite... yes
checking for fcntl/F_SETFD... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for mlock... yes
checking for munlock... yes
checking for mmap... yes
checking for munmap... yes
checking for shmget... yes
checking "rpcgen -C" build of db_server.h... no
checking "rpcgen" build of db_server.h... no
configure: error: Unable to build RPC support: rpcgen failed.
make: *** No rule to make target `listobjs'.  Stop.
configure: error: /bin/sh './configure' failed for db3

now what do i do? please help me

jschiwal 06-23-2007 03:01 PM

RPM produces a Berkley Database. Did you also have db installed? Check if you have libdb-4.4.so and libdb_cxx-4.4.so. The error message says something about rpmgen failed. You should have rpmgen installed as part of your glibc installation. I use SuSE, so package names like db-devel and glibc-devel probably would have little meaning for you, as you have been installing from source and should have the headers already.

Read through the README, INSTALL, the config.log and "./configure --help" very carefully because you might need to indicate where the source files are for some of the other packages you installed.

h_r0019 06-24-2007 03:24 AM

i could solve that error, but i don't have glibc-devel and db-devel.
now i have this problem in configure:

....
checking for munmap... yes
checking for shmget... yes
checking "rpcgen -C" build of db_server.h... no
checking "rpcgen" build of db_server.h... no
configure: error: Unable to build RPC support: rpcgen failed.

druuna 06-24-2007 05:37 AM

Hi,

You don't mention it, so this could be 'old news', but there is a RPM LFS Hint that deals with installing RPM on a LFS box (All prerequisites and dependencies are also mentioned).

Hope this helps.

h_r0019 06-24-2007 06:56 AM

I do that ,but i get the following error for Neon configure.

....
checking expat.h presence... no
checking for expat.h... no
checking for xml2-config... no
configure: error: no XML parser was found: expat or libxml 2.x required

I do config with "./configure --prefix=/usr --enable-share --whitout-libxml2" but i get the same error.

now, what can i do?

h_r0019 06-24-2007 07:29 AM

I searched for this error, and once found a response that i should
ensure that expat.h is in my $path, which it is.
I install expat-2.0.0 ,then install neon.
but
about rpm configure i get the following error again


....
checking "rpcgen -C" build of db_server.h... no
checking "rpcgen" build of db_server.h... no
configure: error: Unable to build RPC support: rpcgen failed.
make: *** No rule to make target `listobjs'. Stop.
configure: error: /bin/sh './configure' failed for db3

druuna 06-24-2007 07:33 AM

Hi,

Looks like xml2 isn't (correctly) installed. Its one of the prerequisites (BLFS libxml2).

You do need to check if dependencies and prerequisites are met, otherwise all sorts of things can (and will) go wrong.......

Hope this helps.

h_r0019 06-25-2007 01:34 AM

I do that and then config rpm-4.4.6 .
i get the following error .

....
checking for munlock... yes
checking for mmap... yes
checking for munmap... yes
checking for shmget... yes
checking "rpcgen -C" build of db_server.h... no
checking "rpcgen" build of db_server.h... no
configure: error: Unable to build RPC support: rpcgen failed.

now, what should i do?

druuna 06-25-2007 06:13 AM

Hi,

db_server.h is part of the Berkeley DB-4.4.20 package (which is one of the rpm prerequisites).

Did you install this package?

If not: Like I stated before, you need to check and satisfy _ALL_ dependencies and prerequisites!

h_r0019 06-25-2007 06:24 AM

yes ,i install Berkeley DB-4.4.20 package for LFS.
i install all packages in lfs-6.2 ebook.

druuna 06-25-2007 07:52 AM

Hi,

What does the following command show you: which rpcgen?
It should come back with: /usr/bin/rpcgen (and maybe some other lines, but this is the important one).

h_r0019 06-25-2007 07:57 AM

command

$find / -name rpcgen

shows me

/tools/bin/rpcgen
/usr/bin/rpcgen

druuna 06-25-2007 08:00 AM

Hi,

That's great, but that wasn't my question.

What about which rpcgen ............

h_r0019 06-26-2007 12:11 AM

this command dosen't work in lfs system.I get following error for it.

root:/# which rpcgen
bash: which: command not found

but in host answer is:

[root@localhost ~]# which rpcgen
/usr/bin/rpcgen

h_r0019 06-26-2007 03:12 AM

i solve the problem by:

chmod u+x ./configure
sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' ./configure

but now i have following error in make :

.....
/sources/rpm-4.4.6/db3/gen_db_server.c:1186: undefined reference to `__txn_discard_proc_rpmdb'
gen_db_server.o: In function `__db_txn_prepare_4004_svc':
/sources/rpm-4.4.6/db3/gen_db_server.c:1201: undefined reference to `__txn_prepare_proc_rpmdb'
collect2: ld returned 1 exit status
make[2]: *** [berkeley_db_svc] Error 1
make[2]: Leaving directory `/sources/rpm-4.4.6/db3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/rpm-4.4.6'
make: *** [all] Error 2


All times are GMT -5. The time now is 03:21 PM.