[comp.sources.bugs] Pcomm fails to compile

rock%warp@Sun.COM (Bill Petro) (10/31/89)

Here's what I do:

% make
cc -O  -sun3 -c  admin.c
cc -O  -sun3 -c  chg_dir.c
"chg_dir.c", line 24: chtype undefined
"chg_dir.c", line 24: syntax error at or near constant '|'
"chg_dir.c", line 26: A_BOLD undefined
*** Error code 1 
make: Fatal error: Command failed for target `chg_dir.o'

The range of lines is this:

        box(ch_win, VERT, HORZ);

        mvwattrstr(ch_win, 0, 3, A_BOLD, " Change directory ");
        wmove(ch_win, 3, 19);
        wrefresh(ch_win);

I don't know where A_BOLD is defined, except in misc.h

Any help?

     Bill Petro  {decwrl,hplabs,ucbvax}!sun!Eng!rock
"UNIX for the sake of the kingdom of heaven"  Matthew 19:12

Brendan@cup.portal.com (Brendan P Kehoe) (12/11/89)

 If you're doing pcomm on the sun and you get A_BOLD (or other crap) as being
undefined, make sure you're compiling it with the SystemV cc (/usr/5bin/cc) ..
that should clear up any problems you have (and don't add the include of
termio.h just cuz some of the definitions happen to show up in it..compile
it for SVID)..

Brendan Kehoe (bkehoe@widener.bitnet)