You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EGOPATH=/snap/ego-dev/current/opt/ego CGO_CFLAGS=-I$EGOPATH/include CGO_LDFLAGS=-L$EGOPATH/lib go build ra_client/client.go
# command-line-arguments
/snap/go/10339/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /snap/ego-dev/current/opt/ego/lib/liboehostverify.a(key.c.o): in function `oe_private_key_from_engine':
key.c:(.text+0x3de): undefined reference to `EVP_PKEY_id'
/usr/bin/ld: /snap/ego-dev/current/opt/ego/lib/liboehostverify.a(key.c.o): in function `oe_private_key_read_pem':
key.c:(.text+0xaab): undefined reference to `EVP_PKEY_id'
/usr/bin/ld: /snap/ego-dev/current/opt/ego/lib/liboehostverify.a(key.c.o): in function `oe_public_key_read_pem':
key.c:(.text+0xfdb): undefined reference to `EVP_PKEY_id'
collect2: error: ld returned 1 exit status
Expected behavior
The example should compile without an error.
Additional info
sudo apt search libssl-dev
Sorting... Done
Full Text Search... Done
libssl-dev/jammy-updates,jammy-security,now 3.0.2-0ubuntu1.10 amd64 [installed]
Secure Sockets Layer toolkit - development files
Normal go compiler has been installed via snap:
sudo snap install go --classic
go 1.21.1 from Canonical✓ installed
Thanks for reporting! We can confirm that using the EGo snap on Ubuntu 22.04, you can't build the remote attestation client. (But you can build and run the server.)
There are two workarounds:
Build the client using the ego-dev container: docker run --rm -v$PWD:$PWD -w$PWD ghcr.io/edgelesssys/ego-dev go build ra_client/client.go
Issue description
After performing a apt upgrade on ubuntu 22.04 I cannot build the example for remote attestation anymore. (it worked previously)
To reproduce
Steps to reproduce the behavior:
sudo apt update && sudo apt upgrade
sudo snap install ego-dev --classic
sudo apt install build-essential libssl-dev
git clone https://github.com/edgelesssys/ego.git
cd ego/samples/remote_attestation/
ego-go build
ego sign server
sudo ego run server
EGOPATH=/snap/ego-dev/current/opt/ego CGO_CFLAGS=-I$EGOPATH/include CGO_LDFLAGS=-L$EGOPATH/lib go build ra_client/client.go
Expected behavior
The example should compile without an error.
Additional info
Normal go compiler has been installed via snap:
Seems like the function
MVP_PKEY_id
has been renamed in newer version of libssl:https://manpages.debian.org/testing/libssl-doc/EVP_PKEY_id.3ssl.en.html#HISTORY
The text was updated successfully, but these errors were encountered: