> Hi
>
> After successfully cross compiling net-snmp with openssl 1.1.0a support
> for SHA authentication for an ARM9 I am trying to add IPV6 support by just
> compiling with --enable-ipv6. However some difficulties cross compiling
> difficulties did occur
>
> I tried out both versions net-snmp 5.4.1 and 5.5
>
> on net-snmp 5.4.1 the compilation terminated with
>
>  arm-926ejs-linux-gnueabi-gcc -I../../include
> -I/home_vie/mhofer/work/net-snmp/include -I. -I../../agent 
> -I/home_vie/mhofer/work/net-snmp/agent
> -I../../agent/mibgroup -I/home_vie/mhofer/work/net-snmp/agent/mibgroup
> -I../../snmplib -I/home_vie/mhofer/work/net-snmp/snmplib
> -I/home_vie/mhofer/work/VBTip6/target_arm/include 
> -I/home_vie/mhofer/work/VBTip6/include
> -DNETSNMP_ENABLE_IPV6 -Ulinux -Dlinux=linux -g -c
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_common.c
>  -o
> ip-mib/data_access/ipaddress_common.o >/dev/null 2>&1
>  arm-926ejs-linux-gnueabi-gcc -I../../include
> -I/home_vie/mhofer/work/net-snmp/include -I. -I../../agent 
> -I/home_vie/mhofer/work/net-snmp/agent
> -I../../agent/mibgroup -I/home_vie/mhofer/work/net-snmp/agent/mibgroup
> -I../../snmplib -I/home_vie/mhofer/work/net-snmp/snmplib
> -I/home_vie/mhofer/work/VBTip6/target_arm/include 
> -I/home_vie/mhofer/work/VBTip6/include
> -DNETSNMP_ENABLE_IPV6 -Ulinux -Dlinux=linux -g -c
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
>   -fPIC -DPIC -o
> ip-mib/data_access/.libs/ipaddress_linux.o
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:
> In function '_load_v6':
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:281:
> error: 'IFA_F_PERMANENT' undeclared (first use in this function)
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:281:
> error: (Each undeclared identifier is reported only once
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:281:
> error: for each function it appears in.)
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:283:
> error: 'IFA_F_DEPRECATED' undeclared (first use in this function)
> /home_vie/mhofer/work/net-snmp/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:285:
> error: 'IFA_F_TENTATIVE' undeclared (first use in this function)
> make[4]: *** [ip-mib/data_access/ipaddress_linux.lo] Error 1
> make[4]: Leaving directory
> `/home_vie/mhofer/work/net-snmp/build_arm/agent/mibgroup'
> make[3]: *** [subdirs] Error 1
> make[3]: Leaving directory
> `/home_vie/mhofer/work/net-snmp/build_arm/agent'
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/home_vie/mhofer/work/net-snmp/build_arm'
> make[1]: *** [makeit] Error 2
> make[1]: Leaving directory `/home_vie/mhofer/work/net-snmp'
> make: *** [net-snmp_nodeps] Error 2

Sorry for the repost just before...

The solution to this problem is, that the the includes I was using for cross 
compiling for the arm didn't have the definitions for IFA_F_DEPRECATED, etc

They are usually located in /linux/rtnetlink.h or /linux/if_addr.h. Normally 
ipaddress_linux.c only includes rtnetlink.h and depending on which toolchain 
you are using IFA_F_* is definied here or not; if not then it is usually 
defined in if_addr.h, which is, again depending on the version you are using, 
included by rtnetlink.h or not. So as a workarround you have to specify the 
path where the corresponding variables are defined.

I didn't look into the other compile error; maybe later on

Regards
Markus
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to