No not at all, in fact I checked ipfstat, ipmon, and ipf are all 32 bit if you a file on them. I would suspect that since the -t option of ipfstat has to read the state table, which is maintained by one of the kernel drivers, is why the curses/ncurses library needs to be 64 bit? Just a guess there, I'm just an SA and not a developer so I can only go so deep before my knowledge level starts to thin. Your right my original email didn't say anything about getting 64 bit ncurses, from what I have seen in this forum earlier things that were already published didn't need to be repeated so just for clarification I will post the section of Phil's FAQ so you can see what my point of reference was.
How do I make StateTop work on Solaris? There are three possiblities here: 1) using Solaris curses, 2) using ncurses from the Solaris Companion CD 3) using ncurses you compile yourself. For all three of these methods make sure the following is set (3.4.22 and on already has this): STATETOP_CFLAGS=-DSTATETOP Once that's done, pick one of the three methods above. The easiest way is to use Solaris curses. For that method, in the Makefile change: STATETOP_LIB= to say: STATETOP_LIB=-lcurses And that will do it. If you don't want to use Solaris curses and would prefer to use ncurses, install the ncurses package on the Solaris 8 Companion CD or from any other source of your choice and then change your STATETOP_INC line to read: STATETOP_INC=-L/opt/sfw/include and set: STATETOP_LIB=-L/opt/sfw/lib -R/opt/sfw/lib -lncurses Adjust accordingly if your ncurses libs/includes are in a different place. If you want to use ncurses but are using Solaris < 8, or just don't want to use the Companion CD verion of ncurses for some reason, then adjust the STATETOP_INC line to read: STATETOP_INC=-I/usr/local/include And set STATETOP_LIB to be: STATETOP_LIB=-L/usr/local/lib -R/usr/local/lib -lncurses Note that these are usual locations for the include and library files. If you installed them in other places, you'll need to specify the appropriate path's. NOTE: If you are using gcc 3.1+, you may need to uninstall either curses, or ncurses. Having both may cause conflicts during compile. So I followed the steps for the above to use ncurses, notice there is no mention of either 32-bit or 64-bit. In a previous version I opted to use curses but every time I ran "ipfstat -t" and then hit "q" to quit it would log me off of the server whether I was on the console or in through SSH. That got to be kind of annoying so when I was going to upgrade to 4.1.10 I wanted to try ncurses instead. I hope this clarifies everything. Thanks, Duane -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carson Gaspar Sent: Tuesday, January 31, 2006 8:59 AM To: [email protected] Subject: RE: State Top Compile Problem --On Tuesday, January 31, 2006 8:30 AM -0500 "Barb, Duane" <[EMAIL PROTECTED]> wrote: > I realize that is the problem and I can read just fine, I was > following the FAQ published by Phil to enable State Top. The whole > point of the question was in asking if I did something wrong as > compared to what the FAQ said and looking for some guidance on where > to go from there. It's obvious that the version of ncurses on the > Solaris companion CD is 32 bit as well as the sunfreeware.com version. > I downloaded the source code for ncurses and tried to compile it > myself but could not get it to compile as a 64 bit library. Also, just > for the sake of it, the drivers are the only thing that is 64 bit in > IP Filter, the binaries themselves are 32 bit. In the end I used > curses instead of ncurses. And I would like to thank you for your kind response, it was really refreshing. I'm sorry if you found my response unhelpful, but your original mail said nothing about trying to get a 64-bit ncurses library, so I assumed your failure was due to ignorance of the problem. Given that the error was with sparcv9/ipfstat, and that the problem was that your library wasn't 64-bit, I strongly suspect that your statement that user-space is 32-bit only is incorrect. Compiling ncurses 64-bit isn't terribly difficult - I'm sorry you couldn't get it to work. curses should work just fine (I've never understood why it wasn't the default). -- Carson
