Hello,
I am running into a bit of trouble compiling midgard-lib
with the ldap patch.

<http://bugs.midgard-project.org/view_bug_advanced_page.php?f_id=0000147>


I get the following compilation errors:

midgard 1.4.3 (patched for nadmin)

midgard.c: In function `mgd_auth_su':
midgard.c:577: warning: passing arg 1 of `strtok' discards qualifiers 
from pointer target type
midgard.c:580: parse error before `#'
midgard.c:588: parse error before `#'
midgard.c:609: parse error before `,'
midgard.c:621: parse error before `||'
midgard.c:427: warning: unused variable `grant'
midgard.c:420: warning: unused variable `i'
midgard.c:410: warning: unused variable `attrsonly'
midgard.c:411: warning: `result' might be used uninitialized in this 
function
midgard.c:626: warning: control reaches end of non-void function
midgard.c: At top level:
midgard.c:628: warning: type defaults to `int' in declaration of 
`mgd_release'
midgard.c:628: warning: parameter names (without types) in function 
declaration
midgard.c:628: conflicting types for `mgd_release'
../midgard/midgard.h:182: previous declaration of `mgd_release'
midgard.c:628: warning: data definition has no type or storage class
midgard.c:630: parse error before `if'
midgard.c:636: warning: type defaults to `int' in declaration of `res'
midgard.c:636: `mgd' undeclared here (not in a function)
midgard.c:638: `mgd' undeclared here (not in a function)
midgard.c:638: `req_sitegroup' undeclared here (not in a function)
midgard.c:638: warning: initialization makes integer from pointer 
without a cast
midgard.c:638: initializer element is not constant
midgard.c:638: warning: data definition has no type or storage class
midgard.c:645: parse error before `if'
midgard.c:650: warning: type defaults to `int' in declaration of `i'
midgard.c:650: warning: data definition has no type or storage class
midgard.c:651: parse error before `while'
midgard.c:668: warning: type defaults to `int' in declaration of 
`mgd_release'
midgard.c:668: warning: parameter names (without types) in function 
declaration
midgard.c:668: warning: data definition has no type or storage class
midgard.c:669: parse error before `}'
midgard.c:672: warning: type defaults to `int' in declaration of `grant'
midgard.c:672: `rootuser' undeclared here (not in a function)
midgard.c:672: `mgd' undeclared here (not in a function)
midgard.c:672: warning: data definition has no type or storage class
midgard.c:673: parse error before `if'
midgard.c:1340: conflicting types for `mgd_release'
midgard.c:668: previous declaration of `mgd_release'
make[1]: *** [midgard.lo] Error 1
make[1]: Leaving directory `/usr/local/downloads/midgard-lib-1.4.3/src'
make: *** [all-recursive] Error 1


Line 577 looks like this: userclean = strtok(username,"!*+");

has anyone else been able to add the patch?
Thanks.



-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to