ConnectCore UL6 - netsnmp

I can compile the netsnmp simple example found here:
[TUT:Simple Application - Net-SNMP Wiki]

This is my make output:
arm-dey-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/dey/3.2-r3/ccimx6ulsbc/sysroots/cortexa7t2hf-neon-dey-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -Wall -o1 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/opt/dey/3.2-r3/ccimx6ulsbc/sysroots/cortexa7t2hf-neon-dey-linux-gnueabi/usr/include/libdigiapix -c -o snmp-test.o snmp-test.c
arm-dey-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/dey/3.2-r3/ccimx6ulsbc/sysroots/cortexa7t2hf-neon-dey-linux-gnueabi -Wl,-O1 -Wl,–hash-style=gnu -Wl,–as-needed -Wl,-z,relro,-z,now snmp-test.o -ldigiapix -L/opt/dey/3.2-r3/ccimx6ulsbc/sysroots/cortexa7t2hf-neon-dey-linux-gnueabi/lib -lnetsnmp -o snmp-test

The code runs up to the point where it is successful in contacting the agent.
But it segfaults as soon as it attempts to print the response variables which are an snmp_variable_list.

struct snmp_pdu *response;
for(vars = response->variables; vars; vars = vars->next_variable){
	print_variable(vars->name, vars->name_length, vars);

Please let me know any other information you’d need from me to be able to help me get past this issue which has me stumped.