undefined symbol: wurfl_ismobile
I am a beginner to C, and am doing a tutorial from the site:
Mobile device detection with WURFL and Varnish - Enrise
I have a very simple setup at the moment, my vcl file consists of:
Code:
// Intialization
C{
#include "/home/retrobadger/working_files/tutorials/varnish_terawurfl_c/wurfl.h";
int is_mobile;
}C
sub detectmobile {
C{
char *ua = "bam";
is_mobile = wurfl_ismobile();
//is_mobile = 1;
VRT_SetHdr(sp, HDR_BEREQ, "\011X-Varnish-TeraWurfl:", (is_mobile == 1)?"yes":"no", vrt_magic_string_end);
}C
}
But, when I go to restart varnish, I get an error such as:
Code:
undefined symbol: wurfl_ismobile
Now, my function wurfl_ismobile is in a *.h and a *.c file as shown in the docs, although the *.c file is much simpler. Does anyone have a suggestion as to how I might start debugging this error message? I do not get an error message when I set the variable to 1, so I assume it's to do with the way I am requesting the function, or *.h file.
Thanks for any advice you can give,
Dan