[tnguyen@equinix.com: Re: [Iftop-users] Re: solaris 7 and 8 (64bits)]

Paul Warren pdw at ex-parrot.com
Fri, 19 Mar 2004 17:37:09 +0000


Sorry, I hadn't realised that this had fallen off the list.  Please
keep replies on-list.

Can you run:

gdb conftest core

then type bt

and post the results.  At a glane it looks like a broken ncurses
install.

Paul

----- Forwarded message from thomas nguyen <tnguyen@equinix.com> -----

Date: Fri, 19 Mar 2004 09:24:33 -0800
From: thomas nguyen <tnguyen@equinix.com>
Subject: Re: [Iftop-users] Re: solaris 7 and 8 (64bits)
To: Paul Warren <pdw@ex-parrot.com>
X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic-pdw 
	(1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no 
	version=2.61-sa_mythic-pdw
X-Spam-Level: 

I did a fresh configure w/integers.h included in options.c, still failed.

here is some error I found in config.log

configure:2964: checking for stdint.h
configure:2977: gcc -c -g -O2  conftest.c >&5
configure:3005:20: stdint.h: No such file or directory

configure:6465: gcc -o conftest -g -O2   conftest.c -lpcap -lnsl -lm -lsocket  
-lncurses >&5
configure:6468: $? = 0
configure:6471: test -s conftest
configure:6474: $? = 0
configure:6498: result: -lncurses
configure:6504: checking how to compile a working program with POSIX threads
configure:6524: gcc -o conftest -g -O2    conftest.c -lpcap -lnsl -lm -lsocket  
-lncurses  >&5
configure:6527: $? = 0
configure:6529: ./conftest
./configure: line 1: 28105 Segmentation Fault      (core dumped) 
./conftest$ac_exeext
configure:6532: $? = 139
configure: program exited with status 139
configure: failed program was:
#line 6518 "configure"
#include "confdefs.h"
/*
 * pthread.c:
 * Tiny test program to see whether POSIX threads work.
 */


I didn't see that configure has Segmentation fault

On Friday 19 March 2004 08:59 am, Paul Warren wrote:
> On Fri, Mar 19, 2004 at 08:44:55AM -0800, thomas nguyen wrote:
> > I just installed ncurses, seemed like configure didn't find it.
> >
> > checking for a curses library containing mvchgat... -lncurses
>
> Can you do:
>
> rm config.cache
> ./configure
> make clean
> make
>
> If it's still failing, please post the output of config.log - if
> possible please trim it to the section where it tries to find ncurses.
>
> thanks,
>
> Paul
>
> > checking how to compile a working program with POSIX threads... 
> > -lpthread checking if we need to enable promiscuous mode by default...
> > yes
> >
> > On Friday 19 March 2004 08:41 am, you wrote:
> > > On Fri, Mar 19, 2004 at 08:34:55AM -0800, thomas nguyen wrote:
> > > > gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c `test -f 'vector.c' ||
> > > > echo './'`vector.c
> > > > gcc  -g -O2    -o iftop  addr_hash.o edline.o hash.o iftop.o
> > > > ns_hash.o options.o resolver.o screenfilter.o serv_hash.o
> > > > sorted_list.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o
> > > > dlcommon.o stringmap.o cfgfile.o vector.o  -lpcap -lnsl -lm -lsocket 
> > > > -lncurses -lpthread
> > > > Undefined                       first referenced
> > > >  symbol                             in file
> > > > initscr32                           ui.o
> > > > acs32map                            ui.o
> > > > w32addch                            ui.o
> > >
> > > These are part of ncurses?  Do you have ncurses installed, and did
> > > ./configure find it happily?
> > >
> > > Paul


----- End forwarded message -----