Le mardi 26 juin 2018, 17:16:59 CEST Charlie Gibbs a écrit : > I've written a software suite using openssl-1.1.0f and libssh2-1.8.0. > On my main development box, everything compiles fine, but on my laptop > it can't find the OpenSSL library. Here's my console output: > > cc -c revdate.c > cc -O -DLINUX -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 > -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 > -lglib-2.0 -o linux/GenStart GenStart.c revdate.o linuxo/genesis.a > -lcurses -lssh2 -lssl -lcrypto > linuxo/genesis.a(gensock.o): In function `socksslstart': > gensock.c:(.text+0x1c9): undefined reference to `OPENSSL_init_ssl' > gensock.c:(.text+0x1d8): undefined reference to `OPENSSL_init_ssl' > gensock.c:(.text+0x1e6): undefined reference to `TLS_server_method' > gensock.c:(.text+0x3f1): undefined reference to `TLS_client_method' > /usr/bin/ld: linuxo/genesis.a(gensock.o): unrecognized relocation (0x2a) > in section `.text' > /usr/bin/ld: final link failed: Bad value > collect2: error: ld returned 1 exit status > make: *** [linux/GenStart] Error 1 > makefile.lnx:376: recipe for target 'linux/GenStart' failed > > I'm running Stretch on the desktop box; "cat /etc/debian_version" > returns "9.2". The failing laptop is still running a patched version of > Jessie; "cat /etc/debian_version" returns "jessie/sid". Both are 64-bit > systems. > > Do I need to upgrade my laptop? According to the man page, these functions has been introduced in version 1.1 of OpenSSL (only available in stretch and no jessie-backports). So I think it's time to upgrade.
-- Guillaume Clercin Intellique www.intellique.com Tél: 01 78 94 84 06
signature.asc
Description: This is a digitally signed message part.