On Fri, Apr 19, 2013 at 04:23:34PM -0400, Arran Cudbard-Bell wrote:
3.0 is now free of build errors when building under CIT.
Hmm... (totally clean git tree at HEAD) $ ./configure -C --enable-developer ... $ make ... src/modules/rlm_ldap/ldap.c: In function ‘mod_conn_create’: src/modules/rlm_ldap/ldap.c:1119: error: #pragma GCC diagnostic not allowed inside functions src/modules/rlm_ldap/ldap.c:1120: error: #pragma GCC diagnostic not allowed inside functions src/modules/rlm_ldap/ldap.c:1121: warning: implicit declaration of function ‘ldap_int_tls_config’ src/modules/rlm_ldap/ldap.c:1121: warning: nested extern declaration of ‘ldap_int_tls_config’ src/modules/rlm_ldap/ldap.c:1122: error: #pragma GCC diagnostic not allowed inside functions src/modules/rlm_ldap/ldap.c:1123: error: #pragma GCC diagnostic not allowed inside functions make: *** [build/objs/src/modules/rlm_ldap/ldap.lo] Error 1 make: *** Waiting for unfinished jobs.... $ gcc --version gcc-4.4.real (Debian 4.4.5-8) 4.4.5 Sure enough, moving the DIAG_{OFF,ON} to outside the function fixes it. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>