Alex Rousskov wrote:
>Please post the output of
> awk '/checking.for.mallopt/,/result:/' config.log
>
>
>
here the result:
configure:42213: checking for mallopt
configure:42270: gcc -o conftest -Wall -g -O2 -g -pthread conftest.c
-lpthread -lm >&5
/var/tmp//ccQv9b17.o(.text+0x14): In function `main':
/data/source/squid-3.0.PRE6/conftest.c:222: undefined reference to `mallopt'
/var/tmp//ccQv9b17.o(.data+0x0):/data/source/squid-3.0.PRE6/conftest.c:221:
undefined reference to `mallopt'
configure:42276: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "Squid Web Proxy"
| #define PACKAGE_TARNAME "squid"
| #define PACKAGE_VERSION "3.0.PRE6"
| #define PACKAGE_STRING "Squid Web Proxy 3.0.PRE6"
| #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/"
| #define PACKAGE "squid"
| #define VERSION "3.0.PRE6"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBDL 1
| #define HAVE_DLERROR 1
| #define CACHE_HTTP_PORT 3128
| #define CACHE_ICP_PORT 3130
| #define CONFIG_HOST_TYPE "i386-unknown-freebsd6.1"
| #define SQUID_CONFIGURE_OPTIONS "'--prefix=/usr/local/squid'
'--enable-carp' '--enable-storeio=diskd null ufs'
'--enable-removal-policies=heap lru' '--enable-delay-pools'
'--enable-useragent-log' '--enable-referer-log'
'--enable-kill-parent-hack' '--enable-cachemgr-hostname=core.bps.co.id'
'--enable-htcp' '--enable-cache-digests' '--enable-poll'
'--disable-http-violations' '--enable-ipf-transparent'
'--enable-internal-dns' '--enable-truncate' '--enable-underscores'
'--enable-auth=basic digest' '--enable-basic-auth-helpers=NCSA PAM'
'--enable-digest-auth-helpers=password'
'--enable-external-acl-helpers=ip_user unix_group'
'--enable-stacktraces' '--enable-x-accelerator-vary' '--enable-snmp'
'--enable-ssl' '--enable-icap-support' '--with-pthreads'"
| #define _SQUID_INLINE_ inline
| #define _USE_INLINE_
| #define USE_CARP 1
| #define DELAY_POOLS 1
| #define ESI 0
| #define ICAP_CLIENT 0
| #define USE_USERAGENT_LOG 1
| #define USE_REFERER_LOG 1
| #define USE_WCCP 1
| #define USE_WCCPv2 1
| #define KILL_PARENT_OPT 1
| #define SQUID_SNMP 1
| #define CACHEMGR_HOSTNAME "core.bps.co.id"
| #define USE_HTCP 1
| #define USE_SSL 1
| #define USE_OPENSSL 1
| #define USE_CACHE_DIGESTS 1
| #define HTTP_VIOLATIONS 0
| #define IPF_TRANSPARENT 1
| #define USE_IDENT 1
| #define DISABLE_POOLS 0
| #define USE_UNLINKD 1
| #define PRINT_STACK_TRACE 1
| #define X_ACCELERATOR_VARY 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FNMATCH_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GRP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MATH_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_NET_PFVAR_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_OPENSSL_ERR_H 1
| #define HAVE_OPENSSL_MD5_H 1
| #define HAVE_OPENSSL_SSL_H 1
| #define HAVE_OPENSSL_ENGINE_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_POLL_H 1
| #define HAVE_PWD_H 1
| #define HAVE_REGEX_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_ENDIAN_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MSG_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_GRP_H 1
| #define HAVE_NSS_H 1
| #define HAVE_DB_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_NETINET_IF_ETHER_H 1
| #define HAVE_NETINET_IP_COMPAT_H 1
| #define HAVE_NETINET_IP_FIL_H 1
| #define HAVE_NETINET_IP_NAT_H 1
| #define HAVE_NETINET_IPL_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_RESOLV_H 1
| #define HAVE_ANSI_PROTOTYPES 1
| #define HAVE_STRUCT_TM_TM_GMTOFF 1
| #define HAVE_STRUCT_RUSAGE 1
| #define HAVE_STRUCT_IPHDR_IP_HL 1
| #define SIZEOF_VOID_P 4
| #define SIZEOF_INT8_T 1
| #define HAVE_INT8_T 1
| #define SIZEOF_CHAR 1
| #define HAVE_CHAR 1
| #define SIZEOF_U_INT8_T 1
| #define HAVE_U_INT8_T 1
| #define SIZEOF_UINT8_T 1
| #define HAVE_UINT8_T 1
| #define SIZEOF_INT16_T 2
| #define HAVE_INT16_T 1
| #define SIZEOF_SHORT 2
| #define HAVE_SHORT 1
| #define SIZEOF_INT 4
| #define HAVE_INT 1
| #define SIZEOF_U_INT16_T 2
| #define HAVE_U_INT16_T 1
| #define SIZEOF_UINT16_T 2
| #define HAVE_UINT16_T 1
| #define SIZEOF_INT32_T 4
| #define HAVE_INT32_T 1
| #define SIZEOF_LONG 4
| #define HAVE_LONG 1
| #define SIZEOF_U_INT32_T 4
| #define HAVE_U_INT32_T 1
| #define SIZEOF_UINT32_T 4
| #define HAVE_UINT32_T 1
| #define SIZEOF_INT64_T 8
| #define HAVE_INT64_T 1
| #define SIZEOF_LONG_LONG 8
| #define HAVE_LONG_LONG 1
| #define SIZEOF_U_INT64_T 8
| #define HAVE_U_INT64_T 1
| #define SIZEOF_UINT64_T 8
| #define HAVE_UINT64_T 1
| #define HAVE_PID_T 1
| #define SIZEOF_SIZE_T 4
| #define HAVE_SIZE_T 1
| #define HAVE_SSIZE_T 1
| #define SIZEOF_OFF_T 8
| #define HAVE_OFF_T 1
| #define HAVE_MODE_T 1
| #define HAVE_FD_MASK 1
| #define HAVE_ALLOCA 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_UNIXSOCKET 1
| #define HAVE_LIBM 1
| #define HAVE_LIBPTHREAD 1
| #define HAVE_BCOPY 1
| #define HAVE_FCHMOD 1
| #define HAVE_GETDTABLESIZE 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_GETPASS 1
| #define HAVE_GETRLIMIT 1
| #define HAVE_GETRUSAGE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_LRAND48 1
| /* end confdefs.h. */
| /* Define mallopt to an innocuous variant, in case <limits.h> declares
mallopt.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define mallopt innocuous_mallopt
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char mallopt (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef mallopt
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char mallopt ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_mallopt) || defined (__stub___mallopt)
| choke me
| #else
| char (*f) () = mallopt;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != mallopt;
| ;
| return 0;
| }
configure:42301: result: no
>and perhaps
> fgrep mallopt /usr/include/*.h
>
>
fgrep mallopt /usr/include/*.h return nothing
>In other words, let's see whether Squid found mallopt during ./configure
>run and where mallopt is actually declared in your system headers.
>
>
>
>
>>the OS is 6.1-RELEASE-p15 with 1 Gigs of ram
>>
>>
>
>What is the name of your OS? FreeBSD?
>
>
>
Yes its FreeBSD sorry not to mention it earlier
>>and the squid configure option is:
>>
>>./configure --prefix=/usr/local/squid --enable-dependency-tracking
>>--enable-carp '--enable-storeio=coss diskd null ufs'
>>'--enable-removal-policies=heap lru' --enable-delay-pools
>>--enable-useragent-log --enable-referer-log --enable-kill-parent-hack
>>--enable-htcp --enable-cache-digests --enable-poll
>>--disable-http-violations --enable-ipf-transparent
>>--enable-internal-dns --enable-truncate --enable-underscores
>>'--enable-auth=basic digest' '--enable-basic-auth-helpers=NCSA PAM'
>>--enable-digest-auth-helpers=password
>>'--enable-external-acl-helpers=ip_user unix_group' --enable-stacktraces
>>--enable-x-accelerator-vary --enable-dlmalloc --enable-snmp --enable-ssl
>>--enable-icap-support --with-pthreads
>>
>>
>
>AFAIK, there is no --enable-icap-support option. There is
>--enable-icap-client
>
>HTH,
>
>Alex.
>
>
>
>
>
well from the configure option, there is --enable-icap-client not the
--enable-icap-support
core# ./configure --help | grep cap
--enable-icap-client Enable the ICAP client.
TIA
Zen
Received on Wed Aug 08 2007 - 20:44:35 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT