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?
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...
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.
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.
Oh. :( I had it goofed up from a previous install. Thanks, Mamoru.
Stale bug, the tests work fine here. Closing...