> umm ... assuming that you have SFWgcc installed
> 
> in sh/bash/ksh:
> PATH=${PATH}:/usr/ccs/bin:/usr/sfw/bin:/opt/sfw/bin
> export PATH
> 
> in csh:
> setenv PATH
> ${PATH}:/usr/ccs/bin:/usr/sfw/bin:/opt/sfw/bin
> 
> then use 'gmake'

Thanks for your responses.

I can only assume when I ran 'make' for the first time without any changes it 
wasn't really compiling the driver as it returned cleanly and it installed the 
pre-compiled binaries.

With the changes above included it proceeds to compile and then bombs when the 
header file refers to a 'sys' directory that does not exist:

# gmake
gcc -c -O3 -D__INLINE__=inline -DGEM_GCC_RUNTIME -ffreestanding -U_NO_LONGLONG 
-D_KERNEL -U_ASM_INLINES -D_SYSCALL32 -D_SYSCALL32_IMPL -Dsun -D__sun -D__SVR4  
-DC2_AUDIT -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare 
-Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration 
-Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Wno-format -Werror 
-Di86pc -DDEBUG -DDEBUG_LEVEL=3 -UGEM_DEBUG_LEVEL 
-I/home/mrym/opensolaris/usr/src/uts/common -DGEM_CONFIG_POLLING 
-DGEM_CONFIG_GLDv3 -DGEM_CONFIG_VLAN_HW -DGEM_CONFIG_CKSUM_OFFLOAD -DSOLARIS10 
-Unotdef -UNEVER -UGEM_GCC_RUNTIME -UGEM_COMPAT -USANITY -UGEM_CONFIG_FMA 
-UMODULE -UGEM_CONFIG_RX_DIRECT -DGEM_CONFIG_TX_DIRECT -UOS_PUTBACK 
-DCONFIG_LSO -UCONFIG_OO -DCONFIG_HW_VLAN -DVERSION='"2.6.0"' myk_gem.c -o 
i386/myk_gem.o
In file included from myk_gem.c:127:
gem.h:38:21: sys/mac.h: No such file or directory
gem.h:39:27: sys/mac_ether.h: No such file or directory
In file included from myk_gem.c:127:
gem.h:232: error: syntax error before "mac_handle_t"
gem.h:232: warning: no semicolon at end of struct or union
gem.h:263: error: syntax error before "mac_rx_ring_ha"
gem.h:263: warning: type defaults to `int' in declaration of `mac_rx_ring_ha'
gem.h:263: warning: data definition has no type or storage class
gem.h:310: error: syntax error before ':' token
gem.h:311: error: syntax error before ':' token
gem.h:312: error: syntax error before ':' token
gem.h:313: error: syntax error before ':' token
gem.h:314: error: syntax error before ':' token
gem.h:315: error: syntax error before ':' token
gem.h:316: error: syntax error before ':' token
gem.h:317: error: syntax error before ':' token
gem.h:318: error: syntax error before ':' token
gem.h:319: error: syntax error before ':' token
gem.h:321: error: syntax error before ':' token
gem.h:322: error: syntax error before ':' token
gem.h:327: error: syntax error before ':' token
gem.h:333: error: syntax error before ':' token
gem.h:631: error: syntax error before '}' token
myk_gem.c: In function `myk_is_copper':
myk_gem.c:363: error: dereferencing pointer to incomplete type
myk_gem.c: In function `myk_set_macaddr':
myk_gem.c:385: error: dereferencing pointer to incomplete type
myk_gem.c:385: error: dereferencing pointer to incomplete type

I used gmake/SUNWgcc on SXCE Build 88.

Has anyone been able to get this driver to compile?

Cheers, JP
 
 
This message posted from opensolaris.org

Reply via email to