I installed v2.8.2 and rebuilt the system because I'm using SNMP, and it won't compile.
As installed, with IPV6 defined, these are the errors:
BEGIN:
tcp.cpp: In member function 'void socket_struct::DoCleanup()':
tcp.cpp:3957:17: warning: unused variable 'n' [-Wunused-variable]
int n = ps->RxBuffer.ReadData( (uint8_t *)&qps, sizeof(PSOCKET) );
^
tcp.cpp: In member function 'void socket_struct::ShowSocketInfo()':
tcp.cpp:4043:58: warning: repeated ' ' flag in format [-Wformat=]
iprintf(" myIP: %I - theirIP: %I\n", my_if_ip, his_ip);
^
tcp.cpp:4043:58: warning: unknown conversion type character 'h' in format [-Wfor
mat=]
tcp.cpp:4043:58: warning: unknown conversion type character 0xa in format [-Wfor
mat=]
tcp.cpp:4043:58: warning: too many arguments for format [-Wformat-extra-args]
In file included from C:\nburn/include/ip.h:34:0,
from snmp/asn1.cpp:30:
C:\nburn/include/nettypes.h: In member function 'IPADDR ASN::GetIPAddr()':
C:\nburn/include/nettypes.h:109:8: error: 'DWORD IPADDR4::ip_val' is private
DWORD ip_val;
^
snmp/asn1.cpp:472:7: error: within this context
i4.ip_val=ipaddr_dw;
^
make: *** [snmp/asn1.o] Error 1
END: ============================================================
With IPV4ONLY defined, these are the errors:
BEGIN:
In file included from C:\nburn/include/ip.h:34:0,
from snmp/asn1.cpp:30:
C:\nburn/include/nettypes.h: In member function 'IPADDR ASN::GetIPAddr()':
C:\nburn/include/nettypes.h:109:8: error: 'DWORD IPADDR4::ip_val' is private
DWORD ip_val;
^
snmp/asn1.cpp:472:7: error: within this context
i4.ip_val=ipaddr_dw;
^
make: *** [snmp/asn1.o] Error 1
rm software_init.o ucosmcfa.o
END: ============================================================
Release 2.8.2 Errors
Re: Release 2.8.2 Errors
This has been fixed. Contact support for the patch.
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: Release 2.8.2 Errors
I contacted support and received some updated files. Now everything compiles without errors.
However, this release turned my application into a brick. Was there something that needed to be changed to be able to use this release?
My MOD5441X application runs fine compiled with 2.8.1. I see in the release notes a change was made to I2C. The last that happened I had all kinds of problems with the NANO until I changed I2C include files.
However, this release turned my application into a brick. Was there something that needed to be changed to be able to use this release?
My MOD5441X application runs fine compiled with 2.8.1. I see in the release notes a change was made to I2C. The last that happened I had all kinds of problems with the NANO until I changed I2C include files.
Re: Release 2.8.2 Errors
uhh.... that's not good. Unfortunately, I have no idea what features you're using and/or what the component that might be failing to cause your application to "turn into a brick".
-Dan
-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: Release 2.8.2 Errors
Function StartSnmpProcessor(SNMP_TASK_PRIO) never returns.
SNMP_TASK_PRIO = MAIN_PRIO-3.
SNMP_TASK_PRIO = MAIN_PRIO-3.
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: Release 2.8.2 Errors
This is a stab in the dark, but could the problem in StartSnmpProcessor() be related to OSTaskCreate(). Is the variable 'portnum' being passed correctly?
Code: Select all
int portnum = SNMP_PORT;
. . .
if ( OSTaskCreate( SnmpReaderMain,
( void * ) portnum,
&SnmpStk[USER_TASK_STK_SIZE],
SnmpStk,
priority ) == OS_NO_ERR )
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: Release 2.8.2 Errors
Had I bothered to check how 'portnum' was used in the created task I would have seen that there is no problem with the way it's passed. I was too busy getting my exercise.
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: Release 2.8.2 Errors
So I followed the trail about as far as I can go. Ultimately, the problem is that function AddToIndex() in file Mibcls.cpp never returns.
Code: Select all
// Call tree...
StartSnmpProcessor(SNMP_TASK_PRIO);
InitializeMibs();
InitializeUDPSnmp();
AddTableElementudpEntry( ( void * ) IANA_ECHO_PORT, IPADDR4::NullIP() , IANA_ECHO_PORT );
AddToIndex( ASN_typeIpAddr, udpLocalAddress, len, IndexSuffix ); <-- never returns
void AddToIndex( int asn_type, snmp_typeCounter val, int &len, int *oidadd )
{
oidadd[len++] = val;
}