ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] libpng compilation issue


From: Stuart Hughes
Subject: Re: [Ltib] libpng compilation issue
Date: Fri, 13 Apr 2007 11:58:47 +0100

Hi Claudia,

I must learn to read more carefully.  Here's a patch for libpng

Regards, Stuart

diff -u -u -r1.4 libpng.spec
--- dist/lfs-5.1/libpng/libpng.spec     20 Jun 2006 07:47:26 -0000
1.4
+++ dist/lfs-5.1/libpng/libpng.spec     13 Apr 2007 10:57:22 -0000
@@ -19,12 +19,13 @@
 %setup

 %Build
-make prefix=%{_prefix} -f scripts/makefile.linux
+make prefix=%{_prefix} -f scripts/makefile.linux libpng.a

 %Install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{pfx}/%{_prefix}
-make prefix=$RPM_BUILD_ROOT/%{pfx}/%{_prefix} install -f
scripts/makefile.linux+
+make prefix=$RPM_BUILD_ROOT/%{pfx}/%{_prefix} install-headers
install-static install-man install-config -f scripts/makefile.linux

 %Clean
 rm -rf $RPM_BUILD_ROOT


On Fri, 2007-04-13 at 12:02 +0200, Claudia De Bartolomeis wrote:
> Hi Stuart,
> thanks.
> I'm not concerned about libjpeg because I'don't want to use it,
> but I think that it is a similar problem about libpng because
> its specs uses libpng.../scripts/makefile.linux without editing it,
> and this makefile seems generating both static and dinamic libraries,
> and this doesn't sound correct for my uclinux platform wich doesn't support 
> dynamic libraries.
> So I guess I'll have to work around it.
> 
> 
> ----- Original Message ----- 
> From: "Stuart Hughes" <address@hidden>
> To: "Claudia De Bartolomeis" <address@hidden>
> Cc: <address@hidden>
> Sent: Friday, April 13, 2007 11:29 AM
> Subject: Re: [Ltib] libpng compilation issue
> 
> 
> > Hi Claudia,
> >
> > If you disable the building of the dynamic libraries for libjpeg, it
> > should work for you, see below.
> >
> > Regards, Stuart
> >
> > diff -u -u -r1.8 libjpeg.spec
> > --- dist/lfs-5.1/libjpeg/libjpeg.spec   29 Mar 2007 12:40:06 -0000
> > 1.8
> > +++ dist/lfs-5.1/libjpeg/libjpeg.spec   13 Apr 2007 09:27:03 -0000
> > @@ -22,7 +22,7 @@
> >
> > %Build
> > export PATH=$UNSPOOF_PATH
> > -./configure --enable-static --enable-shared --target=$CFGHOST --prefix=
> > %{_prefix}
> > +./configure --enable-static --target=$CFGHOST --prefix=%{_prefix}
> > export PATH=$SPOOF_PATH
> > make
> >
> > Regards, Stuart
> >
> > On Thu, 2007-04-12 at 16:57 +0200, Claudia De Bartolomeis wrote:
> >> Thanks Stuart,
> >> but hte zlib is already included in my case,
> >> but it doesn't help.
> >> Regards
> >> Claudia
> >>
> >> ----- Original Message ----- 
> >> From: "Stuart Hughes" <address@hidden>
> >> To: "Claudia De Bartolomeis" <address@hidden>
> >> Cc: <address@hidden>
> >> Sent: Thursday, April 12, 2007 4:51 PM
> >> Subject: Re: [Ltib] libpng compilation issue
> >>
> >>
> >> > Hi Claudia,
> >> >
> >> > The m532xevb is an MMUless platform and does not have a fully supported
> >> > package set in LTIB.  In many ways your best bet is to use uClinux-dist
> >> > (http://www.uclinux.org/pub/uClinux/dist/) for MMUless platforms.
> >> > However I just took a quick look and I don't think that has support for
> >> > libpng either.
> >> >
> >> > You could try enabling "zlib" in the package configuration (./ltib
> >> > --configure) and see if that helps.
> >> >
> >> >
> >> > I suspect you got the BSP from a Freescale ISO image, in which case you
> >> > should try send your support queries to Freescale.  To do this:
> >> >
> >> >   * go to http://www.freescale.com
> >> >   * click on "Support / Technical support"
> >> >   * click on "Submit a Service Request"
> >> >   * register to get a user name and password.
> >> >   * login in with your user name and password
> >> >   * on the "New Service Request" page:
> >> >      * category = Technical Request
> >> >      * topic = Linux BSP
> >> >      * Click on "Continue"
> >> >   * fill out the information for the service request
> >> >   * click on the "Submit" button at the bottom of the page.
> >> >
> >> > Regards, Stuart
> >> >
> >> > On Thu, 2007-04-12 at 15:38 +0200, Claudia De Bartolomeis wrote:
> >> >> Hi,
> >> >> my name is Claudia De Bartolomeis and
> >> >> I'm trying to compile libpng in the BSP m532xevb, based on kernel
> >> >> uClinux  2.6.17.7-uc1 by Freescale, using Ltib.
> >> >>
> >> >> but it doesn't work.
> >> >> It seems due to undefined references to zlib functions.
> >> >>
> >> >> Thanks much for any help with this.
> >> >> Best Regards
> >> >> Claudia De Bartolomeis
> >> >>
> >> >>
> >> >> address@hidden:~/ltib-m532xevb-20061117> ./ltib --force -m scbuild
> >> >> -p  libpng
> >> >>
> >> >> Processing: libpng
> >> >> ====================
> >> >> rpmbuild --dbpath /home/claudia/ltib-m532xevb-20061117/rpmdb --define
> >> >> '_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu'
> >> >> --define '__strip strip' --define
> >> >> '_topdir /home/claudia/ltib-m532xevb-20061117/rpm' --define
> >> >> '_prefix /usr' --define
> >> >> '_tmppath /home/claudia/ltib-m532xevb-20061117/tmp' --define
> >> >> '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
> >> >> '_localstatedir /var' -bc
> >> >> --short-circuit
> >> >> /home/claudia/ltib-m532xevb-20061117/dist/lfs-5.1/libpng/libpng.spec
> >> >> Executing(%build): /bin/sh
> >> >> -e /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.72890
> >> >> + umask 022
> >> >> + cd /home/claudia/ltib-m532xevb-20061117/rpm/BUILD
> >> >> + cd libpng-1.2.8
> >> >> + make prefix=/usr -f scripts/makefile.linux
> >> >> make: Warning: File `scripts/makefile.linux' has modification time
> >> >> 1.1e+03 s in the future
> >> >> gcc -shared -Wl,-soname,libpng12.so.0 \
> >> >> -o libpng12.so.0.1.2.8 \
> >> >> png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o pngtrans.pic.o
> >> >> pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o pngwrite.pic.o
> >> >> pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o
> >> >> pngpread.pic.o
> >> >> /opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/m68k-uclinux/libc/m5307/usr/lib/crt1.o:
> >> >> In function `_start':
> >> >> libc/sysdeps/linux/m68k/crt1.S:(.text+0x1c): undefined reference to
> >> >> `main'
> >> >> png.pic.o: In function `png_reset_zstream':
> >> >> png.c:(.text+0xb8): undefined reference to `inflateReset'
> >> >> png.pic.o: In function `png_calculate_crc':
> >> >> png.c:(.text+0x9c6): undefined reference to `crc32'
> >> >> png.pic.o: In function `png_reset_crc':
> >> >> png.c:(.text+0x9fa): undefined reference to `crc32'
> >> >> pngrutil.pic.o: In function `png_decompress_chunk':
> >> >> pngrutil.c:(.text+0x2482): undefined reference to `inflate'
> >> >> pngrutil.c:(.text+0x2526): undefined reference to `inflateReset'
> >> >> pngrutil.c:(.text+0x25ec): undefined reference to `inflateReset'
> >> >> pngrutil.c:(.text+0x26c6): undefined reference to `inflateReset'
> >> >> pngrutil.pic.o: In function `png_read_finish_row':
> >> >> pngrutil.c:(.text+0x29fc): undefined reference to `inflateReset'
> >> >> pngrutil.c:(.text+0x2a26): undefined reference to `inflate'
> >> >> pngrutil.c:(.text+0x2aa4): undefined reference to `inflateReset'
> >> >> pngwutil.pic.o: In function `png_text_compress':
> >> >> pngwutil.c:(.text+0x54a): undefined reference to `deflate'
> >> >> pngwutil.c:(.text+0x80e): undefined reference to `deflate'
> >> >> pngwutil.pic.o: In function `png_write_compressed_data_out':
> >> >> pngwutil.c:(.text+0xc80): undefined reference to `deflateReset'
> >> >> pngwutil.c:(.text+0xca6): undefined reference to `deflateReset'
> >> >> pngwutil.pic.o: In function `png_write_finish_row':
> >> >> pngwutil.c:(.text+0x2902): undefined reference to `deflate'
> >> >> pngwutil.c:(.text+0x29ee): undefined reference to `deflateReset'
> >> >> pngwutil.c:(.text+0x2a8a): undefined reference to `deflateReset'
> >> >> pngwutil.pic.o: In function `png_write_filtered_row':
> >> >> pngwutil.c:(.text+0x2ae6): undefined reference to `deflate'
> >> >> pngwutil.pic.o: In function `png_write_IHDR':
> >> >> pngwutil.c:(.text+0x6edc): undefined reference to `deflateInit2_'
> >> >> pngread.pic.o: In function `png_read_destroy':
> >> >> pngread.c:(.text+0x552): undefined reference to `inflateEnd'
> >> >> pngread.pic.o: In function `png_read_row':
> >> >> pngread.c:(.text+0xb96): undefined reference to `inflate'
> >> >> pngread.c:(.text+0xeca): undefined reference to `inflate'
> >> >> pngread.pic.o: In function `png_read_init_3':
> >> >> pngread.c:(.text+0x1f9e): undefined reference to `inflateInit_'
> >> >> pngread.c:(.text+0x206e): undefined reference to `inflateInit_'
> >> >> pngread.pic.o: In function `png_create_read_struct_2':
> >> >> pngread.c:(.text+0x231e): undefined reference to `inflateInit_'
> >> >> pngread.c:(.text+0x243c): undefined reference to `inflateInit_'
> >> >> pngwrite.pic.o: In function `png_write_destroy':
> >> >> pngwrite.c:(.text+0xe26): undefined reference to `deflateEnd'
> >> >> pngwrite.pic.o: In function `png_write_flush':
> >> >> pngwrite.c:(.text+0xfde): undefined reference to `deflate'
> >> >> pngrtran.pic.o: In function `png_build_gamma_table':
> >> >> pngrtran.c:(.text+0x89c2): undefined reference to `pow'
> >> >> pngrtran.c:(.text+0x8c16): undefined reference to `pow'
> >> >> pngrtran.c:(.text+0x8c82): undefined reference to `pow'
> >> >> pngrtran.c:(.text+0x8ea8): undefined reference to `pow'
> >> >> pngrtran.c:(.text+0x8f3a): undefined reference to `pow'
> >> >> pngrtran.pic.o:pngrtran.c:(.text+0x9090): more undefined references to
> >> >> `pow' follow
> >> >> pngpread.pic.o: In function `png_process_IDAT_data':
> >> >> pngpread.c:(.text+0xf2e): undefined reference to `inflate'
> >> >> pngpread.c:(.text+0xfcc): undefined reference to `inflate'
> >> >> pngpread.pic.o: In function `png_push_read_zTXt':
> >> >> pngpread.c:(.text+0x13a4): undefined reference to `inflate'
> >> >> pngpread.c:(.text+0x143e): undefined reference to `inflateReset'
> >> >> pngpread.c:(.text+0x150c): undefined reference to `inflateReset'
> >> >> pngpread.c:(.text+0x1538): undefined reference to `inflateReset'
> >> >> pngpread.c:(.text+0x15b4): undefined reference to `inflateReset'
> >> >> collect2: ld returned 1 exit status
> >> >> make: *** [libpng12.so.0.1.2.8] Error 1
> >> >> error: Bad exit status
> >> >> from /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.72890 (%build)
> >> >>
> >> >>
> >> >> RPM build errors:
> >> >>     Bad exit status
> >> >> from /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.72890 (%build)
> >> >> Build time for libpng: 1 seconds
> >> >>
> >> >> Failed building libpng
> >> >>
> >> >>
> >> >> f_scbuild() returned an error, exiting
> >> >> Exiting on error or interrupt
> >> >> _______________________________________________
> >> >> LTIB home page: http://bitshrine.org
> >> >>
> >> >> Ltib mailing list
> >> >> address@hidden
> >> >> http://lists.nongnu.org/mailman/listinfo/ltib
> >> >
> >> >
> >> >
> >> >
> >> > -- 
> >> > No virus found in this incoming message.
> >> > Checked by AVG Free Edition.
> >> > Version: 7.5.446 / Virus Database: 269.2.0/757 - Release Date: 
> >> > 11/04/2007
> >> > 17.14
> >> >
> >>
> >
> >
> >
> >
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 269.4.0/759 - Release Date: 12/04/2007 
> > 19.58
> >
> > 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]