[ap-utils] Solaris build problems

Daniel E. Eisenbud eisenbud at cbio.mskcc.org
Wed Feb 25 07:52:26 EET 2004

On Wed, Feb 25, 2004 at 01:02:03AM +0200, Roman Festchook <roma at polesye.net> wrote:
> On Wednesday 25 February 2004 00:56, Daniel E. Eisenbud wrote:
> > While I was at it, I tried to build on Solaris.  No <features.h>, and
> > I'm not sure uint_32_t is defined anywhere in /usr/lib.  I fixed that,
> I try to define it by hand. What build host? (to make configure.in 
> manipulations:))

Actually, uint_32_t is in <sys/inttypes.h> which is included from
<sys/types.h>.  So removing features.h is sufficient.

The build host is sparc-sun-solaris2.9

> > and then realized that I didn't have ncurses installed, so I stopped
> > there for now.  I'll try again later with ncurses, if I have a chance.
> > (Any reason it shouldn't work with regular SysV curses?)
> hmmm - probably should, but havn't possibility to test:(

Tested.  This required replacing #include <ncurses.h> with
#include <curses.h> in lots of files (I think most if not all linux has
curses.h as a symlink to ncurses.h or vice versa) and -lncurses with
-lcurses (also probably symlinked on linux.)  Additionally, I had to
link with "-lresolv -lnls".  And the last change was that I needed
#include <sys/sockio.h> in lib/ap_search.c.

I don't have access to an AP from the solaris box I used, but it at
least appeared to start OK and draw its menus fine, so it probably

One last thing: a few files have double sets of includes.  Just grepping
for ncurses.h will reveal some of them, that have it twice, but there
might be even more.


Daniel E. Eisenbud
eisenbud at cbio.mskcc.org
Computational Biology Center
Memorial Sloan-Kettering Cancer Center

More information about the ap-utils mailing list