Hi. I have a problem compiling perldap 1.4.1 om RedHat 7.1. I'm using the following software: GNU Make 3.79.1 gcc 2.96 / egcs 2.91.66 perl 5.6.0 I've seen threads describing this problem before, but using the 'perl5.6.0 Makefile.PL POLLUTE=1' command didn't help much. :( The error message is huge, but the fault seems to be lines like this(from API.c): static void * perldap_malloc(size_t size); No wonder gcc gets the hiccpus. ;) Any thoughts? Error message (sorry for the length): /lib/perl5/5.6.0/ExtUtils/xsubpp -nolinenumbers -typemap /usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap API.xs > API.xsc && mv API.xsc API.c gcc -c -fno-strict-aliasing -DPERL_POLLUTE -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.41\" -DXS_VERSION=\"1.41\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DLDAPV3 API.c In file included from API.c:57: constant.h: In function `constant': constant.h:753: incompatible types in return API.c: At top level: API.c:89: parse error before `internal_rebind_proc' API.c:90: warning: data definition has no type or storage class API.c:92: parse error before `ldap_default_rebind_proc' API.c:93: warning: data definition has no type or storage class API.c: In function `perldap_init': API.c:133: storage size of `memalloc_fns' isn't known API.c:141: `LDAP_OPT_MEMALLOC_FN_PTRS' undeclared (first use in this function) API.c:141: (Each undeclared identifier is reported only once API.c:141: for each function it appears in.) API.c: At top level: API.c:526: parse error before `internal_rebind_proc' API.c:567: parse error before `ldap_default_rebind_proc' API.c: In function `XS_Mozilla__LDAP__API_ldap_create_sort_control': API.c:1053: `LDAPsortkey' undeclared (first use in this function) API.c:1053: `sortKeyList' undeclared (first use in this function) API.c:1053: parse error before `)' API.c:1054: parse error before `char' API.c:1059: `RETVAL' undeclared (first use in this function) API.c:1059: `ctrl_iscritical' undeclared (first use in this function) API.c:1059: `ctrlp' undeclared (first use in this function) API.c:1062: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_create_sort_keylist': API.c:1073: `LDAPsortkey' undeclared (first use in this function) API.c:1073: `sortKeyList' undeclared (first use in this function) API.c:1074: parse error before `char' API.c:1078: `RETVAL' undeclared (first use in this function) API.c:1078: `string_rep' undeclared (first use in this function) API.c:1081: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_create_virtuallist_control': API.c:1093: `LDAPVirtualList' undeclared (first use in this function) API.c:1093: `ldvlistp' undeclared (first use in this function) API.c:1093: parse error before `)' API.c:1094: parse error before `*' API.c:1098: `RETVAL' undeclared (first use in this function) API.c:1098: `ctrlp' undeclared (first use in this function) API.c:1101: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_free_friendlymap': API.c:1397: `FriendlyMap' undeclared (first use in this function) API.c:1397: `map' undeclared (first use in this function) API.c:1397: parse error before `)' API.c: In function `XS_Mozilla__LDAP__API_ldap_free_sort_keylist': API.c:1413: `LDAPsortkey' undeclared (first use in this function) API.c:1413: `sortKeyList' undeclared (first use in this function) API.c:1413: parse error before `)' API.c: In function `XS_Mozilla__LDAP__API_ldap_friendly_name': API.c:1442: `FriendlyMap' undeclared (first use in this function) API.c:1442: `map' undeclared (first use in this function) API.c:1442: parse error before `)' API.c:1443: parse error before `char' API.c:1446: `RETVAL' undeclared (first use in this function) API.c:1447: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_get_lang_values': API.c:1540: warning: initialization makes pointer from integer without a cast API.c: In function `XS_Mozilla__LDAP__API_ldap_get_lang_values_len': API.c:1561: warning: initialization makes pointer from integer without a cast API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_destroy': API.c:1761: `LDAPMemCache' undeclared (first use in this function) API.c:1761: `cache' undeclared (first use in this function) API.c:1761: parse error before `)' API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_flush': API.c:1774: `LDAPMemCache' undeclared (first use in this function) API.c:1774: `cache' undeclared (first use in this function) API.c:1774: parse error before `)' API.c:1775: parse error before `char' API.c:1778: `dn' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_get': API.c:1790: `LDAPMemCache' undeclared (first use in this function) API.c:1790: `cachep' undeclared (first use in this function) API.c:1791: parse error before `int' API.c:1794: `RETVAL' undeclared (first use in this function) API.c:1797: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_init': API.c:1811: `LDAPMemCache' undeclared (first use in this function) API.c:1811: `cachep' undeclared (first use in this function) API.c:1812: parse error before `int' API.c:1816: `RETVAL' undeclared (first use in this function) API.c:1819: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_set': API.c:1833: `LDAPMemCache' undeclared (first use in this function) API.c:1833: `cache' undeclared (first use in this function) API.c:1833: parse error before `)' API.c:1834: parse error before `int' API.c:1837: `RETVAL' undeclared (first use in this function) API.c:1838: `targ' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_memcache_update': API.c:1849: `LDAPMemCache' undeclared (first use in this function) API.c:1849: `cache' undeclared (first use in this function) API.c:1849: parse error before `)' API.c: In function `XS_Mozilla__LDAP__API_ldap_set_rebind_proc': API.c:2773: too many arguments to function `ldap_set_rebind_proc' API.c:2779: warning: passing arg 2 of `ldap_set_rebind_proc' from incompatible pointer type API.c:2779: too many arguments to function `ldap_set_rebind_proc' API.c: In function `XS_Mozilla__LDAP__API_ldap_set_default_rebind_proc': API.c:2812: `LDAP_REBINDPROC_CALLBACK' undeclared (first use in this function) API.c:2812: parse error before `)' API.c:2812: too many arguments to function `ldap_set_rebind_proc' API.c: In function `XS_Mozilla__LDAP__API_ldap_url_parse': API.c:2932: structure has no member named `lud_options' API.c: In function `XS_Mozilla__LDAP__API_ldap_version': API.c:3042: `LDAPVersion' undeclared (first use in this function) API.c:3042: `ver' undeclared (first use in this function) API.c:3042: parse error before `)' API.c:3043: parse error before `int' API.c:3046: `RETVAL' undeclared (first use in this function) API.c:3047: `targ' undeclared (first use in this function) make: *** [API.o] Error 1 -- Mathias Meisfjordskar GNU/Linux addict.