home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!news.claremont.edu!fenris!jwinstea
- From: jwinstea@fenris.claremont.edu (Jim Winstead Jr.)
- Subject: Re: gcc can't find scandir or alphasort?
- Message-ID: <1992Aug25.210421.9586@muddcs.claremont.edu>
- Sender: news@muddcs.claremont.edu (The News System)
- Organization: Harvey Mudd College, WIBSTR
- References: <1992Aug25.165215.149530@ns1.cc.lehigh.edu>
- Date: Tue, 25 Aug 1992 21:04:21 GMT
- Lines: 29
-
- In article <1992Aug25.165215.149530@ns1.cc.lehigh.edu> dlj0@ns1.cc.lehigh.edu (DAVID L. JOHNSON) writes:
- >Sorry if this is a FAQ, but I can't seem to find the answer. I'm trying to
- >compile aXe-3.0.1 under linus-0.96c/gcc-2.2.2. I cna't seem to get around the
- >fact that the subroutines alphasort and scandir seem to be missing. Any help?
-
- Grab the scandir source from the BSD sources, make a small change
- (instead of using dirent.length use strlen(dirent.name) or something
- like that), and link it with aXe - works like a charm.
-
- It would probably be nice to have scandir and alphasort (alphasort is
- with scandir in the BSD sources) included in libc.a, but just for
- peace of mind I'd recommend someone else reimplment it from scratch -
- they are both very trivial functions, and take up less space than the
- BSD copyright. :)
-
- >I just compiled aXe-3.0.1 on my office machine (an rs6000), and it's the best
- >mouse-based editor around. Really nice features. I know it'll work here once
- >I get around this problem, since commenting out that stuff got it going -
- >but of course it crashes when I ask it to sort a directory for a file.
-
- Are you sure you've got aXe running okay, and it's not dumping core
- every once in a while? Try using one of the menu options that closes
- all buffers and exits, and I'm willing to bet you'll get a nice core
- file.
- --
- + Jim Winstead Jr. (CSci '95)
- | Harvey Mudd College, WIBSTR
- | jwinstea@jarthur.Claremont.EDU
- + or jwinstea@fenris.Claremont.EDU
-