[Iftop-users] POSIX thread compile problem on Solaris 9?

C. Liang C. Liang" <cyliang at ilstu.edu
Wed, 21 Jan 2004 16:50:30 -0600


I apologize in advance if this is a very basic question.  I'm still 
trying to wrap my head around the peculiarities of Solaris ....

I'm trying to compile iftop0.15 on a box running Solaris 9 (SPARC). 
When trying to configure, I get an error about being unable to figure 
out how to compile with POSIX threads:


>  ./configure --with-libcap=/usr/local
checking for a curses library containing mvchgat... -lncurses
checking how to compile a working program with POSIX threads... 
-lpcap -lnsl -lm -lsocket -lncurses
no idea
configure: error: can't figure out how to compile with POSIX threads
  If your system actually supports POSIX threads, this means we've 
messed up.


I believe the libraries in question (libpthreatd, etc.) are in 
/usr/local/lib, which is where the ncurses libraries are (which it 
seems to have no problem finding).  I have tried setting LDFLAGS to 
"-L/usr/lib -R/usr/lib", but that doesn't seem to help any.  I'm 
trying to avoid the use of LD_LIBRARY_PATH since there have been 
problems in the past with getting scripts, etc. to work cleanly.

Since I don't have much experience with trying to compile something 
using POSIX threads, is there something else I need to be feeding to 
the configure script?

        - C.