[NTLUG:Discuss] problems compiling ldap
Jay Urish
j at yourlinuxguru.com
Mon Sep 30 16:57:08 CDT 2002
here is line 329 (according to vi)
err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);
here are the surrounding lines.
--
ret->set_pagesize( ret, DEFAULT_DB_PAGE_SIZE );
/* likely should use ber_mem* routines */
err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);
if ( err != 0 ) {
int tmp = errno;
(void)ret->close(ret, 0);
errno = tmp;
LDBM_WUNLOCK;
return NULL;
}
--
end snip
At 06:45 PM 9/25/2002 -0500, you wrote:
>Jay Urish wrote:
>
>>here is a snip of what I am seeing
>>---
>>ldbm.c: In function `ldbm_open':
>>ldbm.c:329: warning: passing arg 2 of pointer to function from
>>incompatible pointer type
>>ldbm.c:329: warning: passing arg 4 of pointer to function makes pointer
>>from integer without a cast
>>ldbm.c:329: too few arguments to function
>>make[2]: *** [ldbm.o] Error 1
>>make[2]: Leaving directory `/usr/local/src/openldap-2.0.25/libraries/libldbm'
>>make[1]: *** [all-common] Error 1
>>make[1]: Leaving directory `/usr/local/src/openldap-2.0.25/libraries'
>>make: *** [all-common] Error 1
>>
>>Has anyone seen this before?
>>Jay
>
>
>Ya, bad code!
>
>It could be an incorrect header file ???.h that has an incorrect prototype
>or no prototype at all for the function attempting to be called.
>
>Copy line #329 of ldbm.c and let use see what it's trying to do.
>
>Check the Openldap mailing list archives and see if this has already been
>addressed.
More information about the Discuss
mailing list