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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!snorkelwacker.mit.edu!usc!sdd.hp.com!ux1.cso.uiuc.edu!rs6000.cmp.ilstu.edu!jliddle
  3. From: jliddle@rs6000.cmp.ilstu.edu (Jean Liddle)
  4. Subject: FAQ or DOCs on common tips for portint to linux available?
  5. Message-ID: <1992Jul26.171548.12174@rs6000.cmp.ilstu.edu>
  6. Date: Sun, 26 Jul 1992 17:15:48 GMT
  7. Organization: Illinois State University
  8. Lines: 43
  9.  
  10. Hello again,
  11.  
  12. Does anyone know of a good source of information, tips, FAQs, etc.,
  13. on how to port software to linux.  Specifically, I'm looking for
  14. tips on what has worked for others when certain problems arise.
  15.  
  16. For example, while trying to compile tgif (an xwindows paint program)
  17. I got the message "file.c:1236: `SIGBUS' undeclared (first use this function)"
  18. Usually, I can get around this by adding -DSYSV to the CCOPTIONS line
  19. in the makefile generated by xmkmf.  In this case it didn't work, which
  20. indicates to me that a) I need to try adding other -D switches and/or
  21. b) I need to write the linux equivelent code by hand.  Tips on how to
  22. do both, or documentation (if it is available anywhere) would be greatly
  23. appreciated.  
  24.  
  25. Another bit of strangeness occurred as I was trying to compile
  26. xfishtank.  This time, the make failed on an undeclared structure
  27. "vec", which was used in the following way:
  28.  
  29. init_signals()
  30. {
  31.     struct sigvec vec;
  32.  
  33.     vec.sv_handler = toggle_secure;
  34.     vec.sv_mask = 0;
  35.     vec.sv_onstack = 0;
  36.  
  37.     sigvec(SIGUSR1, &vec, &vec);
  38. } /* I have removed the #ifdefed stuff for HP and MOTOROLA, leaving only
  39.      the code which, by implication, is supposed to be generic */
  40.  
  41. Is anyone keeping a FAQ on such questions?  If not, I would be happy to
  42. volunteer my services as my contribution to the linux project.  A repository
  43. of "if this error occurs, common things to try (in this order) are ..."
  44. might be useful.
  45.  
  46. Thoughts, comments?
  47.  
  48. Jean.
  49. -- 
  50. Jean Liddle                                 | == Bill Clinton for President ==
  51. Computer Science, Illinois State University | 
  52. e-mail:  jliddle@ilstu.edu                  | - Carol Mosley Braun for Senat -
  53.