This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: OpenSSL failing to generate library
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Laurie Gellatly <laurie dot gellatly at netic dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 14 Aug 2006 21:57:06 +0200
- Subject: Re: [ECOS] OpenSSL failing to generate library
- References: <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