Yeah... mallinfo() malloc.h turns out to have some nasty history.
I need to craft a more detailed test - gets into the underbelly of autoconf - so give
me a little while.
-----Burton
---------- Original Message ----------------------------------
From: Stanley Hopcroft <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Tue, 4 Feb 2003 13:23:58 +1100
>Dear Ladies and Gentlemen,
>
>On FreeBSD 4.7-RELEASE compilation of ntop-2.1.56 fails in
>webInterface.c with
>
>In file included from webInterface.c:29:
>/usr/include/malloc.h:2: warning: #warning "this file includes
><malloc.h> which is deprecated, use <stdlib.h> instead"
>
>webInterface.c: In function `printNtopConfigInfo':
>webInterface.c:2460: storage size of `memStats' isn't known
>webInterface.c: At top level:
>webInterface.c:2985: warning: no previous prototype for `initWeb'
>gmake[2]: *** [webInterface.lo] Error 1
>gmake[2]: Leaving directory `/usr/home/anwsmh/build/ntop-2.1.56/ntop'
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory `/usr/home/anwsmh/build/ntop-2.1.56/ntop'
>gmake: *** [all] Error 2
>tsade>
>
>Lines around 2460:
>
>#if defined(HAVE_MALLOC_H) && defined(__GNUC__)
> {
> struct mallinfo memStats;
> #ifdef HAVE_SYS_RESOURCE_H
> struct rlimit rlim;
> #endif
>
> memStats = mallinfo();
>
> sendString(texthtml("\n\nMemory allocation - data segment\n\n",
>"<tr><th colspan=\"2\">Memory allocation - data segment</th></tr>\n")
>);
>
>
>Configure options: ./configure --prefix=/usr/local/ntop-2.1.56
>-without-ssl
>
>(Same except for prefix as Ok for 2.1.55).
>
>Configure ran without problems.
>
>Here is the summary,
>
>config.status: creating config.h
>config.status: config.h is unchanged
>config.status: executing depfiles commands
>
>-------------------------------------------------------------------
>
> Creating version.c...
>
>
>-------------------------------------------------------------------
>===================================================================
>-------------------------------------------------------------------
>
>(optional) packages are in:
>
>LBL pcap in : standard system headers and libraries
>GNU gdbm in : standard system headers and libraries
>GDChart in : standard system headers and libraries
> GD in : standard system headers and libraries
> libpng in : standard system headers and libraries
>zlib in : standard system headers and libraries
>
>This is your ntop 2.1.56 configuration:
>
>Host System Type : i386-unknown-freebsd4.7
>Compiler (cflags) : gcc -DFREEBSD -g -O2 -Wshadow -Wpointer-arith
>-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC
>Defines : -DHAVE_CONFIG_H
>Loader (ldflags) :
>Include path : -I/usr/include -I/usr/local/include
>-I/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c
>-I/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c/gd-1.8.3
>-I/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c/gd-1.8.3/libpng-1.2.4
>-I/usr/local/include
>System Libs : -lc_r -lc -lm -lz -lssl -lpcap -lcrypto -lc -lcrypt
>-L/usr/lib -lpcap -L/usr/local/lib -lgdbm
>-L/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c -lgdchart
>-L/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c/gd-1.8.3 -lgd
>-L/usr/home/anwsmh/build/ntop-2.1.56/gdchart0.94c/gd-1.8.3/libpng-1.2.4
>-lpng
>MultiThread mode : enabled
>Install path : /usr/local/ntop-2.1.56
>
>*******************************************************************
>*
>* NOTE: ./configure is now complete!
>*
>* All of the obviously FATAL errors would cause you to
>* abort before this point, so while you SHOULD scroll
>* back and check for error/warning/note messages,
>* you probably will not...
>*
>
>Yours sincerely.
>
>
>
>--
>------------------------------------------------------------------------
>Stanley Hopcroft
>------------------------------------------------------------------------
>
>'...No man is an island, entire of itself; every man is a piece of the
>continent, a part of the main. If a clod be washed away by the sea,
>Europe is the less, as well as if a promontory were, as well as if a
>manor of thy friend's or of thine own were. Any man's death diminishes
>me, because I am involved in mankind; and therefore never send to know
>for whom the bell tolls; it tolls for thee...'
>
>from Meditation 17, J Donne.
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop
>
____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop