Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
missing superclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing superclass



I'm porting an ethernet driver from FreeBSD to OS X. Using xcode, the driver compiles correctly with no errors or warnings. When I execute kextload, it fails with the following:

kextload: extension cxgb3.kext appears to be valid
kextload: notice: extension cxgb3.kext has debug properties set
Can't find superclass for 5cxgb3 : 20IOEthernetController
kextload: a link/load error occured for kernel extension cxgb3.kext
load failed for extension cxgb3.kext

The source cpp file starts as:

#include <machine/limits.h>            /* UINT_MAX */
#include <libkern/OSByteOrder.h>

#include <IOKit/network/IONetworkController.h>
#include <IOKit/network/IONetworkInterface.h>

#include <IOKit/network/IOEthernetController.h>
#include <IOKit/network/IOEthernetInterface.h>

#include "cxgb3.h"

#define super IOEthernetController

OSDefineMetaClassAndStructors          ( cxgb3, IOEthernetController )

bool cxgb3::start( IOService * provider )
{
   bool  success = false;


Any hints would be appreciated.

Thanks in advance, Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.