home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- 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
- From: layes@ug.cs.dal.ca (Jonathan Layes)
- Subject: linux problems....
- Message-ID: <C18MEs.J21@cs.dal.ca>
- Sender: usenet@cs.dal.ca (USENET News)
- Nntp-Posting-Host: ug.cs.dal.ca
- Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
- Date: Fri, 22 Jan 1993 04:13:40 GMT
- Lines: 80
-
- A friend has asked me to post the following - since he doesn't have USENET
- (obviously), and since I don't have time to poll this group as often as
- I'd like, please send any replies to peace@px3.stfx.ca.
-
- -----
-
- Subject: Moron seeks help on soft lib install, and assembler switches.
-
- Hello all,
- Sorry to be wasting precious bandwidth on dumb questions, but
- I can't seem to resolve this alone...
-
- ------------------------
- problem 1:
-
- i can't seem to install libc.so.4.2 . i did an:
- ln -sf libc.so.4.2 libc.so.4
- as per the README, but all i got was:
-
- login: root
- Undefined C library functions.
- 1. ulimit (Use getrlimit/setrlimit instead).
- 2. light C shared image (Use the real one instead).
- login:
-
- i'm missing something here. please clue me in if i have to retrieve more
- files, make some more symlinks, whatever i need to do aside from what i
- did above.
- ---------------------------------
- problem 2:
-
- nothing will compile for me because (as far as i can tell) i'm not
- invoking the right switches on the compiler and/or the assembler.
-
- given foo.c: main(){printf("bar");}
-
- gcc generates:
- .file "foo.c"
- gcc2_compiled.:
- .text
- LC0:
- .ascii "bar\0"
- .align 2
- .globl _main
- _main:
- pushl %ebp
- movl %esp,%ebp
- call ___main
- pushl $LC0
- call _printf
- addl $4,%esp
- L1:
- leave
- ret
-
- and when i try to assemble, i get stuff like:
- 00001 00000000> .file "foo.c"
- ***** ^illegal label
- 00009 00000004> pushl %ebp
- ***** ^illegal label
- 00010 00000004> movl %esp,%ebp
- ***** ^illegal label
- 00012 00000004> pushl $LC0
-
- obviously i'm failing to do something. unfortunately, i could find
- NO manpage for as86 on any site anywhere.
- --------------------------
- if anyone would care to take the time to help me, i'd be delighted.
- it would most likely be best if you mailed me at:
-
- peace@phoenix.stfx.ca
-
- lost in the void,
-
- brian
- --
- Jonathan Layes / \ / \ "In case of fire.... shout FIRE!"
- Physics & Computing Science ( *) ( *) "If it doesn't work, hit it
- Dalhousie University \ / \ \ / with a big stick!"
- Halifax, Nova Scotia _) E-mail to: layes@Ug.CS.Dal.CA
-