libpng compilation issue with ltib

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

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

 here follows the log ....

claudia@LinuxHost:~/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


Site Timeline