Hi, Jerry!
On Thu, Oct 9, 2014 at 5:52 PM, Jerry James <james(a)xemacs.org> wrote:
On Thu, Oct 9, 2014 at 3:04 PM, Jerry James <james(a)xemacs.org>
wrote:
> Do you have a pre-1.0 version of libssl? I'll have to insert some
> version checks on those functions and use (poorer) substitutes if they
> are not available. Thanks for the report.
No, that's not the problem. There's no -lssl on the link line. Can
you try again with the patch I just pushed? If the same thing
happens, could you send me your config.log? Thanks Vin.
For me, with no --with-tls option, the latest sources fail to link:
gcc -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wdeclaration-after-statement -Wunused-parameter
-g -lssl -lcrypto -Wl,-export-dynamic -o temacs abbrev.o
alloc.o alloca.o array.o balloon_help.o balloon-x.o blocktype.o
buffer.o bytecode.o callint.o casefiddle.o casetab.o chartab.o
filelock.o cmdloop.o cmds.o console.o console-stream.o data.o
debug.o tests.o device.o dired.o doc.o doprnt.o editfns.o elhash.o
emacs.o emodules.o eval.o events.o event-stream.o event-unixoid.o
dumper.o inline.o linuxplay.o miscplay.o terminfo.o extents.o faces.o
file-coding.o fileio.o filemode.o floatfns.o fns.o font-lock.o
frame.o gc.o general.o glyphs.o glyphs-eimage.o glyphs-shared.o
glyphs-widget.o gui.o menubar.o scrollbar.o dialog.o toolbar.o
gutter.o hash.o imgproc.o indent.o insdel.o intl.o keymap.o
line-number.o lread.o lstream.o macros.o marker.o md5.o minibuf.o
fontcolor.o opaque.o print.o process.o process-unix.o profile.o
rangetab.o realpath.o redisplay.o redisplay-output.o regex.o search.o
select.o sequence.o sysdll.o signal.o sound.o specifier.o strftime.o
symbols.o syntax.o sysdep.o text.o tls.o console-tty.o device-tty.o
event-tty.o frame-tty.o fontcolor-tty.o redisplay-tty.o cm.o undo.o
unicode.o console-x.o device-x.o event-Xt.o frame-x.o glyphs-x.o
fontcolor-x.o redisplay-x.o select-x.o gccache-x.o intl-x.o gui-x.o
menubar-x.o scrollbar-x.o dialog-x.o toolbar-x.o toolbar-xlike.o
widget.o window.o lastfile.o free-hook.o vm-limit.o EmacsFrame.o
EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o
dump-id.o dump-data.o ../lwlib/liblw.a -lXaw -ltiff -lpng -ljpeg
-lz -lgif -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lncurses -lm -ldl
-lutil
tls.o: In function `openssl_error_string':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:790: undefined reference to
`ERR_get_error'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:792: undefined reference to
`ERR_lib_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:794: undefined reference to
`ERR_func_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:796: undefined reference to
`ERR_reason_error_string'
tls.o: In function `openssl_report_error_stack':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:803: undefined reference to
`ERR_get_error'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:809: undefined reference to
`SSL_get_verify_result'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:810: undefined reference to
`X509_verify_cert_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:815: undefined reference to
`ERR_lib_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:816: undefined reference to
`ERR_func_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:817: undefined reference to
`ERR_reason_error_string'
tls.o: In function `openssl_report_error_num':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:836: undefined reference to
`SSL_get_error'
tls.o: In function `tls_get_fd':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:876: undefined reference to
`SSL_get_fd'
tls.o: In function `tls_read':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:885: undefined reference to
`SSL_get_shutdown'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:888: undefined reference to
`SSL_read'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:895: undefined reference to
`SSL_read'
tls.o: In function `tls_write':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:909: undefined reference to
`SSL_get_shutdown'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:912: undefined reference to
`SSL_write'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:919: undefined reference to
`SSL_write'
tls.o: In function `tls_close':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:934: undefined reference to
`SSL_get_fd'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:935: undefined reference to
`SSL_get_shutdown'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:937: undefined reference to
`SSL_shutdown'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:949: undefined reference to
`SSL_free'
tls.o: In function `tls_open':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:973: undefined reference to `SSL_new'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:979: undefined reference to
`SSL_set_fd'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:987: undefined reference to
`SSL_ctrl'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:995: undefined reference to
`SSL_connect'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1002: undefined reference
to `SSL_connect'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1006: undefined reference
to `SSL_get_peer_certificate'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1014: undefined reference
to `SSL_get_verify_result'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1017: undefined reference
to `X509_verify_cert_error_string'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1039: undefined reference
to `X509_free'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1045: undefined reference
to `SSL_free'
tls.o: In function `tls_set_x509_key_file':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1057: undefined reference
to `SSL_CTX_use_PrivateKey_file'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1061: undefined reference
to `SSL_CTX_use_certificate_file'
tls.o: In function `init_tls':
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1092: undefined reference
to `OPENSSL_config'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1095: undefined reference
to `CRYPTO_set_mem_functions'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1100: undefined reference
to `SSL_load_error_strings'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1103: undefined reference
to `SSL_library_init'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1107: undefined reference
to `SSLv23_client_method'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1107: undefined reference
to `SSL_CTX_new'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1112: undefined reference
to `SSL_CTX_ctrl'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1115: undefined reference
to `SSL_CTX_ctrl'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1119: undefined reference
to `SSL_CTX_set_cipher_list'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1124: undefined reference
to `SSL_CTX_set_default_verify_paths'
/home/acs/xemacs-21.5-2014-10-09/src/tls.c:1129: undefined reference
to `SSL_CTX_set_default_passwd_cb'
collect2: error: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/home/acs/xemacs-21.5-2014-10-09/src'
make: *** [src] Error 2
See the attached config.log file. My system is mint 17. I can send
you a list of packages if you need it.
On the other hand,
./configure --with-pdump --without-tls
succeeds and allows me to build a working XEmacs.
Regards,
Vin
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches