home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6846 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.4 KB  |  64 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!psinntp!pool!ujlh
  3. From: ujlh@pool.info.sunyit.edu (James Henrickson)
  4. Subject: Re: FAQ or DOCs on common tips for portint to linux available?
  5. Message-ID: <1992Jul28.042227.28543@pool.info.sunyit.edu>
  6. Organization: State University of New York -- Institute of Technology
  7. References: <1992Jul26.171548.12174@rs6000.cmp.ilstu.edu>
  8. Date: Tue, 28 Jul 1992 04:22:27 GMT
  9. Lines: 53
  10.  
  11. In article <1992Jul26.171548.12174@rs6000.cmp.ilstu.edu> jliddle@rs6000.cmp.ilstu.edu (Jean Liddle) writes:
  12. >Hello again,
  13. >
  14. >Does anyone know of a good source of information, tips, FAQs, etc.,
  15. >on how to port software to linux.  Specifically, I'm looking for
  16. >tips on what has worked for others when certain problems arise.
  17. >
  18. >For example, while trying to compile tgif (an xwindows paint program)
  19. >I got the message "file.c:1236: `SIGBUS' undeclared (first use this function)"
  20. >Usually, I can get around this by adding -DSYSV to the CCOPTIONS line
  21. >in the makefile generated by xmkmf.  In this case it didn't work, which
  22. >indicates to me that a) I need to try adding other -D switches and/or
  23. >b) I need to write the linux equivelent code by hand.  Tips on how to
  24. >do both, or documentation (if it is available anywhere) would be greatly
  25. >appreciated.  
  26. >
  27.  
  28. I can usually get around it by commenting out the SIGBUS-related code.
  29.  
  30. >Another bit of strangeness occurred as I was trying to compile
  31. >xfishtank.  This time, the make failed on an undeclared structure
  32. >"vec", which was used in the following way:
  33. >
  34. >init_signals()
  35. >{
  36. >    struct sigvec vec;
  37. >
  38. >    vec.sv_handler = toggle_secure;
  39. >    vec.sv_mask = 0;
  40. >    vec.sv_onstack = 0;
  41. >
  42. >    sigvec(SIGUSR1, &vec, &vec);
  43. >} /* I have removed the #ifdefed stuff for HP and MOTOROLA, leaving only
  44. >     the code which, by implication, is supposed to be generic */
  45. >
  46.  
  47. Sorry, haven't bumped into this one yet.
  48.  
  49. >Is anyone keeping a FAQ on such questions?  If not, I would be happy to
  50. >volunteer my services as my contribution to the linux project.  A repository
  51. >of "if this error occurs, common things to try (in this order) are ..."
  52. >might be useful.
  53.  
  54. I think it is a very good idea.  You could ftp a weekly update to banjo or
  55. tsx-11.  It could be something like a subdivision of the gcc channel, for
  56. people that are only concerned with porting issues.
  57.  
  58.  
  59. -- 
  60. Jim H.
  61. *
  62. * James L. Henrickson                                 ujlh@sunyit.edu
  63. * "Yet another Jim in the Linux world."  :-)
  64.