Hi, folks. I'm trying to build the Curses-1.06 module on a Solaris 7 box, and have run into a jam.

This is a development box that has ncurses-5.2 installed in /usr/local, but I would prefer not to link against that so that Perl scripts deployed on production machines won't require that I install ncurses there too...

So I've figured out some moderately gross workarounds for that part of it, actually. Where I've hit the wall is that the Sun curses.h defines a number of things as macros, and that seems to be confusing the "test.syms" script which builds CursesDef.h - it returns "NOT found" for every function that is, in fact, a macro. Ugh.

In the Sun curses.h, allegedly you can #define NOMACROS but, after a number of gyrations, I haven't managed to get things working. Oh, it compiles just fine, but when running the demo scripts, they complain that initscr() isn't available, and gee, that one might be kinda useful, I think.

The question is: has anyone figured out how to get Curses to build on a Solaris 7 box using the native -lcurses?

I have some obvious workarounds: build it against ncurses, and simply push my ncurses package out to all the rest of my hosts and stop thinkin' so hard.

Or, dig into the gen/make.* stuff and probably injure my tired and feeble brane.

Or, just whine at the module author and see if he has some ideas about making it work, then wait for a 1.07 to come out. :-)

Ooh, or maybe go in after the "perl Makefile.PL" step and patch up CursesDef.h by hand - ugh... - before invoking make? Hmmm... it'd ugly up my RPM spec, but maybe it's worth a try.

Anyway, I still would love to know if anyone else has solved this...

Thanks, all!

In reply to Building Curses module with native Solaris -lcurses by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.