home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!viper!raymond
- From: raymond@es.ele.tue.nl (Raymond Nijssen)
- Newsgroups: comp.unix.sys5.r4
- Subject: Re: Problems with "dirent"
- Message-ID: <RAYMOND.92Dec16131013@cobra.es.ele.tue.nl>
- Date: 16 Dec 92 12:10:13 GMT
- References: <1992Dec13.193122.22173@osnbe.Olivetti.ch>
- <1992Dec15.094802.3334@dcs.qmw.ac.uk>
- Sender: root@tuegate.tue.nl
- Organization: Eindhoven University of Technology, Eindhoven, The Netherlands
- Lines: 29
- In-reply-to: R.S.Jones@qmw.ac.uk's message of 15 Dec 92 09:48:02 GMT
-
- 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.
-
- -Raymond
- --
- Raymond Nijssen | Eindhoven University of Techology
- phone: +31-40-473373 | Department of Electrical Engineering
- fax: +31-40-464527 | Design Automation Section (ES), room EH 7.16
- "WP is for morons" | PO. Box 513, 5600 MB Eindhoven, The Netherlands
-