public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Laurie Gellatly <laurie.gellatly@netic.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] OpenSSL failing to generate library
Date: Mon, 14 Aug 2006 19:57:00 -0000	[thread overview]
Message-ID: <20060814195706.GT29570@lunn.ch> (raw)
In-Reply-To: <OBEELMDOHGDFDEMJCJCJAEGPKEAA.laurie.gellatly@netic.com>

On Mon, Aug 14, 2006 at 10:03:28AM +1000, Laurie Gellatly wrote:
> 
> 
> Hi All,
> I'm using ARM on a phytec 2294 board.
> I have a working library and wanted to add openSSL to it.
> Retrieved the 'epk' and loaded it via the admin tool into my current ecc. No
> problem.
> Deleted the entire build tree and then saved the new ecc.
> When I tried to build the library an error message was generated complaining
> that
> .../src/crypto/bio/b_print.c error conflicting types for 'round'.
> 
> I went back and loaded a clean 'net' package for the board and only added
> openSSL - same outcome.
> 
> For the moment, I've renamed 'round' in b_print.c to 'roundl' and modified
> the single reference.
> Anyone else had this problem? Could not see any mention of any issues with
> openSSL in the archives.

I took a look at this. I get a slightly different output:

/home/lunn/eCos/anoncvs-clean/packages/net/openssl/current/src/crypto/bio/b_print.c:562: warning: conflicting types for built-in function 'pow10'
/home/lunn/eCos/anoncvs-clean/packages/net/openssl/current/src/crypto/bio/b_print.c:573: warning: conflicting types for built-in function 'round'

This is with the synth target, gcc version 4.1.2.

The warning is more clear. gcc has its own round function, which is
probably double round(double x), where as the local version is 
long round(long double).

Your fix is O.K.

FYI:

The latest version of openssl, from www.openssl.org, renames this
function roundv().

         Andrew


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  parent reply	other threads:[~2006-08-14 19:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-14  0:02 Laurie Gellatly
2006-08-14  7:15 ` Andrew Lunn
2006-08-14  8:28   ` Laurie Gellatly
2006-08-14 19:57 ` Andrew Lunn [this message]
2006-08-14 21:53   ` Laurie Gellatly
2006-08-14 22:42     ` Gary Thomas
2006-08-14 22:46       ` Andrew Lunn
2006-08-14 22:55     ` Andrew Lunn
2006-08-14 23:17       ` Laurie Gellatly
2006-08-14  7:20 Sinan KAYA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060814195706.GT29570@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=laurie.gellatly@netic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).