LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 06-23-2007, 06:26 AM   #1
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Rep: Reputation: 0
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

Last edited by XavierP; 06-23-2007 at 03:56 PM.
 
Old 06-23-2007, 03:01 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 06-24-2007, 03:24 AM   #3
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 06-24-2007, 05:37 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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.
 
Old 06-24-2007, 06:56 AM   #5
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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?

Last edited by h_r0019; 06-24-2007 at 06:59 AM.
 
Old 06-24-2007, 07:29 AM   #6
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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

Last edited by h_r0019; 06-24-2007 at 07:31 AM.
 
Old 06-24-2007, 07:33 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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.
 
Old 06-25-2007, 01:34 AM   #8
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 06-25-2007, 06:13 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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!
 
Old 06-25-2007, 06:24 AM   #10
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
yes ,i install Berkeley DB-4.4.20 package for LFS.
i install all packages in lfs-6.2 ebook.
 
Old 06-25-2007, 07:52 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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).
 
Old 06-25-2007, 07:57 AM   #12
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
command

$find / -name rpcgen

shows me

/tools/bin/rpcgen
/usr/bin/rpcgen
 
Old 06-25-2007, 08:00 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

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

What about which rpcgen ............
 
Old 06-26-2007, 12:11 AM   #14
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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

Last edited by h_r0019; 06-26-2007 at 03:38 AM.
 
Old 06-26-2007, 03:12 AM   #15
h_r0019
LQ Newbie
 
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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

Last edited by h_r0019; 06-26-2007 at 03:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Via RPM mraliz Linux From Scratch 6 08-29-2006 06:13 AM
Building an LFS system from another system z3r0star21 Linux From Scratch 6 11-08-2005 03:13 AM
installing rpm on LFS 6.1 HintS_Cumulus Linux From Scratch 4 08-26-2005 03:45 PM
How do i install a new RPM system Homer_Sexual Linux - Software 0 09-14-2004 05:18 PM
jade install on a lfs system natto34 Linux - Software 0 07-01-2002 03:08 PM


All times are GMT -5. The time now is 12:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration