[OmniOS-discuss] ncurses lib in r151010j

2014-07-04 Thread Cal Sawyer

Hi

I'm trying to build iftop on r151010j because the available packages are 
rather stale.


basename   file   opt/omni/sbin/iftop pkg:/network/iftop@1.0.2-0.151006


PUBLISHER TYPE STATUS   URI
omniosorigin online   
http://pkg.omniti.com/omnios/r151010/
ms.omniti.com origin online   
http://pkg.omniti.com/omniti-ms/



Running into an issue with ncurses during the configure stage

   checking for a curses library containing mvchgat... none found
   configure: error: Curses! Foiled again!
  (Can't find a curses library supporting mvchgat.)
  Consider installing ncurses.


however ...

 pkg list ncurses
   NAME (PUBLISHER) VERSIONIFO
   library/ncurses 5.9-0.151010   i--

 grep mvchgat /usr/include/ncurses/ncurses.h

extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, short, 
const void *);/* generated */

#define mvchgat(y,x,n,a,c,o) mvwchgat(stdscr,y,x,n,a,c,o)

Looks like it's supported.  Any ideas?

thanks

- cal
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] ncurses lib in r151010j

2014-07-04 Thread Dale Ghent

So what does your config.log say regarding the check for mvchgat() ? How is it 
failing the test? When running into issues such as this, config.log is the 
go-to place to start figuring out the why.

autoconf itself isn’t infallible in how it checks for things, after all.

/dale

On Jul 4, 2014, at 8:35 AM, Cal Sawyer ca...@blue-bolt.com wrote:

 Hi
 
 I'm trying to build iftop on r151010j because the available packages are 
 rather stale.  
 
 basename   file   opt/omni/sbin/iftop
 pkg:/network/iftop@1.0.2-0.151006
 
 
 PUBLISHER TYPE STATUS   URI
 omniosorigin   online   
 http://pkg.omniti.com/omnios/r151010/
 ms.omniti.com origin   online   
 http://pkg.omniti.com/omniti-ms/
 
 
 Running into an issue with ncurses during the configure stage
 
 checking for a curses library containing mvchgat... none found
 configure: error: Curses! Foiled again!
   (Can't find a curses library supporting mvchgat.)
   Consider installing ncurses.
 
 however ...
 
  pkg list ncurses
 NAME (PUBLISHER)  VERSION
 IFO
 library/ncurses   5.9-0.151010   
 i--
  grep mvchgat /usr/include/ncurses/ncurses.h 
 
 extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, short, const 
 void *);/* generated */
 #define mvchgat(y,x,n,a,c,o)mvwchgat(stdscr,y,x,n,a,c,o)
 
 Looks like it's supported.  Any ideas?
 
 thanks
 
 - cal
 ___
 OmniOS-discuss mailing list
 OmniOS-discuss@lists.omniti.com
 http://lists.omniti.com/mailman/listinfo/omnios-discuss

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] ncurses lib in r151010j

2014-07-04 Thread Cal Sawyer

This, i imagine, is it.  From config.log

   configure:6233: checking for a curses library containing mvchgat
   configure:6255: gcc -o conftest -g -O2   conftest.c -lpcap -lnsl -lm
   -lsocket  -lcurses 5
   Undefined   first referenced
 symbol in file
   mvchgat /var/tmp//cckgaO9B.o
   ld: fatal: symbol referencing errors. No output written to conftest
   collect2: error: ld returned 1 exit status
   configure:6258: $? = 1
   configure: failed program was:
   #line 6238 configure
   #include confdefs.h

   #include curses.h

   int
   main ()
   {

mvchgat(0, 0, 1, A_REVERSE, 0, NULL)

  ;
  return 0;
   }
   configure:6255: gcc -o conftest -g -O2   conftest.c -lpcap -lnsl -lm
   -lsocket  -lncurses 5
   ld: fatal: library -lncurses: not found
   ld: fatal: file processing errors. No output written to conftest
   collect2: error: ld returned 1 exit status
   configure:6258: $? = 1
   configure: failed program was:
   #line 6238 configure
   #include confdefs.h

   #include curses.h

   int
   main ()
   {

mvchgat(0, 0, 1, A_REVERSE, 0, NULL)

  ;
  return 0;
   }
   configure:6278: result: none found
   configure:6280: error: Curses! Foiled again!
  (Can't find a curses library supporting mvchgat.)
  Consider installing ncurses.


No idea what to do about it, though.

regards,

- cal

 On 04/07/14 10:05, Dale Ghent wrote:

So what does your config.log say regarding the check for mvchgat() ? How is it 
failing the test? When running into issues such as this, config.log is the 
go-to place to start figuring out the why.

autoconf itself isn’t infallible in how it checks for things, after all.

/dale

On Jul 4, 2014, at 8:35 AM, Cal Sawyer ca...@blue-bolt.com wrote:


Hi

I'm trying to build iftop on r151010j because the available packages are rather 
stale.

 basename   file   opt/omni/sbin/iftop
pkg:/network/iftop@1.0.2-0.151006


 PUBLISHER TYPE STATUS   URI
 omniosorigin   online   
http://pkg.omniti.com/omnios/r151010/
 ms.omniti.com origin   online   
http://pkg.omniti.com/omniti-ms/


Running into an issue with ncurses during the configure stage

checking for a curses library containing mvchgat... none found
configure: error: Curses! Foiled again!
   (Can't find a curses library supporting mvchgat.)
   Consider installing ncurses.

however ...


pkg list ncurses

NAME (PUBLISHER)  VERSIONIFO
library/ncurses   5.9-0.151010   i--
  grep mvchgat /usr/include/ncurses/ncurses.h

 extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, short, const 
void *);/* generated */
 #define mvchgat(y,x,n,a,c,o)mvwchgat(stdscr,y,x,n,a,c,o)

Looks like it's supported.  Any ideas?

thanks

- cal
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] ncurses lib in r151010j

2014-07-04 Thread Dale Ghent

On Jul 4, 2014, at 9:57 AM, Cal Sawyer ca...@blue-bolt.com wrote:

 This, i imagine, is it.  From config.log

...

 configure:6255: gcc -o conftest -g -O2   conftest.c -lpcap -lnsl -lm -lsocket 
  -lncurses 5
 ld: fatal: library -lncurses: not found
 ld: fatal: file processing errors. No output written to conftest

Try:

LDFLAGS=“-L/usr/gnu/lib -R/usr/gnu/lib” ./configure …

/dale

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss