home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25101 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.8 KB  |  92 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!utcsri!torn!csd.unb.ca!news.ucs.mun.ca!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!layes
  3. From: layes@ug.cs.dal.ca (Jonathan Layes)
  4. Subject: linux problems....
  5. Message-ID: <C18MEs.J21@cs.dal.ca>
  6. Sender: usenet@cs.dal.ca (USENET News)
  7. Nntp-Posting-Host: ug.cs.dal.ca
  8. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  9. Date: Fri, 22 Jan 1993 04:13:40 GMT
  10. Lines: 80
  11.  
  12. A friend has asked me to post the following - since he doesn't have USENET
  13. (obviously), and since I don't have time to poll this group as often as
  14. I'd like, please send any replies to peace@px3.stfx.ca.
  15.  
  16. -----
  17.  
  18. Subject: Moron seeks help on soft lib install, and assembler switches.
  19.  
  20. Hello all,
  21.     Sorry to be wasting precious bandwidth on dumb questions, but
  22. I can't seem to resolve this alone...
  23.  
  24. ------------------------
  25.     problem 1:
  26.     
  27. i can't seem to install libc.so.4.2 . i did an:
  28.     ln -sf libc.so.4.2 libc.so.4
  29. as per the README, but all i got was:
  30.  
  31.     login: root
  32.     Undefined C library functions.
  33.             1. ulimit (Use getrlimit/setrlimit instead).
  34.             2. light C shared image (Use the real one instead).
  35.     login:
  36.  
  37. i'm missing something here. please clue me in if i have to retrieve more
  38. files, make some more symlinks, whatever i need to do aside from what i
  39. did above.
  40. ---------------------------------
  41.     problem 2:
  42.  
  43. nothing will compile for me because (as far as i can tell) i'm not
  44. invoking the right switches on the compiler and/or the assembler. 
  45.  
  46. given foo.c:           main(){printf("bar");}
  47.  
  48. gcc generates:
  49.         .file    "foo.c"
  50.     gcc2_compiled.:
  51.     .text
  52.     LC0:
  53.         .ascii "bar\0"
  54.         .align 2
  55.     .globl _main
  56.     _main:
  57.         pushl %ebp
  58.         movl %esp,%ebp
  59.         call ___main
  60.         pushl $LC0
  61.         call _printf
  62.         addl $4,%esp
  63.     L1:
  64.         leave
  65.         ret
  66.  
  67. and when i try to assemble, i get stuff like:
  68. 00001                       00000000>               .file    "foo.c"
  69. *****                                                           ^illegal label
  70. 00009                       00000004>               pushl %ebp
  71. *****                                                         ^illegal label
  72. 00010                       00000004>               movl %esp,%ebp
  73. *****                                                        ^illegal label
  74. 00012                       00000004>               pushl $LC0
  75.  
  76. obviously i'm failing to do something. unfortunately, i could find
  77. NO manpage for as86 on any site anywhere. 
  78. --------------------------
  79. if anyone would care to take the time to help me, i'd be delighted.
  80. it would most likely be best if you mailed me at:
  81.  
  82. peace@phoenix.stfx.ca
  83.  
  84. lost in the void,
  85.  
  86. brian
  87. -- 
  88. Jonathan Layes                 / \    / \  "In case of fire.... shout FIRE!"
  89. Physics & Computing Science   (  *)  (  *)    "If it doesn't work, hit it 
  90. Dalhousie University           \ /  \ \ /          with a big stick!"
  91. Halifax, Nova Scotia                _)       E-mail to: layes@Ug.CS.Dal.CA 
  92.