i tried the settings you mentioned (-Dstrerror_r=strerror (DEFS) and -lresolv (LIBS)). you can see the results below.
it seems that the solaris strerror-function (string.h) uses only one argument, the error-number.
any ideas?
kind regards
nikolaj wicker
======================== man strerror says: .... #include <string.h>
char *strerror(int errnum);
DESCRIPTION The strerror() function maps the error number in errnum to an error message string, and returns a pointer to that string. It uses the same set of error messages as perror(3C). The returned string should not be overwritten.
RETURN VALUES The strerror() function returns the string "Unknown error" if errnum is out of range. .....
make clean
make
source='clamav-milter.c' object='clamav-milter.o' libtool=no \
depfile='.deps/clamav-milter.Po' tmpdepfile='.deps/clamav-milter.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -Dstrerror_r=strerror -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clamav\" -DVERSION=\"0.60\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DBUFFSIZE=131072 -DFBUFFSIZE=16384 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_INT_TYPES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_INTTYPES_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_MALLOC_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DCLAMD_USE_SYSLOG=1 -DCLAMAVUSER=\"clamav\" -DCLAMAVGROUP=\"clamav\" -DDB1NAME=\"viruses.db\" -DDB2NAME=\"viruses.db2\" -DDATADIR=\"/usr/local/share/clamav\" -DCONFDIR=\"/etc\" -DC_URANDOM=1 -DCL_THREAD_SAFE=1 -DC_SOLARIS=1 -DWORDS_BIGENDIAN=1 -DWORDS_BIGENDIAN=1 -I. -I. -I../clamd -I../libclamav -g -O2 -c `test -f 'clamav-milter.c' || echo './'`clamav-milter.c
clamav-milter.c: In function `clamfi_envfrom':
clamav-milter.c:635: error: too many arguments to function `strerror'
clamav-milter.c:778: error: too many arguments to function `strerror'
*** Error code 1
make: Fatal error: Command failed for target `clamav-milter.o'
========================
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users