Lionel Bouton wrote:
> mallinfo() does not exist in the GNU malloc library. So there
> must be a bug in squid which lead to try using mallinfo() even
> if you use the GNU library when called for the cache_object
> 'info' -> immediate crash.
When you compile with a external malloc library, you have to manually
stop configure from picking functions from libc that can't be used with
the external library.
For gnumalloc:
setenv ac_cv_func_mallinfo=no
setenv ac_cv_func_mallocblksize=no
setenv ac_cv_func_mallopt=no
./configure
make clean
make install
I have attached a completely untested patch for configure.in. You need
autoconf to rebuild configure after applying the patch.
--- Henrik Nordström
Index: configure.in
===================================================================
RCS file: /usr/src/CVS/squid/configure.in,v
retrieving revision 1.1.1.4.4.1
diff -u -r1.1.1.4.4.1 configure.in
--- configure.in 1997/12/14 15:11:21 1.1.1.4.4.1
+++ configure.in 1997/12/16 00:25:31
@@ -244,7 +244,12 @@
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(socket, main)
AC_CHECK_LIB(gnumalloc, main)
-if test "$ac_cv_lib_gnumalloc_main" = "no"; then
+if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
+ echo "Disabling extended malloc functions when using gnumalloc"
+ ac_cv_func_mallinfo=no
+ ac_cv_func_mallocblksize=no
+ ac_cv_func_mallopt=no
+else
case "$host" in
*-sun-solaris*)
echo "skipping libmalloc check for $host"
Received on Mon Dec 15 1997 - 16:40:03 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:57 MST