home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / internal / 2053 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.8 KB  |  54 lines

  1. Newsgroups: comp.unix.internals
  2. Path: sparky!uunet!usc!wupost!spool.mu.edu!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!det
  3. From: det@hawkmoon.mn.org (Derek Terveer)
  4. Subject: SVR4: getminor(D3DK)
  5. Message-ID: <1992Dec14.034005.13663@hawkmoon.mn.org>
  6. Organization: Demi-Public System (One of the Eternal Champions); Eagan, MN, 55123-2507, USA
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. Date: Mon, 14 Dec 1992 03:40:05 GMT
  9. Lines: 43
  10.  
  11. I am having problems with the getminor() call.  I am making some calls
  12. to getminor() in order to extract the minor numbers, according to the
  13. ddi/dki ref manual:
  14.  
  15.  
  16. #define  dev_to_cont(dev)  (ushort)(((getminor((dev_t)dev))>>10)&3)
  17.  
  18. void
  19. sdsgopen(dev_t *dev, int flag, int otyp, cred_t *cred_p)
  20.  
  21. {
  22.         ushort                  controller      =       dev_to_cont(dev);
  23.  
  24.  
  25. I am including the appropriate include files (ddi.h is last) and this
  26. should work, but when I do an idbuild, I get the following errors:
  27.  
  28.  
  29. camber:/home/det/src/sdsg$ make install
  30.         if /etc/conf/bin/idcheck -p sdsg; then /etc/conf/bin/idinstall -a sdsg;
  31. else /etc/conf/bin/idinstall -k -u sdsg; fi
  32.         /etc/conf/bin/idbuild
  33.  
  34.         The UNIX Operating System will now be rebuilt.
  35.         This will take some time.  Please wait.
  36.  
  37. Undefined                       first referenced
  38.  symbol                             in file
  39. __minor                             sdsg/Driver.o
  40. __major                             sdsg/Driver.o
  41. __makedev                           sdsg/Driver.o
  42. ld: ../cf.d/unix: fatal error: Symbol referencing errors. No output written to .
  43. ./cf.d/unix
  44. ERROR: Can not link-edit unix
  45.  
  46. Why?
  47.  
  48. derek
  49. -- 
  50. Derek Terveer   Work:    derekt@stpaul.gov    +1 612 292 6009
  51.         Play:    det@hawkmoon.mn.org    +1 612 683 0413
  52. "Big business and big government distract us with entertainment;
  53.  they manufacture our consent while we destroy the environment."
  54.