home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mips
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!paperboy.osf.org!meissner
- From: meissner@osf.org (Michael Meissner)
- Subject: Re: Problem faced in R4000 -svr4-
- In-Reply-To: ash@iron.sni.ca's message of Mon, 14 Sep 1992 17:54:55 GMT
- Message-ID: <MEISSNER.92Sep15185358@curley.osf.org>
- Sender: news@osf.org (USENET News System)
- Organization: Open Software Foundation
- References: <1992Sep14.175455.4568@sni.ca>
- Date: 15 Sep 92 18:53:58
- Lines: 53
-
- In article <1992Sep14.175455.4568@sni.ca> ash@iron.sni.ca (Ashwin Palekar) writes:
-
- | I am using -systype svr4 for compilation on R4000.
- | I am getting Warnings like UnResolved bcopy , bzero , bcmp .
- |
- | Hence I included /svr4/usr/ucblib/libucb.a in all our programs.
- | (libucb.a defines bcopy,bzero,bcmp.)
- |
- | The problem is that after including /svr4/usr/ucblib/libucb.a
- | function gethostbyname returns NULL even for localhost.
- | Without including libucb.a gethostbyname() works.
- |
- | I tried using -non_shared and used normal archives with the same
- | observations.
- |
- | The software has already compiled on other svr4 machines with the
- | same code.
- |
- | Any Suggestions ?
-
- Assuming svr4 has all of the ANSI string functions, make a library
- that has:
-
- #include <stddef.h>
- #include <string.h>
-
- bcopy (from, to, size)
- void *from;
- void *to;
- size_t size;
- {
- memmove (to, from, size);
- }
-
- bzero (ptr, size)
- void *ptr;
- size_t size;
- {
- memset (ptr, 0, size);
- }
-
- bcmp (ptr1, ptr2, size)
- void *ptr1;
- void *ptr2;
- size_t size;
- {
- return !memcmp (ptr1, ptr2, size);
- }
- --
- Michael Meissner email: meissner@osf.org phone: 617-621-8861
- Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
-
- You are in a twisty little passage of standards, all conflicting.
-