That worked!
Thank you Mark.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 09, 2006 5:02 AM
To: [email protected]
Subject: Ntop Digest, Vol 22, Issue 7
Send Ntop mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://listgateway.unipi.it/mailman/listinfo/ntop
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ntop digest..."
Today's Topics:
1. ntop compilation error (Eduard Boran)
2. Re: ntop compilation error (Mark Duling)
3. Re: ntop crashes(log) (Fran Boon)
----------------------------------------------------------------------
Message: 1
Date: Wed, 8 Mar 2006 13:15:03 -0600
From: "Eduard Boran" <[EMAIL PROTECTED]>
Subject: [Ntop] ntop compilation error
To: <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Hi,
I have been having problems while trying to compile ntop 3.2.
I am running debian sarge 3.1 / stable.
Prior attempting to compile ntop, I have compiled and installed
successfully the following:
-libiconv1.9.1
-gd-2.0.33
./configure fails with the following error:
checking for gd.h... yes
checking for gdImageDestroy in -lgd... no
*******************************************************************
*
* ERROR: gd header or library routines are missing
* (yes means it was found, no means it was not found)
*
* gd.h...yes
* gdImageDestroy() in -lgd...no
*
*>>> No way to proceed.
*
*??? Install gd (and/or gd-devel), check www.boutell.com/gd
*??? and Rerun ./configure
I have checked ./config.log and here are the results:
configure:25397: checking for gd.h
configure:25404: result: yes
configure:25418: checking for gdImageDestroy in -lgd
configure:25448: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -DPIC -DLINUX -I/usr/local/include
-L/usr/local/lib conftest.c -lgd -lgdbm -lpcap -lpcap -lgdbm -lgd >&5
/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
/usr/local/lib/libgd.so: undefined reference to `libiconv'
collect2: ld returned 1 exit status
configure:25454: $? = 1
configure: failed program was:
| /* confdefs.h. */
Please let me know if you need more details about the setup.
After doing some research, everything points back to libc6 and
libc6-dev.
I have got the latest posted in the stable repository (2.3.2.ds1-22).
Can you offer any advise?
Thank you,
Ed
PS: I'm relatively new to this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listgateway.unipi.it/pipermail/ntop/attachments/20060308/0f656eda
/attachment-0001.htm
------------------------------
Message: 2
Date: Wed, 08 Mar 2006 11:22:11 -0800
From: "Mark Duling" <[EMAIL PROTECTED]>
Subject: Re: [Ntop] ntop compilation error
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
[email protected] on Wednesday, March 8, 2006 at 11:15 AM -0800 wrote:
>Hi,
>
>I have been having problems while trying to compile ntop 3.2.
>
>I am running debian sarge 3.1 / stable.
>
>Prior attempting to compile ntop, I have compiled and installed
>successfully the following:
>
>-libiconv1.9.1
>
>-gd-2.0.33
>
>./configure fails with the following error:
>checking for gd.h... yes
>
>checking for gdImageDestroy in -lgd... no
>
>*******************************************************************
>
>*
>
>* ERROR: gd header or library routines are missing
>
>* (yes means it was found, no means it was not found)
>
>*
>
>* gd.h...yes
>
>* gdImageDestroy() in -lgd...no
>
>*
>
>*>>> No way to proceed.
>
>*
>
>*??? Install gd (and/or gd-devel), check www.boutell.com/gd
>
>*??? and Rerun ./configure
>
>
>
>
>I have checked ./config.log and here are the results:
>
>configure:25397: checking for gd.h
>
>configure:25404: result: yes
>
>configure:25418: checking for gdImageDestroy in -lgd
>
>configure:25448: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
>-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
>-Wnested-externs -fPIC -DPIC -DLINUX -I/usr/local/include
>-L/usr/local/lib conftest.c -lgd -lgdbm -lpcap -lpcap -lgdbm -lgd >&5
>
>/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
>
>/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
>
>/usr/local/lib/libgd.so: undefined reference to `libiconv'
>
>collect2: ld returned 1 exit status
>
>configure:25454: $? = 1
>
>configure: failed program was:
>
>| /* confdefs.h. */
>
>
>
>
>Please let me know if you need more details about the setup.
>
>After doing some research, everything points back to libc6 and
libc6-dev.
>
>I have got the latest posted in the stable repository (2.3.2.ds1-22).
>
>Can you offer any advise?
Try using adding -liconv to your LDFLAGS compiler statement. I added it
to my configure, which made it this:
./configure CFLAGS=-I${prefix}/include \
CPPFLAGS=-I${prefix}/include \
LDFLAGS="-L${prefix}/lib -liconv"
and that fixed it.
Mark
------------------------------
Message: 3
Date: Thu, 09 Mar 2006 09:37:40 +0000
From: Fran Boon <[EMAIL PROTECTED]>
Subject: Re: [Ntop] ntop crashes(log)
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Freamer wrote:
> When i go to Global traffic statistics , ntop crashes, here's the log
> with gdb:
> Starting program: /usr/local/bin/ntop -K -u root
-CUT-
> Program received signal SIGSEGV, Segmentation fault.
> any suggestions?
docs/FAQ
scroll down to the bottom for the "GDB ultraMini-tutorial"
It gives instructions on what to post.
PS Please don't cross-post!
F
------------------------------
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop
End of Ntop Digest, Vol 22, Issue 7
***********************************
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop