From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VAJMh-0005W9-Kp for ptxdist@pengutronix.de; Fri, 16 Aug 2013 14:42:51 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1VAJMh-0008Om-JL for ptxdist@pengutronix.de; Fri, 16 Aug 2013 14:42:51 +0200 Date: Fri, 16 Aug 2013 14:42:51 +0200 From: Michael Olbrich Message-ID: <20130816124251.GB29492@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Error in compiling libpng Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Tue, Jul 09, 2013 at 09:35:24AM +0000, Frederic DUFOURG wrote: > I am compiling a new kernel and filesystem for my mini2440 using > "OSELAS.BSP-Pengutronix-Mini2440-2012.12.0" the last release supporting > mini2440 as I understand (or am I wrong?). I receive this error message > during compilation of libpng > > ------------------------------------------------------------------------- > ---------------------- > target: libpng.compile > ---------------------- > > make[1]: Entering directory `/home/frederic/Travail/Mini2440/OSELAS.BSP-Pengutro > nix-Mini2440-2012.12.0/platform-mini2440/build-target/libpng-1.2.50' > > make all-am > > make[2]: Entering directory `/home/frederic/Travail/Mini2440/OSELAS.BSP-Pengutro > nix-Mini2440-2012.12.0/platform-mini2440/build-target/libpng-1.2.50' > > /bin/bash ./libtool --tag=CC --mode=link arm-v4t-linux-gnueabi-gcc -g -O2 > -no-undefined -export-dynamic -version-number 0:50:0 -Wl, > --version-script=libpng.vers -o libpng12.la -rpath /usr/lib libpng12_la-png.lo > libpng12_la-pngset.lo libpng12_la-pngget.lo libpng12_la-pngrutil.lo > libpng12_la-pngtrans.lo libpng12_la-pngwutil.lo libpng12_la-pngread.lo > libpng12_la-pngrio.lo libpng12_la-pngwio.lo libpng12_la-pngwrite.lo > libpng12_la-pngrtran.lo libpng12_la-pngwtran.lo libpng12_la-pngmem.lo > libpng12_la-pngerror.lo libpng12_la-pngpread.lo -lz -lm > libtool: link: arm-v4t-linux-gnueabi-gcc -shared .libs/libpng12_la-png.o > .libs/libpng12_la-pngset.o .libs/libpng12_la-pngget.o > .libs/libpng12_la-pngrutil.o .libs/libpng12_la-pngtrans.o > .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.o > .libs/libpng12_la-pngrio.o .libs/libpng12_la-pngwio.o > .libs/libpng12_la-pngwrite.o .libs/libpng12_la-pngrtran.o > .libs/libpng12_la-pngwtran.o .libs/libpng12_la-pngmem.o > .libs/libpng12_la-pngerror.o .libs/libpng12_la-pngpread.o > -lz -lm -Wl,--version-script=libpng.vers -Wl,-soname -Wl,libpng12.so.0 > -o .libs/libpng12.so.0.50.0 > /opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0 > -binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.7.2/../../.. > /../arm-v4t-linux-gnueabi/bin/ld:libpng.vers:1: syntax error in VERSION script > > collect2: error: ld returned 1 exit status > make[2]: *** [libpng12.la] Error 1 > make[2]: Leaving directory `/home/frederic/Travail/Mini2440/OSELAS.BSP-Pengutro > nix-Mini2440-2012.12.0/platform-mini2440/build-target/libpng-1.2.50' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/frederic/Travail/Mini2440/OSELAS.BSP-Pengutro > nix-Mini2440-2012.12.0/platform-mini2440/build-target/libpng-1.2.50' > make: *** [/home/frederic/Travail/Mini2440/OSELAS.BSP-Pengutronix-Mini2440-2012. > 12.0/platform-mini2440/state/libpng.compile] Error 2 > > > --------------------------------------------------------------------------- > as the compose message window is limited to 80 characters per line > it will be a bit a mess for you to undertand the screen copy. > > as far as I understand there is an error in libpng.vers file > > I copyed libpng.vers content just under > > > PNG12_0 {global: > local: *; }; > > As the file looks strange (to me) I supposed there was a LF accidentally > inserted between "global:" and "local" so I suppressed it but this lead to > the same error. > > If you can help me. I think I've seen this error before and I'm pretty sure this is fixed in later ptxdist versions. But I don't remember what the exact problem was. I think something goes wrong when this file is generated. It may be ccache related. Michael -- 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 | -- ptxdist mailing list ptxdist@pengutronix.de