Compile problem inn-STABLE-20000908

Heath Kehoe heath.kehoe at intermec.com
Sat Sep 9 19:21:31 UTC 2000


>Hi,
>
>make[3]: Entering directory `/usr/local/src/inn-STABLE-20000908/storage/ovdb'
>gcc -g -O2 -I../include   -I../../include -I.. -I/usr/local/BerkeleyDB/include -c ovdb.c -o ovdb.o
>ovdb.c: In function `ovdb_open_berkeleydb':
>ovdb.c:642: warning: assignment from incompatible pointer type
>ovdb.c: In function `ovdb_expiregroup':
>ovdb.c:1547: `token' undeclared (first use in this function)
>ovdb.c:1547: (Each undeclared identifier is reported only once
>ovdb.c:1547: for each function it appears in.)
>make[3]: *** [ovdb.o] Error 1
>make[3]: Leaving directory `/usr/local/src/inn-STABLE-20000908/storage/ovdb'
>make[2]: *** [methods] Error 1
>make[2]: Leaving directory `/usr/local/src/inn-STABLE-20000908/storage'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory `/usr/local/src/inn-STABLE-20000908/storage'
>make: *** [all-storage] Error 2
>

This patch should fix it:


diff -c -r1.5.2.7 ovdb.c
*** storage/ovdb/ovdb.c	2000/09/05 23:24:47	1.5.2.7
--- storage/ovdb/ovdb.c	2000/09/09 19:18:07
***************
*** 1544,1550 ****
  	    memcpy(&ovd, val.data, sizeof ovd);
  
  	    ah = NULL;
! 	    if (!SMprobe(EXPENSIVESTAT, &token, NULL) || OVstatall) {
  		if((ah = SMretrieve(ovd.token, RETR_STAT)) == NULL) { 
  		    delete = 1;
  		} else
--- 1544,1550 ----
  	    memcpy(&ovd, val.data, sizeof ovd);
  
  	    ah = NULL;
! 	    if (!SMprobe(EXPENSIVESTAT, &ovd.token, NULL) || OVstatall) {
  		if((ah = SMretrieve(ovd.token, RETR_STAT)) == NULL) { 
  		    delete = 1;
  		} else


-heath



More information about the inn-workers mailing list