Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$ brew install libxml2 $ go build
$ go build
# gokogiri/xpath
error: 'xmlXPathContextSetDeadline' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: 'time_t' undeclared (first use in this function)
package xpath
/*
#cgo CFLAGS: -I/usr/local/opt/libxml2/include/libxml2
#cgo LDFLAGS: -lxml2 -L/usr/local/opt/libxml2/lib
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/parser.h>
xmlNode* fetchNode(xmlNodeSet *nodeset, int index) {
return nodeset->nodeTab[index];
}
*/
@moraes

This comment has been minimized.

Show comment Hide comment
@moraes

moraes Jan 18, 2013

Hey. How did you solve this? I'm trying to test gokogiri and getting this same error.

moraes commented Jan 18, 2013

Hey. How did you solve this? I'm trying to test gokogiri and getting this same error.

@moraes

This comment has been minimized.

Show comment Hide comment
@moraes

moraes Jan 18, 2013

Ignore me. The master branch is just completely messed. That function doesn't exist anywhere.

moraes commented Jan 18, 2013

Ignore me. The master branch is just completely messed. That function doesn't exist anywhere.

@jhinrichsen

This comment has been minimized.

Show comment Hide comment
@jhinrichsen

jhinrichsen Feb 12, 2013

Strolling the same path...

So what revision did you use then?

Strolling the same path...

So what revision did you use then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment