Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #196954

Can't link to OpenSSL on my laptop

From Charlie Gibbs <cgibbs@surfnaked.ca>
Newsgroups linux.debian.user
Subject Can't link to OpenSSL on my laptop
Date 2018-06-26 17:20 +0200
Message-ID <w4XV7-20G-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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?

-- 
cgibbs@surfnaked.ca (Charlie Gibbs)

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Can't link to OpenSSL on my laptop Charlie Gibbs <cgibbs@surfnaked.ca> - 2018-06-26 17:20 +0200
  Re: Can't link to OpenSSL on my laptop The Wanderer <wanderer@fastmail.fm> - 2018-06-26 17:40 +0200
  Re: Can't link to OpenSSL on my laptop Guillaume Clercin <gclercin@intellique.com> - 2018-06-26 17:40 +0200

csiph-web