Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Trying to compile project using libxml2 produces errors in the module itself. #88

Closed
ghost opened this issue Oct 16, 2023 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Oct 16, 2023

I am trying to build the XSD validation example from the README.md file, and followed the following scenario:

  1. go get github.com/lestrrat-go/libxml2 to load the first module.
  2. go get github.com/lestrrat-go/libxml2/xsd to load the second module.
  3. added the example from the README.md file after package main in main.go.
  4. renamed the ExampleXSD() function to main().
  5. tried to go build main.go.
  6. compiler output is below, and points only to errors in the module.
GOROOT=C:\Program Files\Go #gosetup
GOPATH=C:\Program Files\Go\bin;C:\Users\Andre Slabber\go #gosetup
"C:\Program Files\Go\bin\go.exe" build -o "C:\Users\Andre Slabber\AppData\Local\JetBrains\GoLand2023.1\tmp\GoLand\___go_build_xsdvalidate.exe" xsdvalidate #gosetup
# github.com/lestrrat-go/libxml2/xsd
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xsd\xsd.go:34:20: undefined: clib.XMLSchemaParse
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xsd\xsd.go:45:20: undefined: clib.XMLSchemaParseFromFile
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xsd\xsd.go:60:17: undefined: clib.XMLSchemaFree
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xsd\xsd.go:70:15: undefined: clib.XMLSchemaValidateDocument
# github.com/lestrrat-go/libxml2/xpath
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:40:35: undefined: clib.XMLXPathObjectType
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:45:14: undefined: clib.XMLXPathObjectFloat64
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:50:14: undefined: clib.XMLXPathObjectBool
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:74:18: undefined: clib.XMLXPathObjectNodeList
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:91:18: undefined: clib.XMLXPathObjectNodeList
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:124:7: undefined: clib.XMLXPathFreeObject
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:129:19: undefined: clib.XMLXPathCompile
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:149:7: undefined: clib.XMLXPathFreeCompExpr
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:163:22: undefined: clib.XMLXPathNewContext
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:179:14: undefined: clib.XMLXPathContextSetContextNode
C:\Program Files\Go\bin\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:179:14: too many errors

Am I doing something wrong here, or is this a bug? I've added a screenshot of my project tree.

20231016_101903
@ghost
Copy link
Author

ghost commented Oct 16, 2023

Sorry to enter this and then find issue #62 that was already closed for now

@ghost ghost closed this as completed Oct 16, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants