#19 Compaq Tru64 Unix compilation

closed
nobody
None
3
2003-02-21
2002-11-24
Jakuai
No

I had to modify the joe sources slightly to make it
compile unter Tru64 unix. Sorry that this is in no
standard format; I'll do a proper diff if somebody
tells me how :)

Basically, it seems that the Tru64 compiler recognizes
"restrict" as some sort of keyword or library routine.

Also, the configure defines SETPGRP_VOID, but the
library actually does have the non-void version of setpgrp.

diff -r joe-2.9.7/tty.c joe-2.9.7-orig//tty.c
1007c1007
< //#ifndef SETPGRP_VOID
---
> #ifndef SETPGRP_VOID
1009,1011c1009,1011
< //#else
< // setpgrp();
< //#endif
---
> #else
> setpgrp();
> #endif
diff -r joe-2.9.7/usearch.c joe-2.9.7-orig//usearch.c
25c25
< struct search *globalsrch = 0; /* Most
recent completed search data */
---
> SRCH *globalsrch = 0; /* Most recent
completed search data */
151c151
< srch->restrictSearch = 0;
---
> srch->restrict = 0;
295c295
< srch->restrictSearch = 1;
---
> srch->restrict = 1;
491c491
< static int do_restrict(BW *bw, SRCH *srch)
---
> static int restrict(BW *bw, SRCH *srch)
493c493
< if (!srch->valid || !srch->restrictSearch)
---
> if (!srch->valid || !srch->restrict)
551c551
< switch (do_restrict(bw, srch)) {
---
> switch (restrict(bw, srch)) {
564c564
< switch (do_restrict(bw, srch)) {
---
> switch (restrict(bw, srch)) {
594c594
< if (srch->valid &&
srch->restrictSearch)
---
> if (srch->valid && srch->restrict)
604c604
< switch (do_restrict(bw, srch)) {
---
> switch (restrict(bw, srch)) {
diff -r joe-2.9.7/usearch.h joe-2.9.7-orig//usearch.h
32c32
< int restrictSearch; /* Search restricted to
marked block */
---
> int restrict; /* Search restricted to
marked block */

Discussion

  • Logged In: YES
    user_id=208150

    please, use unified diffs: try: diff -urN <orig_dir>
    <new_dir> and attach the result file to this forum

     
  • Jakuai
    Jakuai
    2002-11-25

    Logged In: YES
    user_id=569552

    No unified diff seems to be available on this platform; this
    is the closest I'll get. The patch needs to be cleaned up,
    anyway. Sorry.

     
  • Jakuai
    Jakuai
    2002-11-25

    • priority: 5 --> 3
     
  • unified diff: setpgrp() and restrict fixes

     
    Attachments
  • Logged In: YES
    user_id=208150

    regards setpgrp(): please, try 2.9.8-pre1 or try joe from
    CVS. There should be this bug fixed.
    regards restrict: send me the error messages which spills
    out the compiler.

     
  • Jakuai
    Jakuai
    2002-12-03

    Logged In: YES
    user_id=569552

    Recompiled. The errors are at the end of the log.

    A note about the compiler: It's particularly picky. Version:
    Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885)
    Compiler Driver V6.4-215 (sys) cc Driver

     
  • Jakuai
    Jakuai
    2002-12-03

    Compilation error log (still 2.9.7; setpgrp() commented out so that it compiles)

     
    Attachments
    • status: open --> closed