From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U2eMc-000280-6p for barebox@lists.infradead.org; Tue, 05 Feb 2013 08:58:51 +0000 Date: Tue, 5 Feb 2013 09:58:48 +0100 From: Sascha Hauer Message-ID: <20130205085848.GP1906@pengutronix.de> References: <1360017396-13321-1-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1360017396-13321-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] pbl: fix IMAGE_COMPRESSION_LZO-enabled build on MIPS To: Antony Pavlov Cc: barebox@lists.infradead.org On Tue, Feb 05, 2013 at 02:36:35AM +0400, Antony Pavlov wrote: > Here's the error message: > > LD arch/mips/pbl/zbarebox > pbl/built-in-pbl.o: In function `decompress_unlzo': > /home/antony/barebox.git.rebased.isp/pbl/decomp.c:35: undefined reference to `free' > pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': > (.text.pbl_barebox_uncompress+0x6d0): relocation truncated to fit: R_MIPS_26 against `free' > pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': > (.text.pbl_barebox_uncompress+0x6e0): undefined reference to `free' > pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': > (.text.pbl_barebox_uncompress+0x6e0): relocation truncated to fit: R_MIPS_26 against `free' > make[1]: *** [arch/mips/pbl/zbarebox] Error 1 > make: *** [zbarebox.bin] Error 2 > > Signed-off-by: Antony Pavlov Applied, thanks Sascha > --- > lib/decompress_unlzo.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c > index 776719c..1b2dc9d 100644 > --- a/lib/decompress_unlzo.c > +++ b/lib/decompress_unlzo.c > @@ -26,14 +26,16 @@ > */ > > #include > -#include > #include > #include > #include > #include > > #ifdef STATIC > +#include > #include "lzo/lzo1x_decompress.c" > +#else > +#include > #endif > > #include > -- > 1.7.10.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox