Thread View: comp.unix.internals
2 messages
2 total messages
Started by Derek Terveer
Mon, 14 Dec 1992 03:40
SVR4: getminor(D3DK)
Author: Derek Terveer
Date: Mon, 14 Dec 1992 03:40
Date: Mon, 14 Dec 1992 03:40
43 lines
1894 bytes
1894 bytes
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."
Re: SVR4: getminor(D3DK)
Author: Thomas Jagodits
Date: Mon, 14 Dec 1992 12:06
Date: Mon, 14 Dec 1992 12:06
37 lines
1731 bytes
1731 bytes
In article <1992Dec14.034005.13663@hawkmoon.mn.org> det@hawkmoon.mn.org (Derek Terveer) writes: >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) > [some deleted text] > 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? > Did you miss to include <sys/sysmacros.h> ? All the listed undefined are there. >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." thomas.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads