configure failure os x

David Minor dave at dminor.com
Wed Apr 2 18:47:11 CEST 2003


On Wed, 02 Apr 2003 10:31:32 -0500, David Relson wrote:
> Have you looked at config.log?  configure writes a fair amount of 
> info to it.  The last hunk of config.log generally shows what 
> configure was last doing.  In the case of a configure error, that 
> last hunk is the thing to look at.
> 
> Take a look and see what you find.  If what's there is totally 
> meaningless for you, find the first line that mentions Berkeley DB 
> and post the file from that line to the end of the file.
> 

>From my estimation, the following from the config file is what is 
failing although I'm not smart enough to know what or why.  And for 
some other info on my system:
dminor at ginger:~$ find / -name db.h 2>/dev/null
/include/db3/db.h
/include/kpathsea/db.h
/sw/include/db4/db.h
/usr/include/db.h

and I've tried using all those paths.

The second error that appears below actually happens 7 or 8 more times 
looking for different berekeley versions.

config.log
-------------------------------------------
configure:3421: checking for db_create in -ldb
configure:3443: gcc -o conftest -g -O2  -Wall -W -Wstrict-prototypes -
Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-
align -Wwrite-strings -Waggregate-return -Wmissing-declarations -
Wmissing-format-attribute -Wnested-externs -fno-common -Wchar-
subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-
equal -Wpointer-arith -Wno-system-headers -I/sw/include/db4  -
L/sw/include/db4  conftest.c -lm  -ldb >&5
configure:3443: warning: function declaration isn't a prototype
configure: In function `main':
configure:3444: warning: unused variable `foo'
ld: can't locate file for: -ldb
configure:3446: $? = 1
configure: failed program was:
| #line 3426 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "bogofilter"
| #define PACKAGE_TARNAME "bogofilter"
| #define PACKAGE_VERSION "0.11.1.3"
| #define PACKAGE_STRING "bogofilter 0.11.1.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "bogofilter"
| #define VERSION "0.11.1.3"
| #define YYTEXT_POINTER 1
| #define HAVE_LIBM 1
| #define HAVE_DECL_DB_CREATE 1
| #define HAVE_DECL_OPTRESET 1
| /* end confdefs.h.  */
| #include <db.h>
| int
| main ()
| {
| int foo=db_create((void *)0, (void *) 0, 0 )
|   ;
|   return 0;
| }
configure:3464: result: no
configure:3421: checking for db_create in -ldb-4.1
configure:3443: gcc -o conftest -g -O2  -Wall -W -Wstrict-prototypes -
Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-
align -Wwrite-strings -Waggregate-return -Wmissing-declarations -
Wmissing-format-attribute -Wnested-externs -fno-common -Wchar-
subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-
equal -Wpointer-arith -Wno-system-headers -I/sw/include/db4  -
L/sw/include/db4  conftest.c -lm  -ldb-4.1 >&5
configure:3443: warning: function declaration isn't a prototype
configure: In function `main':
configure:3444: warning: unused variable `foo'
ld: can't locate file for: -ldb-4.1
configure:3446: $? = 1
configure: failed program was:
| #line 3426 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "bogofilter"
| #define PACKAGE_TARNAME "bogofilter"
| #define PACKAGE_VERSION "0.11.1.3"
| #define PACKAGE_STRING "bogofilter 0.11.1.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "bogofilter"
| #define VERSION "0.11.1.3"
| #define YYTEXT_POINTER 1
| #define HAVE_LIBM 1
| #define HAVE_DECL_DB_CREATE 1
| #define HAVE_DECL_OPTRESET 1
| /* end confdefs.h.  */
| #include <db.h>
| int
| main ()
| {
| int foo=db_create((void *)0, (void *) 0, 0 )
|   ;
|   return 0;
| }
configure:3464: result: no




More information about the Bogofilter mailing list