Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29253 - media-gfx/xv-3.10a-r5 failed to compile
Summary: media-gfx/xv-3.10a-r5 failed to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-21 02:12 UTC by james hendrickson
Modified: 2003-10-28 06:20 UTC (History)
2 users (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 james hendrickson 2003-09-21 02:12:25 UTC
After updating portage to the newest version (im running the development kernel 
by the way) and rsyncing 

did emerge fluxbox

error is as follows 

>>> emerge (1 of 4) media-gfx/xv-3.10a-r5 to /
>>>md5 src_uri ;-) xv-3.10a.tar.gz 
>>>unpacking source...
>>>unpacking xv-3.10a.tar.gz to /var/tmp/portage/xu-3.10a-rf/work

*Applying xv-3.10a-enehanced-Nu.patch...
*Applying xv-3.10a-gentoo-Nu.patch
>>>Source unpacked 

make *** No rule to make target '-ltiff' , needed by `all'. Stop.

!!! Error: media-gfx-xv-3.10a-r5 failed. 
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.emerge fluxbox or blackbox
2.
3.

Actual Results:  
compile error on in the above said library

Expected Results:  
smooth emerge without library compile errors 

This is an IBM t23 laptop with the developer kernel
Comment 1 james hendrickson 2003-09-21 02:13:05 UTC
Gentoo is an amazing distro thanks for all your hard work!
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-10-07 17:36:23 UTC
This is caused by the two patches explicitely setting:


	JPEGLIB = -ljpeg
	PNGLIB = -lpng
	ZLIBLIB = -lz
	TIFFLIB = -ltiff

	LIBS = -L/usr/X11R6/lib -lX11 $(JPEGLIB) $(TIFFLIB) $(PNGLIB)
		$(ZLIBLIB) -lm


and so '-ljpeg', '-lpng', '-lz' and '-ltiff' all become targets for make;
if the libraries are not installed then make rightly complains it can't
find them. Changing the xv-3.10a-r5 ebuild to the following fixes this
problem.


   [ -z `use jpeg` ] \
        && sed -i -e "s:JPEGLIB = -ljpeg:JPEGLIB =:" Makefile \
        || append-flags -DDOJPEG
   [ -z `use png` ] \
        && sed -i -e "s:PNGLIB = -lpng:PNGLIB =:" Makefile \
        && sed -i -e "s:ZLIBLIB = -lz:ZLIBLIB =:" Makefile \
        || append-flags -DDOPNG
   [ -z `use tiff` ] \
        && sed -i -e "s:TIFFLIB = -ltiff:TIFFLIB =:" Makefile \
        || append-flags -DDOTIFF


One other note. sys-libs/zlib isn't a fixed dependency of xv.
Instead it could be included with media-libs/libpng:

	png? ( >=media-libs/libpng-1.2 >=sys-libs/zlib-1.1.4 )
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 06:20:48 UTC
closing with -r6