Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not compatible with its superclass?



Godfrey van der Linden writes:
> Are you using the project builder build files? If so what sort of
> project have you set up? Can you post a compile line of the entire
> gm_arch.cpp file please?

Sure, its appended below.

But I think you pointed me in the right direction -- I didn't think to
check the flags. Thanks for the pointer. I'm building from a normal
GNU make file. Our driver is mostly platform independant code and runs
on 8 platforms, one of them windows.., so we try to go for the lowest
common denominator and avoid sexy IDEs.

I orignally got the C{XX}FLAGS and LDFLAGS from watching an Apple
project build in the project builder. I guess its time to do that
again. Are they stored anywhere as a text file?

Also, it looks like Jaguar now has zlib in the kernel:
% nm /mach | grep zlib
000ea7c4 A _zlibVersion

Is there an interface for using this? I'm asking because I imagine
that it will collide with the version we have in our driver (we use it
to load firmware onto our device).

Thanks,

Drew


cc -c -Idrivers/macosx/gm -g -O2 -DHAVE_CONFIG_H -Iinclude -I/home/gallatin/gm/gm1/include -I/home/gallatin/gm/gm1/drivers/macosx/gm -DGM_DEBUG=0 -Dgallatin=1 -DINSIST -DGM_BUILDING_GM=1 -DGM_KERNEL=1 -I/home/gallatin/gm/gm1/drivers -I/home/gallatin/gm/gm1/zlib -I/System/Library/Frameworks/Kernel.framework/Headers/ -I/System/Library/Frameworks/Kernel.framework/Headers/bsd -DHAVE_CONFIG_H -Iinclude -I/home/gallatin/gm/gm1/include -I/home/gallatin/gm/gm1/drivers/macosx/gm -DGM_DEBUG=0 -Dgallatin=1 -DINSIST -DGM_BUILDING_GM=1 -DGM_KERNEL=1 -I/home/gallatin/gm/gm1/drivers -I/home/gallatin/gm/gm1/zlib -DGM_BUILDING_INTERNALS=1 -DGM_KERNEL -I/home/gallatin/gm/gm1/zlib -I/home/gallatin/gm/gm1 -I/home/gallatin/gm/gm1/drivers -I/include -I/home/gallatin/gm/gm1/include -I/home/gallatin/gm/gm1/drivers/macosx/gm -I/home/gallatin/gm/gm1/drivers/macosx/ifnet -DGM_CPU_powerpc=1 -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -no-cpp-precomp -arch ppc -fno-common -nostdinc -O -fpermissive -Wno-four-char-constants -Wno-unknown-pragmas -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch -static -x c++ -fno-rtti -fno-exceptions -fcheck-new -fvtable-thunks -findirect-virtual-calls /home/gallatin/gm/gm1/drivers/macosx/gm/gm_arch.cpp -o drivers/macosx/gm/gm_arch_k.o
cc1plus: warning: -fvtable-thunks is no longer supported
/home/gallatin/gm/gm1/drivers/macosx/gm/gm_arch.cpp: In member function
`virtual bool gm::start(IOService*)':
/home/gallatin/gm/gm1/drivers/macosx/gm/gm_arch.cpp:400: warning: converting
from `void (gm::*)(OSObject*, IOInterruptEventSource*, int)' to `void
(*)(OSObject*, IOInterruptEventSource*, int)'
cc -o binary/sbin/gm.kext/Contents/MacOS/gm -arch ppc -static -nostdlib -r \
drivers/macosx/gm/gm_arch_k.o -lkmodc++ drivers/gm_k.o drivers/gm_ether_k.o drivers/gm_instance_k.o drivers/gm_minor_k.o drivers/gm_pio_k.o drivers/gm_port_state_k.o drivers/gm_uc_k.o drivers/macosx/gm/iokit_info_k.o drivers/macosx/ifnet/gm_macosx_ether_k.o drivers/gm_bsd_ether_k.o mcp/gm_lanai_rate_array.o mcp/gmcp_array_32b_l7_4k_newfeatures.o mcp/gmcp_array_32b_l9_4k_newfeatures.o zlib/adler32_k.o zlib/compress_k.o zlib/crc32_k.o zlib/uncompr_k.o zlib/deflate_k.o zlib/trees_k.o zlib/zutil_k.o zlib/inflate_k.o zlib/infblock_k.o zlib/inftrees_k.o zlib/infcodes_k.o zlib/infutil_k.o zlib/inffast_k.o libgm/libgm_k.a -lkmod -lcc_kext
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >not compatible with its superclass? (From: Andrew Gallatin <email@hidden>)
 >Re: not compatible with its superclass? (From: Godfrey van der Linden <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.