LinuxQuestions.org
Help answer threads with 0 replies.
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 12-10-2006, 06:22 PM   #1
javacougar
LQ Newbie
 
Registered: Dec 2006
Distribution: Debian
Posts: 9

Rep: Reputation: 0
man-db-2.4.3 error (lfs 6.45)


I am getting the following error when I configure man-db-2.4.3

configure:11921: error: Fatal: no supported database library/header found

Any suggestions and pointers would be greatly appreciated.

javacougar
 
Old 12-15-2006, 10:15 AM   #2
javacougar
LQ Newbie
 
Registered: Dec 2006
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Does anyone have any suggestions for where I might start looking for a solution. Has anyone had something similar happen while installing a different program?

javacougar
 
Old 12-15-2006, 08:04 PM   #3
Narc0tiq
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Rep: Reputation: 0
Can you give a bit more information, such as a few more lines of the ./configure log?

Also, since the error mentions something about a database, are you sure you have not skipped chapter 6.13 (Berkeley DB-4.4.20) and that you did not miss any steps from that chapter?

As a last resort, try:
Code:
./configure --prefix=/usr --enable-mb-groff --disable-setuid --with-db=db
(as opposed to the command given in the book), but note that this will likely not help - i.e. if the configure script couldn't find it before, it probably won't be able to find it now, either.
 
Old 12-18-2006, 08:42 PM   #4
javacougar
LQ Newbie
 
Registered: Dec 2006
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the response Narc0tiq. I have been quite busy lately, so my apologies for not responding sooner.

I reinstalled Berkeley DB-4.4.20 and also the modified configure paramters that you suggested but neither resolved the problem.

Here is some more from my configure log. Not sure why I didn't see all of these issues earlier, but I still have not been able to zero in what might be causing them:

This is the first couple errors I get.
Code:
 configure:2339: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2345: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2480: checking how to run the C preprocessor
configure:2515: gcc -E  conftest.c
configure:2521: $? = 0
configure:2553: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:2559: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "man-db"
| #define PACKAGE_TARNAME "man-db"
| #define PACKAGE_VERSION "2.4.3"
| #define PACKAGE_STRING "man-db 2.4.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "man-db"
| #define VERSION "2.4.3"
| #define MULTIBYTE_GROFF 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2598: result: gcc -E
configure:2622: gcc -E  conftest.c
configure:2628: $? = 0
configure:2660: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
So by this I conclude that there is some issue with gcc. One place I looked suggested that the following was not correct:
Code:
Configured with: /mnt/lfs/sources/gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
My understanding is that this should reflect what I used when I ran configure:
Code:
$ ./configure --prefix=/usr --enable-mb-groff --disable-setuid --with-db=db
Any pointers? I have this feeling I'll probably have to recompile gcc, but if I do I want to do it correctly this time. Any suggestions on what I might have done incorrectly?

javacougar
 
Old 12-19-2006, 03:52 AM   #5
Narc0tiq
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by javacougar
Thanks for the response Narc0tiq. I have been quite busy lately, so my apologies for not responding sooner.

I reinstalled Berkeley DB-4.4.20 and also the modified configure paramters that you suggested but neither resolved the problem.

Here is some more from my configure log. Not sure why I didn't see all of these issues earlier, but I still have not been able to zero in what might be causing them:

This is the first couple errors I get.
Code:
 configure:2339: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2345: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2480: checking how to run the C preprocessor
configure:2515: gcc -E  conftest.c
configure:2521: $? = 0
configure:2553: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:2559: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "man-db"
| #define PACKAGE_TARNAME "man-db"
| #define PACKAGE_VERSION "2.4.3"
| #define PACKAGE_STRING "man-db 2.4.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "man-db"
| #define VERSION "2.4.3"
| #define MULTIBYTE_GROFF 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2598: result: gcc -E
configure:2622: gcc -E  conftest.c
configure:2628: $? = 0
configure:2660: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
Those "errors" are normal tests, done by configure to figure out your system (I think). If not, they mean nothing to me. Also, those errors are at line 2500-ish in the configure file and the failure was at line 11921. Please post more lines from above the one you posted in your initial message.

Quote:
Originally Posted by javacougar
So by this I conclude that there is some issue with gcc. One place I looked suggested that the following was not correct:
Code:
Configured with: /mnt/lfs/sources/gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
Where did that come from? That is a correct configure command for the gcc that you should have in /tools right now - if it's in your current configure log then it's definitely not right, as you should be using the GCC that you recompiled back in chapter 6.12, the one whose configure line went:
Code:
../gcc-4.0.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
You should not be using the bootstrap gcc build anymore.

Quote:
Originally Posted by javacougar
My understanding is that this should reflect what I used when I ran configure:
Code:
$ ./configure --prefix=/usr --enable-mb-groff --disable-setuid --with-db=db
Any pointers? I have this feeling I'll probably have to recompile gcc, but if I do I want to do it correctly this time. Any suggestions on what I might have done incorrectly?
Again, context - where was the configure line you showed me located? It looks like a standard gcc configure line for a gcc that was built to run from /tools. So who's using it?

Here's my gcc -v line:
Code:
[root@lfs ~]$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 4.0.3
 
  


Reply

Tags
configure, error, gcc


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-6.1 Patch-2.5.4 //ERROR or No ERROR?? ukyo Linux From Scratch 1 08-25-2005 08:34 AM
Error executing man after kernel recompile vharishankar Slackware 1 02-18-2005 04:33 AM
kde man viewer error cool hat Linux - Software 15 06-21-2004 12:55 PM
man error juno Linux - General 2 10-28-2002 03:24 AM
$LFS Error cbates55 Linux - Distributions 10 12-29-2001 11:24 PM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
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