Yep, these are the 2 scripts I was told to use to compile:
gcc -c -o wurfl.o wurfl.c -I/usr/include/libxml2
gcc -shared -Wl,-soname,libwurfl.so.1 -o libwurfl.so.1.0.1 wurfl.o -lxml2
So...
Type: Posts; User: retrodans
Yep, these are the 2 scripts I was told to use to compile:
gcc -c -o wurfl.o wurfl.c -I/usr/include/libxml2
gcc -shared -Wl,-soname,libwurfl.so.1 -o libwurfl.so.1.0.1 wurfl.o -lxml2
So...
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:
//...
Thankyou for the help, thought I would post the 'potential' solution (although I am still getting some errors back).
I have created a *.c and *.h file, then compiled these. Then the varnish vcl...
@anduril462 Sorry for the confusion, there is no make file as such. What Varnish has is a VCL file (VCL) this file allows for some basic settings within varnish. What we would like to do is a bit...
So, on the note that the issue is with xmlversion.h, I ammended my file so it read:
// Intialization
C{
#include <syslog.h>
#include <string.h>
#include <libxml2/libxml/xmlversion.h>
...
We are trying to improve our varnish reverse-proxy with some inline C. And as such, I have been starting to dabble. I have put in what I think to be some rather simple code, but get an error which I...