Re: an experiment using mbed TLS

Nick Warne <nick-ucsffw2X/[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Mon, 4 Jul 2016 06:08:58 +0100
Nick Warne <nick-ucsffw2X/[email protected]> wrote:

> On Sun, 3 Jul 2016 21:09:40 +0000
> eocene <[email protected]> wrote:
> 
> > I wrote:  
> > > I wrote:    
> > > > Nick wrote:    
> > > > > OK, what do I need to do to build this after an hour of head
> > > > > scratching:   
> > > Making the attached changes makes it succeed, although I've only
> > > gotten just that far at the moment and haven't looked into whether
> > > it's an error on their part or what...    
> > 
> > Their bug: https://github.com/ARMmbed/mbedtls/issues/522  
> 
> Good catch - all builds fine now - thanks,

A bit premature here.  I quickly ran ./configure before work and
configure worked OK.  But tonight, run make, my linker bombed out with:

/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld:
cannot find
-libmbedtls /usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld:
cannot find
-libmbedx509 /usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld:
cannot find -libmbedcrypto

Strange, as ldconfig -v reveals:

/usr/local/lib:
	libmbedcrypto.so.0 -> libmbedcrypto.so.2.3.0
	libmbedtls.so.10 -> libmbedtls.so.2.3.0
	libmbedx509.so.0 -> libmbedx509.so.2.3.0

Anyway, an hour of investing, it turns out the linker flags are
incorrect - changing in configure fixed it up:

  if test "x$ssl_ok" = "xyes"; then
    LIBSSL_LIBS="-libmbedtls -libmbedx509 -libmbedcrypto"

Should be -lmbedtls, -lmbedx509 and -lmbedcrypto

All really does build fine now :)

mbedtls seems to work well - seems a tad quicker too.

Nick
-- 
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
		-- Doctor Who "Androids of Tara"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.