[#4666] pngview on trunk head get building error

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4666] pngview on trunk head get building error

Submitted By: Mingquan Pan

Open Date

2008-11-21 04:58:44     Close Date

2008-11-23 22:51:21

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

Nov 11

App binary format:

N/A     

Summary: pngview on trunk head get building error

Details:

 

pnview on trunk head get building error somehow on bf537.

 

ake[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/inetutils/rsh'

make[5]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/inetutils/rshd'

make[5]: Nothing to be done for `all'.

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/inetutils/rshd'

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/inetutils'

Package libpng was not found in the pkg-config search path.

Perhaps you should add the directory containing `libpng.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libpng' found

make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview'

bfin-uclinux-gcc  -Wl,-elf2flt    -mcpu=bf537-0.2  pngview.o   -o pngview

pngview.o: In function `read_png_file':

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:198: undefined reference to `_png_check_sig'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:201: undefined reference to `_png_create_read_struct'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:205: undefined reference to `_png_create_info_struct'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:222: undefined reference to `_png_init_io'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:223: undefined reference to `_png_set_sig_bytes'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:224: undefined reference to `_png_read_info'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:225: undefined reference to `_png_get_IHDR'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:232: undefined reference to `_png_get_valid'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:241: undefined reference to `_png_read_update_info'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:242: undefined reference to `_png_get_rowbytes'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:251: undefined reference to `_png_read_image'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:215: undefined reference to `_png_destroy_read_struct'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:279: undefined reference to `_png_read_end'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:280: undefined reference to `_png_destroy_read_struct'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:231: undefined reference to `_png_set_expand'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:207: undefined reference to `_png_destroy_read_struct'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:233: undefined reference to `_png_set_expand'

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview/pngview.c:229: undefined reference to `_png_set_expand'

collect2: ld returned 1 exit status

make[4]: *** [pngview] Error 1

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/pngview'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps'

make[2]: *** [blkfin-apps] Error 2

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

make: *** [subdirs] Error 1

 

Follow-ups

 

--- Mike Frysinger                                           2008-11-21 09:22:27

i'm not able to reproduce this over here ... your vendor config does show that

libpng is enabled which means it should be in the staging directory

 

this is the troublesome part:

Package libpng was not found in the pkg-config search path.

Perhaps you should add the directory containing `libpng.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libpng' found

 

the pkg-config script should have been wrapped by tools/bfin-uclinux-pkg-config

which should have found libpng.pc in staging/usr/lib/pkgconfig/libpng.pc

 

please run this command and post the output:

STAGEDIR=$PWD/staging ./tools/bfin-uclinux-pkg-config libpng --libs --debug

 

--- Mingquan Pan                                             2008-11-23 21:28:59

I run the command,and get:

 

test@linux:~/work/cruise/checkouts/uclinux-dist> STAGEDIR=$PWD/staging

./tools/bfin-uclinux-pkg-config libpng --libs --debug

Option --debug seen

Error printing enabled by default due to use of --version, --libs, --cflags,

--libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I,

--cflags-only-other or --list. Value of --silence-errors: 0

Error printing enabled

Cannot open directory

'/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib/pkgconfig:/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/share/pkgconfig'

in package search path: No such file or directory

Looking for package 'libpng'

Looking for package 'libpng-uninstalled'

Looking for 'libpng' using legacy -config scripts

Calling gnome-config

Package libpng was not found in the pkg-config search path.

Perhaps you should add the directory containing `libpng.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libpng' found

 

And I had add the path to $PKG_CONFIG_PATH:

test@linux:~/work/cruise/checkouts/uclinux-dist> echo $PKG_CONFIG_PATH

/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib/pkgconfig:/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig

 

And still build error.

 

--- Mingquan Pan                                             2008-11-23 21:48:48

The pkg-config version on this machine is kind of low 0.15, I am trying to

upgrade it, but this doesn't looks problem for building a couple of days ago...

 

--- Mingquan Pan                                             2008-11-23 22:51:21

Yeah, After I upgrade the pkgconfig and glibc on the two machines, it is ok now.

The two machines should be forgotten when last time updating the utility...

Close.

 

--- Mike Frysinger                                           2008-11-24 02:50:36

what version of pkg-config was on there ?  i know things will fail with an older

version ... not sure how feasible it is to have the wrapper check the host

pkg-config version ...

 

--- Mingquan Pan                                             2008-11-24 04:54:10

On some of my machine here with suse 9.2 installed, the default pkg-config

version is 0.15, which fails. On suse 10, the default version is about 0.20,

which is upgraded and works here.

On suse 11, the version is 0.23.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.pngview.linux    application/octet-stream    32532    Mingquan Pan

config.pngview.vendor    application/octet-stream    45518    Mingquan Pan

Outcomes