home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / sys5 / r4 / 930 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.7 KB  |  64 lines

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