Thursday, 7 June 2012

Re: [gccsdk] Nettle autobuilder patch

In article <SNT136-ds118107CD3DF5B2BA0E0A81F0F30@phx.gbl>,
Alan Buckley <alan_baa@hotmail.com> wrote:

> I was going to look at the packaging, but can't get nettle to build
> on Cygwin or Debian. Do I need a particular version of the cross
> compiler?

> I seemed to get the same errors on both:

> sockwatch.o: In function `socketwatch_register':
> sockwatch.c:(.text+0x9c): undefined reference to `__get_ro_socket'
> sockwatch.o: In function `socketwatch_deregister':
> sockwatch.c:(.text+0x164): undefined reference to `__get_ro_socket'
> /home/riscos/env/lib/libssh2.a(comp.o): In function `comp_method_zlib_dtor':
> comp.c:(.text+0x178): undefined reference to `deflateEnd'
> comp.c:(.text+0x19c): undefined reference to `inflateEnd'
> /home/riscos/env/lib/libssh2.a(comp.o): In function
> `comp_method_zlib_decomp':
> comp.c:(.text+0x250): undefined reference to `inflate'
> comp.c:(.text+0x2fc): undefined reference to `inflate'
> /home/riscos/env/lib/libssh2.a(comp.o): In function `comp_method_zlib_comp':
> comp.c:(.text+0x528): undefined reference to `deflate'
> /home/riscos/env/lib/libssh2.a(comp.o): In function `comp_method_zlib_init':
> comp.c:(.text+0x628): undefined reference to `deflateInit_'
> comp.c:(.text+0x654): undefined reference to `inflateInit_'
> collect2: ld returned 1 exit status
> GNUmakefile:31: recipe for target `!Nettle/!RunImage,e1f' failed
> make: *** [!Nettle/!RunImage,e1f] Error 1

> I'm pretty sure libz is compiled, but I've no idea where
> __get_ro_socket comes from.

I've checked in a fix for this, r5856. It just needed '-lz' adding to the
makefile.

Chris.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment