Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9980 closed defect (fixed)

swconfig temporary disabled due to compile error

Reported by: amain Owned by: amain
Priority: minor Milestone: milestone:12.09
Component: debian/packages Version: 12.09
Severity: severity 3 Keywords:
Cc:

Description

Compiled issues (headers not found) need to be fixed:

/usr/bin/make -C src
make[1]: Entering directory `/usr/src/swconfig/swconfig-0.1/src'
mips-linux-gnu-gcc -O2 -g -I../src -I/usr/mips-linux-gnu/src/linux/include -I/usr/mips-linux-gnu/include/netlink-tiny -c -o cli.o cli.c
In file included from cli.c:38:
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:19:27: error: net/genetlink.h: No such file or directory
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:20:31: error: uapi/linux/switch.h: No such file or directory
In file included from cli.c:38:
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:29: warning: 'struct net_device' declared inside parameter list
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:29: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:117: error: field 'dev_list' has incomplete type
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:120: error: field 'sw_mutex' has incomplete type
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:132: error: expected specifier-qualifier-list before 'u32'
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:137: error: expected specifier-qualifier-list before 'u32'
/usr/mips-linux-gnu/src/linux/include/linux/switch.h:147: error: expected specifier-qualifier-list before 'u32'
In file included from cli.c:39:
swlib.h:116: error: redefinition of 'struct switch_dev'
swlib.h:132: error: redefinition of 'struct switch_val'
swlib.h:144: error: redefinition of 'struct switch_attr'
swlib.h:154: error: redefinition of 'struct switch_port'
swlib.h:159: error: redefinition of 'struct switch_portmap'
cli.c: In function 'print_attrs':
cli.c:58: error: 'SWITCH_TYPE_INT' undeclared (first use in this function)
cli.c:58: error: (Each undeclared identifier is reported only once
cli.c:58: error: for each function it appears in.)
cli.c:61: error: 'SWITCH_TYPE_STRING' undeclared (first use in this function)
cli.c:64: error: 'SWITCH_TYPE_PORTS' undeclared (first use in this function)
cli.c:67: error: 'SWITCH_TYPE_NOVAL' undeclared (first use in this function)
cli.c: In function 'list_attributes':
cli.c:84: warning: passing argument 1 of 'print_attrs' from incompatible pointer type
cli.c:86: warning: passing argument 1 of 'print_attrs' from incompatible pointer type
cli.c:88: warning: passing argument 1 of 'print_attrs' from incompatible pointer type
cli.c: In function 'print_attr_val':
cli.c:97: error: 'SWITCH_TYPE_INT' undeclared (first use in this function)
cli.c:100: error: 'SWITCH_TYPE_STRING' undeclared (first use in this function)
cli.c:103: error: 'SWITCH_TYPE_PORTS' undeclared (first use in this function)
cli.c:106: error: 'struct switch_port' has no member named 'id'
cli.c:107: error: 'struct switch_port' has no member named 'flags'
cli.c: In function 'show_attrs':
cli.c:120: error: 'SWITCH_TYPE_NOVAL' undeclared (first use in this function)
cli.c: In function 'show_global':
cli.c:138: warning: passing argument 2 of 'show_attrs' from incompatible pointer type
cli.c: In function 'show_port':
cli.c:148: warning: passing argument 2 of 'show_attrs' from incompatible pointer type
cli.c: In function 'show_vlan':
cli.c:169: warning: passing argument 2 of 'show_attrs' from incompatible pointer type
cli.c: In function 'main':
cli.c:304: error: 'SWITCH_TYPE_NOVAL' undeclared (first use in this function)
make[1]: * [cli.o] Error 1
make[1]: Leaving directory `/usr/src/swconfig/swconfig-0.1/src'
make:
* [build] Error 2

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by amain

  • Milestone set to 12.09
  • Owner set to amain
  • Status changed from new to assigned

comment:2 Changed 6 years ago by amain

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with r543.

comment:3 Changed 6 years ago by amain

  • Version changed from trunk to 12.09

Add Comment

Modify Ticket

Action
as closed The owner will remain amain.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.