[ECOS] OpenSSL failing to generate library

Andrew Lunn andrew@lunn.ch
Mon Aug 14 19:57:00 GMT 2006


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



More information about the Ecos-discuss mailing list