root@srvfw:~/tmp/squid_kerb_ldap# make
make all-recursive
make[1]: Entrando no diretório `/root/tmp/squid_kerb_ldap'
make[2]: Entrando no diretório `/root/tmp/squid_kerb_ldap'
gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-unknown-pragmas -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow -MT support_ldap.o -MD -MP -MF .deps/support_ldap.Tpo -c -o support_ldap.o support_ldap.c
support_ldap.c:33: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c:34: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
support_ldap.c:50: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c:50: error: expected declaration specifiers or ‘...’ before ‘LDAPMessage’
support_ldap.c:51: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c:170:3: error: #error "No rebind functione defined"
support_ldap.c:277: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c: In function ‘check_AD’:
support_ldap.c:278: error: ‘LDAPMessage’ undeclared (first use in this function)
support_ldap.c:278: error: (Each undeclared identifier is reported only once
support_ldap.c:278: error: for each function it appears in.)
support_ldap.c:278: error: ‘res’ undeclared (first use in this function)
cc1: warnings being treated as errors
support_ldap.c:279: error: ISO C90 forbids mixed declarations and code
support_ldap.c:293: error: implicit declaration of function ‘ldap_search_ext_s’
support_ldap.c:293: error: ‘ld’ undeclared (first use in this function)
support_ldap.c:293: error: ‘LDAP_SCOPE_BASE’ undeclared (first use in this function)
support_ldap.c:296: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
support_ldap.c:297: error: too many arguments to function ‘get_attributes’
support_ldap.c:300: error: implicit declaration of function ‘ldap_msgfree’
support_ldap.c:303: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
support_ldap.c:306: error: implicit declaration of function ‘ldap_count_entries’
support_ldap.c: At top level:
support_ldap.c:328: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c: In function ‘search_group_tree’:
support_ldap.c:329: error: ‘LDAPMessage’ undeclared (first use in this function)
support_ldap.c:329: error: ‘res’ undeclared (first use in this function)
support_ldap.c:330: error: ISO C90 forbids mixed declarations and code
support_ldap.c:366: error: ‘ld’ undeclared (first use in this function)
support_ldap.c:366: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
support_ldap.c:372: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
support_ldap.c:373: error: implicit declaration of function ‘ldap_err2string’
support_ldap.c:373: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:374: error: implicit declaration of function ‘ldap_unbind_s’
support_ldap.c:382: error: too many arguments to function ‘get_attributes’
support_ldap.c:384: error: too many arguments to function ‘get_attributes’
support_ldap.c:423: error: passing argument 5 of ‘search_group_tree’ makes integer from pointer without a cast
support_ldap.c:328: note: expected ‘int’ but argument is of type ‘char *’
support_ldap.c:423: error: too many arguments to function ‘search_group_tree’
support_ldap.c: At top level:
support_ldap.c:454: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c: In function ‘ldap_set_defaults’:
support_ldap.c:459: error: ‘LDAP_VERSION3’ undeclared (first use in this function)
support_ldap.c:460: error: implicit declaration of function ‘ldap_set_option’
support_ldap.c:460: error: ‘ld’ undeclared (first use in this function)
support_ldap.c:460: error: ‘LDAP_OPT_PROTOCOL_VERSION’ undeclared (first use in this function)
support_ldap.c:461: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
support_ldap.c:463: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:466: error: ‘LDAP_OPT_REFERRALS’ undeclared (first use in this function)
support_ldap.c:466: error: ‘LDAP_OPT_OFF’ undeclared (first use in this function)
support_ldap.c:469: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c: In function ‘ldap_set_ssl_defaults’:
support_ldap.c:558: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
support_ldap.c:485: error: unused parameter ‘margs’
support_ldap.c: At top level:
support_ldap.c:561: error: expected declaration specifiers or ‘...’ before ‘LDAP’
support_ldap.c:561: error: expected declaration specifiers or ‘...’ before ‘LDAPMessage’
support_ldap.c: In function ‘get_attributes’:
support_ldap.c:576: error: ‘LDAPMessage’ undeclared (first use in this function)
support_ldap.c:576: error: ‘msg’ undeclared (first use in this function)
support_ldap.c:577: error: ISO C90 forbids mixed declarations and code
support_ldap.c:586: error: implicit declaration of function ‘ldap_first_entry’
support_ldap.c:586: error: ‘ld’ undeclared (first use in this function)
support_ldap.c:586: error: ‘res’ undeclared (first use in this function)
support_ldap.c:586: error: implicit declaration of function ‘ldap_next_entry’
support_ldap.c:589: error: ‘BerElement’ undeclared (first use in this function)
support_ldap.c:589: error: ‘b’ undeclared (first use in this function)
support_ldap.c:590: error: ISO C90 forbids mixed declarations and code
support_ldap.c:592: error: implicit declaration of function ‘ldap_msgtype’
support_ldap.c:594: error: ‘LDAP_RES_SEARCH_ENTRY’ undeclared (first use in this function)
support_ldap.c:596: error: implicit declaration of function ‘ldap_first_attribute’
support_ldap.c:597: error: implicit declaration of function ‘ldap_next_attribute’
support_ldap.c:604: error: implicit declaration of function ‘ldap_get_values_len’
support_ldap.c:613: error: dereferencing pointer to incomplete type
support_ldap.c:614: error: dereferencing pointer to incomplete type
support_ldap.c:614: error: dereferencing pointer to incomplete type
support_ldap.c:615: error: dereferencing pointer to incomplete type
support_ldap.c:619: error: implicit declaration of function ‘ber_bvecfree’
support_ldap.c:621: error: implicit declaration of function ‘ldap_memfree’
support_ldap.c:623: error: implicit declaration of function ‘ber_free’
support_ldap.c:625: error: ‘LDAP_RES_SEARCH_REFERENCE’ undeclared (first use in this function)
support_ldap.c:629: error: ‘LDAP_RES_SEARCH_RESULT’ undeclared (first use in this function)
support_ldap.c: At top level:
support_ldap.c:648: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
support_ldap.c: In function ‘get_memberof’:
support_ldap.c:811: error: ‘LDAP’ undeclared (first use in this function)
support_ldap.c:811: error: ‘ld’ undeclared (first use in this function)
support_ldap.c:812: error: ‘LDAPMessage’ undeclared (first use in this function)
support_ldap.c:812: error: ‘res’ undeclared (first use in this function)
support_ldap.c:816: error: ISO C90 forbids mixed declarations and code
support_ldap.c:892: error: implicit declaration of function ‘tool_ldap_open’
support_ldap.c:920: error: implicit declaration of function ‘ldap_unbind’
support_ldap.c:972: error: implicit declaration of function ‘ldap_simple_bind_s’
support_ldap.c:973: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
support_ldap.c:974: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:982: error: implicit declaration of function ‘ldap_set_rebind_proc’
support_ldap.c:982: error: ‘ldap_simple_rebind’ undeclared (first use in this function)
support_ldap.c:1012: error: too many arguments to function ‘check_AD’
support_ldap.c:1014: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:1036: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
support_ldap.c:1043: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:1056: error: too many arguments to function ‘get_attributes’
support_ldap.c:1058: error: too many arguments to function ‘get_attributes’
support_ldap.c:1102: error: passing argument 5 of ‘search_group_tree’ makes integer from pointer without a cast
support_ldap.c:328: note: expected ‘int’ but argument is of type ‘char *’
support_ldap.c:1102: error: too many arguments to function ‘search_group_tree’
support_ldap.c:1165: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:1172: error: too many arguments to function ‘get_attributes’
support_ldap.c:1198: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
support_ldap.c:1202: error: too many arguments to function ‘get_attributes’
support_ldap.c:1256: error: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
make[2]: ** [support_ldap.o] Erro 1
make[2]: Saindo do diretório `/root/tmp/squid_kerb_ldap'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/root/tmp/squid_kerb_ldap'
make: ** [all] Erro 2