SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can this patch be applied to zstd to fix the libdir in the .pc file? Its required for building the current mesa master on multilib systems. No changes to the slackbuild will be needed.
Could we get go 1.13.5 from golang.org installed? The go from GCC doesn't build mongo tools correctly. With the following code:
Code:
package main
import (
"fmt"
)
var version = "Not Set!!!"
func main() {
fmt.Printf("Hello world, version: %s\n", version)
}
the command
Code:
go build -o version -buildmode=pie -ldflags '-X main.version=1.0'
generates an incorrect binary.
Code:
# ./version
Hello world, version: Not Set!!!
When built with go 1.13.5 from golang, the output is correct:
Code:
# ./version
Hello world, version: 1.0
Also, when building Mongo tools with gccgo, the following error occurs:
Code:
Building mongoreplay...
go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags
# command-line-arguments
/usr/bin/ld: $WORK/b001/_pkg1_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: $WORK/b001/_pkg2_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: $WORK/b001/_pkg3_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
This error does not occur with go 1.13.5.
I have installed go 1.13.5 in /usr/go1.13.5 so as not to conflict with gccgo.
Could we get go 1.13.5 from golang.org installed? The go from GCC doesn't build mongo tools correctly.
go (golang) and gcc-go (gnu go compiler) are two different things, go is a programming language where gcc-go is a compiler frontend. Did mongo tools build properly before with gcc-go?
Source. Willy has a SlackBuild as it is a dependency of Mate (I also ship it in Slint for the same reason). But maybe all this stuff is already in the pipe, who knows
You are trying to build something with the wrong tools. So, you are requesting golang to be included in Slackware because something that is not in Slackware requires it?
golang is available via SBo and *I* don't think that volkerdi is or should include something that he and Slackware have no need of.
If this is not specified in any of the configuration files, the library will try to guess an appropriate driver to use.
But as we don't know what's behind this guess, better suggest the user or admin to set it explicitly. As an example I put this in /etc/libao.conf:
Code:
# To make a setting at user level write ~/.libao.conf
# It will have precedence over this one, for the user in concern.
# To know more, type: "man libao.conf"
# This libao package includes following drivers:
# alsa
# esd
# pulse
# oss
default_driver=alsa
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.