Building Device Agent mender on Fedora

Hi,

I am trying to build mender device agent on a Fedora or Alamlinux container… I have installed libzma and openssl-1.1.1k … but getting the bellow error, the libraries libpthread.so libdl.so and libc.so are present at /usr/lib64 directory. I did export LD_LIBRARY_PATH. I’m still getting the error.
Appreciate your input.

-pei

/usr/lib/golang/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status

Hi @pei.cei,

the LD_LIBRARY_PATH does not affect the linking stage of a build process. The right place to start should be the -ldflags parameter, which can be passed to go build. This stackoverflow post might give you some ideas on how to proceed.

Greetz,
Josef