home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mips / 932 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.7 KB  |  66 lines

  1. Newsgroups: comp.sys.mips
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!paperboy.osf.org!meissner
  3. From: meissner@osf.org (Michael Meissner)
  4. Subject: Re: Problem faced in R4000 -svr4-
  5. In-Reply-To: ash@iron.sni.ca's message of Mon, 14 Sep 1992 17:54:55 GMT
  6. Message-ID: <MEISSNER.92Sep15185358@curley.osf.org>
  7. Sender: news@osf.org (USENET News System)
  8. Organization: Open Software Foundation
  9. References: <1992Sep14.175455.4568@sni.ca>
  10. Date: 15 Sep 92 18:53:58
  11. Lines: 53
  12.  
  13. In article <1992Sep14.175455.4568@sni.ca> ash@iron.sni.ca (Ashwin Palekar) writes:
  14.  
  15. | I am using -systype svr4 for compilation on R4000.
  16. | I am getting Warnings like UnResolved bcopy , bzero , bcmp .
  17. | Hence I included /svr4/usr/ucblib/libucb.a in all our programs.
  18. | (libucb.a defines bcopy,bzero,bcmp.)
  19. | The problem is that after including /svr4/usr/ucblib/libucb.a
  20. | function gethostbyname returns NULL even for localhost.
  21. | Without including libucb.a  gethostbyname() works.
  22. | I tried using -non_shared and used normal archives with the same 
  23. | observations.
  24. | The software has already compiled on other svr4 machines with the
  25. | same code.
  26. | Any Suggestions ?
  27.  
  28. Assuming svr4 has all of the ANSI string functions, make a library
  29. that has:
  30.  
  31.     #include <stddef.h>
  32.     #include <string.h>
  33.  
  34.     bcopy (from, to, size)
  35.     void *from;
  36.     void *to;
  37.     size_t size;
  38.     {
  39.       memmove (to, from, size);
  40.     }
  41.  
  42.     bzero (ptr, size)
  43.     void *ptr;
  44.     size_t size;
  45.     {
  46.       memset (ptr, 0, size);
  47.     }
  48.  
  49.     bcmp (ptr1, ptr2, size)
  50.     void *ptr1;
  51.     void *ptr2;
  52.     size_t size;
  53.     {
  54.       return !memcmp (ptr1, ptr2, size);
  55.     }
  56. --
  57. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  58. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  59.  
  60. You are in a twisty little passage of standards, all conflicting.
  61.