Article 59PHD Issue with LXD SlackBuild

Issue with LXD SlackBuild

by
The_Dark_Passenger
from LinuxQuestions.org on (#59PHD)
Hello,

I'm trying to use the Slackbuild to build and install LXD on Slackware64 14.2. I downloaded, built and installed google-go-lang from the following URL:

https://slackbuilds.org/repository/1...oogle-go-lang/

I used the version of Go Lang as provided from the source link on the page, and that Slackbuild. This builds and installs without issue.

Then I download the LXD Slackbuild, and LXD 3.0.1 from the URL on the Slackbuilds page:

https://slackbuilds.org/repository/14.2/system/lxd/

However, when I attempt to build LXD, I see the following error:

Code:lxd-3.0.1/.github/ISSUE_TEMPLATE.md
lxd-3.0.1/.appveyor.yml
# gopkg.in/lxc/go-lxc.v2
dist/src/gopkg.in/lxc/go-lxc.v2/container.go:843:12: identifier "_Ctype_char" may conflict with identifiers generated by cgo
# github.com/lxc/lxd/shared/idmap
dist/src/github.com/lxc/lxd/shared/idmap/shift_linux.go:131:40: identifier "_Ctype_acl_type_t" may conflict with identifiers generated by cgoIt appears related to be the same issue as reported in the following link:

https://github.com/lxc/lxd/issues/5529

However, I've tried to build later versions of LXD, and also tried to make the change to the file in the commit mentioned in that report to the version 3.0.1 source. However, the build continues to fail with various errors. For example when trying to build 4.0.4:

Code:lxd-4.0.4/.appveyor.yml
can't load package: package github.com/lxc/lxd/lxd: cannot find package "github.com/lxc/lxd/lxd" in any of:
/usr/lib64/go1.13.10/go/src/github.com/lxc/lxd/lxd (from $GOROOT)
/tmp/SBo/lxd-4.0.4/dist/src/github.com/lxc/lxd/lxd (from $GOPATH)What would be the best way to fix this Slackbuild script so that I can compile LXD?latest?d=yIl2AUoC8zA latest?i=bT3Bv403M_Q:tgGCqyEPD1w:F7zBnMy latest?i=bT3Bv403M_Q:tgGCqyEPD1w:V_sGLiP latest?d=qj6IDK7rITs latest?i=bT3Bv403M_Q:tgGCqyEPD1w:gIN9vFwbT3Bv403M_Q
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments