Patrick, da maneira como vc falo, nao funcionou dava erro no make depend em relação a isso.. #ifndef PP_FR #define PP_FR 0
qd faço do meu jeito, ele passa do make depend mas nao do make.. segue o log !! cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror ../../../pci/if_cpc.c ../../../pci/if_cpc.c:89: warning: parameter names (without types) in function declaration ../../../pci/if_cpc.c:90: error: syntax error before "int" ../../../pci/if_cpc.c:90: warning: function declaration isn't a prototype ../../../pci/if_cpc.c:93: error: variable `cpc_device' has initializer but incomplete type ../../../pci/if_cpc.c:94: warning: excess elements in struct initializer ../../../pci/if_cpc.c:94: warning: (near initialization for `cpc_device') ../../../pci/if_cpc.c:95: warning: excess elements in struct initializer ../../../pci/if_cpc.c:95: warning: (near initialization for `cpc_device') ../../../pci/if_cpc.c:96: warning: excess elements in struct initializer ../../../pci/if_cpc.c:96: warning: (near initialization for `cpc_device') ../../../pci/if_cpc.c:97: warning: excess elements in struct initializer ../../../pci/if_cpc.c:97: warning: (near initialization for `cpc_device') ../../../pci/if_cpc.c:99: warning: excess elements in struct initializer ../../../pci/if_cpc.c:99: warning: (near initialization for `cpc_device') ../../../pci/if_cpc.c:100: warning: type defaults to `int' in declaration of `COMPAT_PCI_DRIVER' ../../../pci/if_cpc.c:100: warning: parameter names (without types) in function declaration ../../../pci/if_cpc.c:100: warning: data definition has no type or storage class ../../../pci/if_cpc.c: In function `tx_dma_buf_init': ../../../pci/if_cpc.c:145: warning: cast discards qualifiers from pointer target type ../../../pci/if_cpc.c: In function `rx_dma_buf_init': ../../../pci/if_cpc.c:178: warning: cast discards qualifiers from pointer target type ../../../pci/if_cpc.c: In function `cpc_start': ../../../pci/if_cpc.c:1565: error: `IFF_OACTIVE' undeclared (first use in this function) ../../../pci/if_cpc.c:1565: error: (Each undeclared identifier is reported only once ../../../pci/if_cpc.c:1565: error: for each function it appears in.) ../../../pci/if_cpc.c:1568: error: `IFF_RUNNING' undeclared (first use in this function) ../../../pci/if_cpc.c:1643: warning: passing arg 1 of `bpf_tap' from incompatible pointer type ../../../pci/if_cpc.c: In function `cpc_watchdog': ../../../pci/if_cpc.c:1671: error: `IFF_RUNNING' undeclared (first use in this function) ../../../pci/if_cpc.c:1694: error: `IFF_OACTIVE' undeclared (first use in this function) ../../../pci/if_cpc.c: In function `cpc_rx_get': ../../../pci/if_cpc.c:1991: warning: passing arg 1 of `bpf_tap' from incompatible pointer type ../../../pci/if_cpc.c: In function `sca_intr': ../../../pci/if_cpc.c:2090: error: `IFF_OACTIVE' undeclared (first use in this function) ../../../pci/if_cpc.c:2137: error: `IFF_RUNNING' undeclared (first use in this function) ../../../pci/if_cpc.c: At top level: ../../../pci/if_cpc.c:2792: error: syntax error before "config_id" ../../../pci/if_cpc.c:2793: warning: function declaration isn't a prototype ../../../pci/if_cpc.c: In function `cpc_probe': ../../../pci/if_cpc.c:2794: error: `device_id' undeclared (first use in this function) ../../../pci/if_cpc.c: In function `cpc_init': ../../../pci/if_cpc.c:2931: error: structure has no member named `if_unit' ../../../pci/if_cpc.c:2932: error: structure has no member named `if_name' ../../../pci/if_cpc.c:2940: error: structure has no member named `if_name' ../../../pci/if_cpc.c:2940: error: structure has no member named `if_unit' ../../../pci/if_cpc.c: At top level: ../../../pci/if_cpc.c:2968: error: syntax error before "config_id" ../../../pci/if_cpc.c:2969: warning: function declaration isn't a prototype ../../../pci/if_cpc.c: In function `cpc_attach': ../../../pci/if_cpc.c:2981: error: `unit' undeclared (first use in this function) ../../../pci/if_cpc.c:2987: warning: implicit declaration of function `pci_conf_read' ../../../pci/if_cpc.c:2987: warning: nested extern declaration of `pci_conf_read' ../../../pci/if_cpc.c:2987: error: `config_id' undeclared (first use in this function) ../../../pci/if_cpc.c:2994: warning: implicit declaration of function `pci_conf_write' ../../../pci/if_cpc.c:2994: warning: nested extern declaration of `pci_conf_write' ../../../pci/if_cpc.c:3020: warning: implicit declaration of function `pci_map_int' ../../../pci/if_cpc.c:3020: warning: nested extern declaration of `pci_map_int' ../../../pci/if_cpc.c:3020: error: `net_imask' undeclared (first use in this function) ../../../pci/if_cpc.c: At top level: ../../../pci/if_cpc.c:93: error: storage size of `cpc_device' isn't known ../../../pci/if_cpc.c:93: warning: 'cpc_device' defined but not used *** Error code 1 é isso.. vou tentar algumas coisas, mas se quiseres podes dar mais uma ajudinha ai hehehehe Abraços !! ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd