LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   man-db-2.4.3 error (lfs 6.45) (https://www.linuxquestions.org/questions/linux-from-scratch-13/man-db-2-4-3-error-lfs-6-45-a-509214/)

javacougar 12-10-2006 05:22 PM

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

javacougar 12-15-2006 09:15 AM

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

Narc0tiq 12-15-2006 07:04 PM

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.

javacougar 12-18-2006 07:42 PM

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

Narc0tiq 12-19-2006 02:52 AM

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



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