home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.95 / text1758.txt < prev    next >
Encoding:
Text File  |  1996-04-02  |  3.5 KB  |  72 lines

  1. ARDI: I apologize for posting this to this list.  But there have now been 8
  2. or more messages about people who want elf libraries under linux, so I figured
  3. I'd better explain this.
  4.  
  5. Linux users: quick doc on elf.  If you don't run linux, I suggest you
  6. delete this message, as it's long and awful boring.
  7.  
  8. First, at least so far, ARDI hasn't released an ELF-linked binary.  So you
  9. _shouldn't_ have to worry about it at all.  Apparently that's not the case.
  10. Anyway, if ardi releases an a.out binary, you should use an a.out library.
  11. If ardi releases an elf binary, you should then use an elf version of
  12. svgalib.
  13.  
  14. So for now: compile svgalib-1.2.7 as a.out.  The instructions say how.  They
  15. are very straight-foreward.  svgalib-1.2.7 even comes with a pre-compiled
  16. a.out library.  This should work fine with executor.
  17.  
  18. Next: people have been asking about compiling things in a.out format.  If
  19. you have a machine with elf libraries on it, the default is for gcc to use
  20. elf, not a.out format.  To get a.out format, you need to do:
  21.  
  22. gcc -b i486-linuxaout filename blah blah blah
  23.  
  24. *AND*.  This is an important and.  If you are linking libraries or have a 
  25. makefile that uses "ld", then you also need to change ld commands to:
  26.  
  27. ld -m i386linux blah blah blah
  28.  
  29. NOTE that is not a typo.  It really is "i386linux" with a "3".  I don't know
  30. why.  Ask HLU.
  31.  
  32. Now, if you have a.out and elf libraries, you might want to keep them BOTH,
  33. as programs will eventually start being distributed under both formats (like
  34. X11 programs are -- doom and abuse are both in a.out format).  Do the same
  35. thing that the DOCUMENTATION said to do for your X distribution.  That is,
  36. go into /lib and make a directory called "aout" for all of your old aout
  37. libraries.  Throw your svgalib-1.2.7 aout version into this directory.  Add
  38. an entry for that directory in /etc/ld.so.conf.  
  39. Put your ELF library into /lib.  THen run "ldconfig".  Everything should
  40. straighten itself out: programs linked against a.out svgalib will use 
  41. /lib/aout/svgalib-1.2.7, while elf-linked binaries will use 
  42. /lub/svgalib-1.2.7.
  43.  
  44. Last note. Many people have written here that they expected the linux 
  45. elf svgalibs to magically teleport and install themselves correctly
  46. when they compiled them.  The DOCUMENTATION says that this is not the
  47. case, and installation needs to be done manually.  So when you make your
  48. svgalib and svgagl stuff in elf format, you need to manually copy them
  49. from your src directory to your library directory and run ldconfig.
  50.  
  51. If I confused anyone, you should probably just wait for elf to become the
  52. dominant library format.  It's currently not suitable for the weak or
  53. simple-minded; it's darn complex and a bit confusing.  If you understood
  54. what I wrote above, good luck to you, and mail me any questions.
  55.  
  56. Oh, for the record ARDI folks, executor 1.2.7 doesn't work on my machine either
  57. (I'm running a 2-meg VL-bus S3 805 board, like others who have already
  58. posted bug reports...  I guess it's a chipset problem right now...)
  59.  
  60. But the X version is amazing.  I'm totally impressed with the work you
  61. folks have done so far.  If there's anything I can do to help debug the
  62. svgalib version (my screen goes black, but I still retain control of the
  63. machine) I'd love to help...  I don't know how to get any debug output from
  64. it right now though.
  65.  
  66. Joe
  67. --
  68. /    Joe Waters      | "My center is giving way, my right is pushed back  \
  69. | falc@scf.nmsu.edu  |  Situation Excellent, I am attacking."  - Foch     |
  70. \   Carpe Jugulus    |        http://scf.nmsu.edu/~falc/Falc.html         /
  71.  
  72.