Comments (8)
I'm not much of an expert around this, but one thing I suspect is that libxml2 was not installed with /usr/include
?
What does pkg-config --libs libxml2
tell you?
from libxml2.
Here is the output:
# pkg-config --libs libxml2
Package libxml2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml2' found
I take it you are expecting libxml2
instead of libxml-2.0
?
When building with -x
# go build -x
WORK=/tmp/go-build3518064176
mkdir -p $WORK/b003/
cd /root/go/pkg/mod/github.com/lestrrat/[email protected]/clib
pkg-config --cflags -- libxml-2.0
pkg-config --libs -- libxml-2.0
TERM='dumb' CGO_LDFLAGS='"-g" "-O2" "-lxml2"' /usr/local/go/pkg/tool/linux_amd64/cgo -objdir $WORK/b003/ -importpath github.com/lestrrat/go-libxml2/clib -- -I/usr/include/libxml2 -I $WORK/b003/ -g -O2 ./clib.go
# github.com/lestrrat/go-libxml2/clib
In file included from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/HTMLparser.h:16,
from /root/go/pkg/mod/github.com/lestrrat/[email protected]/clib/clib.go:28:
/usr/include/libxml2/libxml/encoding.h:28:10: fatal error: iconv.h: No such file or directory
28 | #include <iconv.h>
| ^~~~~~~~~
compilation terminated.
It references /usr/include/libxml2
which I can verify does contain header files
from libxml2.
Oh, now that I think about it, did you install libxml2-dev
or libxml2-devel
or whatever it is?
from libxml2.
Yes I have, if you have a look at the Dockerfile
, I have installed
pkg-config
gcc-mingw-w64
for cross-compilationlibc6
,libc6-dev
which I believe containslibiconv
libxml2
,libxml2-dev
from libxml2.
Oh, hmm... sorry now I'm stumped. :/
from libxml2.
No worries, I figured it's not really an issue with your package (which I have found quite useful, thanks for that!). I will keep digging. Feel free to close this.
from libxml2.
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
from libxml2.
This issue was closed because it has been stalled for 7 days with no activity. This does not mean your issue is rejected, but rather it is done to hide it from the view of the maintains for the time being. Feel free to reopen if you have new comments
from libxml2.
Related Issues (20)
- [WIP] future: Maintenance and releases
- https://github.com/lestrrat-go/libxml2/blob/master/clib/clib.go Package Build is failing with "could not determine kind of name for C.free" HOT 4
- dom.SetNamespace creates `xmlns:` in child elements HOT 8
- Incorrect element name when creating element using `CreateElementNS` without namespace prefix
- invalid selfClosing Tag HOT 1
- XSD validation XML path HOT 3
- ERROR pkg-config --cflags -- libxml-2.0 HOT 4
- About HTMLParser encoding HOT 8
- How to remove node HOT 1
- How to remove a node? HOT 11
- docker build found clib undefined HOT 3
- Support for RelaxNG schemas HOT 5
- [Regression] Default values from XSD causes validation to fail HOT 3
- Memory leak when parsing XSDs HOT 2
- Unsafe pointer usage HOT 2
- parser error : internal error: Huge input lookup HOT 3
- RemoveChild() for AttributeNode HOT 3
- Trying to compile project using libxml2 produces errors in the module itself. HOT 1
- Newer versions of libxml doesn't have stdlib.h include HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libxml2.