SCALE-MAMBA: Error in make progs

106 views
Skip to first unread message

up201...@fc.up.pt

unread,
Jul 24, 2018, 5:16:05 PM7/24/18
to SPDZ/SCALE-MAMBA Discussion Group
Hello, im having a problem when i run make progs. I get the following message:

Setup.o: In function `init_certs()':
/home/lol/Downloads/SCALE-MAMBA/src/Setup.cpp:98: undefined reference to `OPENSSL_init_ssl'
collect2: error: ld returned 1 exit status
Makefile:38: recipe for target 'Setup.x' failed
make[1]: *** [Setup.x] Error 1
make[1]: Leaving directory '/home/lol/Downloads/SCALE-MAMBA/src'
Makefile:7: recipe for target 'progs' failed
make: [progs] Error 2 (ignored)

I changed to ssl folder in config.mine to the one that i get when i run openssl -a:

lol@lol-K55VM:~/openssl-1.1.0f$ openssl version -a
OpenSSL 1.1.0f  25 May 2017
built on: reproducible build, date unspecified
platform: linux-x86_64
compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\""  -Wa,--noexecstack
OPENSSLDIR: "/usr/local/ssl"
ENGINESDIR: "/usr/local/lib/engines-1.1"

Is that the right openssl folder?
Or is this not the cause of this error? I'm not sure what i did wrong or if im missing anything on  my machine.

Nigel Smart

unread,
Jul 25, 2018, 4:09:24 AM7/25/18
to sp...@googlegroups.com
This looks like you are not linking against the openssl library.
On some Linux systems Openssl is only installed as an executable.
Thus you need to install your own version of openssl in your
own space to link SCALE-MAMBA against. This is what we do

Nigel
> --
> You received this message because you are subscribed to the Google
> Groups "SPDZ/SCALE-MAMBA Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spdz+uns...@googlegroups.com
> <mailto:spdz+uns...@googlegroups.com>.
> To post to this group, send email to sp...@googlegroups.com
> <mailto:sp...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/spdz.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/spdz/2ab36e2e-e853-46f9-9048-fd411f650568%40googlegroups.com
> <https://groups.google.com/d/msgid/spdz/2ab36e2e-e853-46f9-9048-fd411f650568%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Apar Mahajan

unread,
Mar 21, 2023, 3:08:56 AM3/21/23
to SPDZ/SCALE-MAMBA Discussion Group
error in make progs
make progs cd src ; make make[1]: Entering directory '/home/dazaisan/SCALE-MAMBA/src' g++ -Wall -std=c++14 -pedantic -Wextra -pthread -I/home/dazaisan/SCALE-MAMBA/src -mtune=native -maes -mpclmul -msse4.1 -mavx -mbmi2 -madx -march=core2 -DMAX_MOD_SZ=7 -DMAX_GFP_SZ=3 -O3 -I/openssl/include -o Setup.o -c Setup.cpp Setup.cpp:15:10: fatal error: openssl/err.h: No such file or directory 15 | #include "openssl/err.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:30: Setup.o] Error 1 make[1]: Leaving directory '/home/dazaisan/SCALE-MAMBA/src' make: [Makefile:7: progs] Error 2 (ignored)

I have openssl in own space but still got this error
having issue in linking it to SCALE-MAMBA 

Kelong Cong

unread,
Mar 21, 2023, 4:49:22 AM3/21/23
to Apar Mahajan, SPDZ/SCALE-MAMBA Discussion Group
Hello, I think this is not a linking issue, but an issue about the
compiler not finding your openssl header files. It seems your openssl
header files is configured to be under /openssl/include. Could you
check whether /openssl/include/openssl/err.h exists?
> send an email to spdz+uns...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/spdz/40e1377c-9710-4848-93e0-b47597c089b6n%40googlegroups.com
> .

Reply all
Reply to author
Forward
0 new messages