Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68596 - media-libs/libpng-1.2.7 fails tests
Summary: media-libs/libpng-1.2.7 fails tests
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 14:53 UTC by Nick Dimiduk (RETIRED)
Modified: 2006-02-04 15:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Dimiduk (RETIRED) gentoo-dev 2004-10-22 14:53:15 UTC
With FEATURES="maketest", emerge of libpng fails with the following outout:

>>> Test phase [test]: media-libs/libpng-1.2.7
./pngtest
dyld: ./pngtest can't open library: /usr/lib/libpng12.0.dylib  (No such file or directory, errno = 2)
make: *** [test] Trace/BPT trap

Emerging without "maketest" in the features results in a successful emerge.  Going into the (kept) work directory and running "./pngtest" results in success.

Patching the makefile to link the test against the local (./libpng12.0.dylib) instead of the (non-existant) file in /usr/lib would be sufficient.  This begs a QA concern regarding the reliability of running tests in general:  if I already had a copy of libpng installed (and thus already had /usr/lib/libpng12.0.dylib), the test would be run against the old library and thus would be worthless.

Thoughts?
Comment 1 Ciaran McCreesh 2004-10-22 15:07:26 UTC
Well... make test should *always* be specifying paths to that kind of thing... Of course, what with make test not being widely used and all that, it probably doesn't happen...
Comment 2 Peter Aarestad 2004-11-19 14:13:26 UTC
FWIW, I get this error upon trying to build this same package:

>>> emerge (1 of 3) media-libs/libpng-1.2.7 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/libpng-1.2.7.tar.bz2
######################################################################## 100.0%
>>> md5 src_uri ;-) libpng-1.2.7.tar.bz2
>>> Unpacking source...
>>> Unpacking libpng-1.2.7.tar.bz2 to /var/tmp/portage/libpng-1.2.7/work
 * Applying 1.2.7-gentoo.diff ...                                         [ ok ]
>>> Source unpacked.
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o png.o png.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngset.o pngset.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngget.o pngget.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngrutil.o pngrutil.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngtrans.o pngtrans.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngwutil.o pngwutil.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngread.o pngread.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngrio.o pngrio.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngwio.o pngwio.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngwrite.o pngwrite.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngrtran.o pngrtran.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngwtran.o pngwtran.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngmem.o pngmem.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngerror.o pngerror.c
gcc -I/usr/include -Wall -O2 -pipe -funroll-loops     -c -o pngpread.o pngpread.c
make: *** No rule to make target `-lz', needed by `libpng12.so.0.1.2.7'.  Stop.
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libpng-1.2.7 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 14:50:32 UTC
Peter: I suppose you are not using cascading profile.
Please update your /etc/make.profile to point
/usr/portage/profiles/default-darwin/macos/10.3.
Comment 4 Peter Aarestad 2004-11-19 18:11:49 UTC
Oh. :( I had it goofed up from a previous install. Thanks, Mamoru.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-02-04 15:48:23 UTC
Stale bug, the tests work fine here. Closing...