Config problem

David Relson relson at osagesoftware.com
Thu Feb 6 05:49:03 CET 2003


At 11:35 PM 2/5/03, Mike Robinson wrote:
>Hi David,
>
>Thanks for responding so quickly.
>
> > As a question, what is in config.log?
>Here it is:
>configure:5841: checking for unsigned short
>configure:5866: gcc -c -g -O2  -Wall -W -Wstrict-prototypes 
>-Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align 
>-Wwrite-strings -Waggre
>gate-return -Wmissing-declarations -Wnested-externs -ggdb -fno-common 
>-Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type -Wfloat-equal 
>-Wpointer-arith -I/us
>r/local/BerkeleyDB.4.1/include  conftest.c >&5
>configure:5932: warning: function declaration isn't a prototype
>configure:5869: $? = 0
>configure:5872: test -s conftest.o
>configure:5875: $? = 0
>configure:5886: result: yes
>configure:5889: checking size of unsigned short

 From configure's mention of unsigned short, I thought that that was the 
problem.  Evidently it's what comes next (after unsigned short)...  Good 
thing we checked config.log.

>configure:6164: gcc -o conftest -g -O2  -Wall -W -Wstrict-prototypes 
>-Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align 
>-Wwrite-string
>s -Waggregate-return -Wmissing-declarations -Wnested-externs -ggdb 
>-fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type 
>-Wfloat-equal -Wpointer-ar
>ith 
>-I/usr/local/BerkeleyDB.4.1/include  -L/usr/local/BerkeleyDB.4.1/lib 
>conftest.c -lm  -ldb-4 >&5
>configure:6208: warning: function declaration isn't a prototype
>configure:6209: warning: function declaration isn't a prototype
>configure:6214: warning: function declaration isn't a prototype
>configure:6167: $? = 0
>configure:6169: ./conftest
>./conftest: error while loading shared libraries: libdb-4.1.so: cannot 
>load shared object file: No such file or directory
>configure:6172: $? = 127
>configure: program exited with status 127
>configure: failed program was:
>| #line 6124 "configure"


... [snip] ...

>I note configure seems to be having trouble with db4's lib directory. See 
>above:
>configure:6169: ./conftest
>./conftest: error while loading shared libraries: libdb-4.1.so: cannot 
>load shared object file: No such file or directory
>
>ls -l on /usr/local/BerkeleyDB.4.1/lib gives:
>-rw-r--r--    1 root     root       888412 Feb  6 11:24 libdb-4.1.a
>-rw-r--r--    1 root     root          724 Feb  6 11:24 libdb-4.1.l
>-rwxr-xr-x    1 root     root       729055 Feb  6 11:24 libdb-4.1.so
>lrwxrwxrwx    1 root     root           12 Feb  6 11:24 libdb-4.so -> 
>libdb-4.1.so
>lrwxrwxrwx    1 root     root           11 Feb  6 11:24 libdb.a -> libdb-4.1.a
>lrwxrwxrwx    1 root     root           12 Feb  6 11:24 libdb.so -> 
>libdb-4.1.so
>Hope this helps.
>
>MJR


Mike,

Your problem seems to be that configure can't find/use what you have.  Is 
the berkeley db path in /etc/ld.so.conf?  If not, add it.  Have you run 
ldconfig?  With luck that'll solve your problem.  Also, that's about all I 
know on the loading of shared libraries.  If it doesn't help, let the 
mailing list know.  There are others who know more about shared libraries 
than do I.

David





More information about the Bogofilter mailing list