home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sys5.r4
- Path: sparky!uunet!mcsun!chsun!osnbe!
- From: rheiger@renext.eiger.olivetti.ch (Richard H. E. Eiger)
- Subject: Re: Problems with "dirent"
- Message-ID: <1992Dec19.215603.21982@osnbe.Olivetti.ch>
- Sender: @osnbe.Olivetti.ch
- Nntp-Posting-Host: renext
- Reply-To: rheiger@renext.eiger.olivetti.ch
- Organization: Olivetti (Schweiz) AG, Branch Office Berne
- References: <RAYMOND.92Dec16131013@cobra.es.ele.tue.nl>
- Date: Sat, 19 Dec 1992 21:56:03 GMT
- Lines: 50
-
- In article <RAYMOND.92Dec16131013@cobra.es.ele.tue.nl> raymond@es.ele.tue.nl
- (Raymond Nijssen) writes:
- > In article <1992Dec15.094802.3334@dcs.qmw.ac.uk> R.S.Jones@qmw.ac.uk (Robert
- S. Jones) writes:
- >
- > > In article <1992Dec13.193122.22173@osnbe.Olivetti.ch> Richard H. E.
- Eiger,
- > > rheiger@renext.open.ch writes:
- > >>I can only assume that there has to be something depending on additional
- > >>libraries (I have to use -lsocket -lnsl -lucb). Can anyone confirm?
- >
- > > I think you NEED an explicit -lc *before* the -lucb. There is of course
- an
- > > invisible implicit one after it! :-) On my SVr4 (an ICL DRS6000 running
- DRS/NX
- > > - but what the heck!) leaving this out causes all sorts of weird problems
- with
- > > BSD and AT&T library routines having the same name but slightly different
- > > shaped parameters.
- >
- > Compare the definitions of the BSD and SYSV dirent structs, and it'll be
- > perfectly clear why SYSV and BSD libraries are incompatible. Therefore, these
- > libraries should never be used together, notwithstanding the observation that
- > inserting -lc before -lucb usually works.
- > Lots of other things, notably signals, are affected by this.
- >
- > The best way to avoid these problems is to reconsider if you actually need
- > libucb. In most cases, a few trivial #define-s (eg. for bcopy, index etc.)
- > will make -lucb obsolete.
-
- I agree with what you say, in general. Also, in many cases where simple
- #define-s wouldn't help I find that the sys V or posix calls should be
- preferred. Unfortunately there are a few really usefull routines in libucb -
- which most of the time could be easily rewritten, of course.
-
- What I don't like about the situation is that there is no man entry for some of
- the routines which are implemented both in libucb and libc - like the dirent -
- neither is it mentionned in the man page (of dirent).
-
- In the special case of dirent, I was under the impression it goes under the
- name of direct in ucb systems. But I have only one man page and it is for
- dirent (posix).
- Richard
- --
-
- ___ _____2
- / ) / / / Richard H. E. Eiger
- /_ _/ /__/ /__ Ing. Informatik HTL
- /\ / / / Unregistered NeXT fan
- / \ / / /_____ rheiger@renext.eiger.olivetti.ch (NeXT mail welcome)
-