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