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