Re: Installed pks 0.9.4-4 (i386 source)
On Mon, Jan 01, 2001 at 04:46:32PM +0100, Cristian Ionescu-Idbohrn wrote:
>
> To make it build on a potato box, I have to modify debian/rules to do
> either this:
>
> $(MAKE) INCLUDES=-Idb2-sleepycat/dist
>
> or this:
>
> $(MAKE) INCLUDES=-I/usr/include/db2
>
> instead of this:
>
> $(MAKE)
>
> If I don't, it will fail with:
>
> gcc -Wall -pedantic -g -O -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1
> -DHAVE_SOCKLEN_T=1 -c -o kd_delete.o kd_delete.c
> kd_delete.c: In function `delete_word_from_worddb':
> kd_delete.c:59: too many arguments to function
> kd_delete.c:67: `DB_GET_BOTH' undeclared (first use in this function)
> kd_delete.c:67: (Each undeclared identifier is reported only once
> kd_delete.c:67: for each function it appears in.)
> kd_delete.c:81: `DB_NEXT_DUP' undeclared (first use in this function)
> make[1]: *** [kd_delete.o] Error 1
>
> So, there's something wrong somewhere :(.
There's nothing wrong. It's just that on woody, the default db.h is
pointing to db2/db.h, and on potato (glibc 2.1) it is actually glibc's
db1.85 header. I would suggest just adding the -I/usr/include/db2 for
both, just to avoid problems in the future where /usr/include/db.h might
disappear (since now it's only there for backward compatiblity).
Ben
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: