Undefined reference on make OPENSSL_init_ssl

37 views
Skip to first unread message

mar...@gmail.com

unread,
Dec 10, 2017, 8:36:06 PM12/10/17
to rdesktop User Discussion/Support
Hi,

I'm trying to compile from source so that I can include this patch (https://github.com/rdesktop/rdesktop/commit/2a6298ac63e9db2449a691e17f176b7bf6a7638f) under Debian Jessie

./configure completes ok

make does this:

gcc -g -O2 -Wall -I/usr/include -I/usr/include/gssglue   -pthread -I/usr/include/PCSC   -I/usr/include/alsa   -DPACKAGE_NAME=\"rdesktop\" -DPACKAGE_TARNAME=\"rdesktop\" -DPACKAGE_VERSION=\"1.8.3post\" -DPACKAGE_STRING=\"rdesktop\ 1.8.3post\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DL_ENDIAN=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LANGINFO_H=1 -DHAVE_SYSEXITS_H=1 -Dssldir=\"/usr\" -DWITH_CREDSSP=1 -DHAVE_XRANDR=1 -DWITH_SCARD=1 -DEGD_SOCKET=\"/var/run/egd-pool\" -DWITH_RDPSND=1 -DRDPSND_OSS=1 -DRDPSND_ALSA=1 -DHAVE_DIRENT_H=1 -DHAVE_DIRFD=1 -DHAVE_DECL_DIRFD=1 -DHAVE_ICONV_H=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_SYS_VFS_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MOUNT_H=1 -DSTAT_STATVFS=1 -DHAVE_STRUCT_STATVFS_F_NAMEMAX=1 -DHAVE_STRUCT_STATFS_F_NAMELEN=1 -DHAVE_MNTENT_H=1 -DHAVE_SETMNTENT=1 -DKEYMAP_PATH=\"/usr/local/share/rdesktop/keymaps/\" -o rdesktop rdesktop.o xwin.o xkeymap.o ewmhints.o xclip.o cliprdr.o ctrl.o rdpsnd.o rdpsnd_dsp.o rdpsnd_oss.o rdpsnd_alsa.o tcp.o asn.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o rdp5.o channels.o rdpdr.o serial.o printer.o disk.o parallel.o printercache.o mppc.o pstcache.o lspci.o seamless.o ssl.o utils.o scard.o cssp.o -L/usr/lib -L/usr/lib64 -lssl -lcrypto -ldl  -lgssglue -lXrandr  -lpcsclite   -lasound     -lX11
tcp.o: In function `tcp_tls_connect':
/mnt/hgfs/debian8vmtemp/rdesktop/ex/tcp.c:305: undefined reference to `OPENSSL_init_ssl'
/mnt/hgfs/debian8vmtemp/rdesktop/ex/tcp.c:306: undefined reference to `OPENSSL_init_ssl'
/mnt/hgfs/debian8vmtemp/rdesktop/ex/tcp.c:325: undefined reference to `SSL_CTX_set_options'

collect2: error: ld returned 1 exit status
Makefile:39: recipe for target 'rdesktop' failed
make: *** [rdesktop] Error 1

I'm not an experienced dev, but I am capable of following instructions and doing some hacking.

Any help much appreciated!

Mark
Reply all
Reply to author
Forward
0 new messages