On Fri, 2 Dec 2011 17:03:30 +0000
John Burrell <[email protected]> wrote:
> As you can see, only one line of code is changed in two files. May be a sed
> instead?
Maybe:
sed -i 's#DB_VERSION_MAJOR == 4.*#(&) || DB_VERSION_MAJOR == 5#' \
{sasldb/db_berkeley.c,utils/dbconverter-2.c}
I can confirm that it fixes compiling with Berkeley db 5.2.36
Without it the error looks like this:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -Wall -W -g -O2 -MT
db_berkeley.lo -MD -MP -MF .deps/db_berkeley.Tpo -c db_berkeley.c -fPIC -DPIC
-o db_berkeley.lo
db_berkeley.c: In function 'berkeleydb_open':
db_berkeley.c:106:2: warning: passing argument 2 of '(*mbdb)->open' from
incompatible pointer type [enabled by default]
db_berkeley.c:106:2: note: expected 'struct DB_TXN *' but argument is of type
'const char *'
db_berkeley.c:106:2: warning: passing argument 4 of '(*mbdb)->open' makes
pointer from integer without a cast [enabled by default]
db_berkeley.c:106:2: note: expected 'const char *' but argument is of type 'int'
db_berkeley.c:106:2: error: too few arguments to function '(*mbdb)->open'
make[2]: *** [db_berkeley.lo] Error 1
make[2]: Leaving directory `/home/andy/cyrus-sasl-2.1.23/sasldb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andy/cyrus-sasl-2.1.23'
make: *** [all] Error 2
andy@eccles:~/cyrus-sasl-2.1.23$
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page