Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504332 - media-libs/mlt-0.9.0 - producer_pango.c:28:31: fatal error: freetype/freetype.h: No such file or directory
Summary: media-libs/mlt-0.9.0 - producer_pango.c:28:31: fatal error: freetype/freetype...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
: 514720 (view as bug list)
Depends on:
Blocks: freetype-2.5.1
  Show dependency tree
 
Reported: 2014-03-12 16:07 UTC by Timur Aydin
Modified: 2014-07-24 18:59 UTC (History)
2 users (show)

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


Attachments
emerge --info (einfo.txt,4.76 KB, text/plain)
2014-03-12 16:40 UTC, Timur Aydin
Details
emerge build screen output (a.txt,104.79 KB, text/plain)
2014-03-12 16:41 UTC, Timur Aydin
Details
fix (mlt-freetype.patch,398 bytes, patch)
2014-03-18 09:19 UTC, darkbasic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Aydin 2014-03-12 16:07:48 UTC
emerging media-libs/mlt-0.9.0 fails, because the compiler cannot find freetype/freetype.h. Recent versions of freetype header files are under /usr/include/freetype2.

Reproducible: Always




If I create a symbolic link (freetype -> freetype2), then the package merges properly.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-12 16:11:13 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Timur Aydin 2014-03-12 16:40:32 UTC
Created attachment 372510 [details]
emerge --info
Comment 3 Timur Aydin 2014-03-12 16:41:02 UTC
Created attachment 372512 [details]
emerge build screen output
Comment 4 Rafał Mużyło 2014-03-12 19:17:55 UTC
(In reply to Timur Aydin from comment #3)
> Created attachment 372512 [details]
> emerge build screen output

IIUC, the problem here is that the recommended by upstream method is

#include <ft2build.h>
#include FT_FREETYPE_H

not what's been used here.

That's probably the real fix.
Comment 5 darkbasic 2014-03-18 09:19:53 UTC
Created attachment 372914 [details, diff]
fix

Please fix, patch attached.
Comment 6 tman 2014-03-21 00:21:11 UTC
(In reply to darkbasic from comment #5)
> Created attachment 372914 [details, diff] [details, diff]
> fix
> 
> Please fix, patch attached.

this patch dont solve all. i got this error now with this patch:

ake[1]: Leaving directory '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0/src/modules'
make[1]: Entering directory '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0/src/swig'
list='lua python ruby'; \
for subdir in $list; do \
	if [ -x $subdir/build -a ! -f .$subdir -o all = clean ] ; \
	then echo -n Building $subdir... ; \
		cd $subdir && output=`CXXFLAGS="-march=corei7 -O2 -pipe" ./build all 2>&1` ; \
		if [ $? -eq 0 ] ; \
		then echo OK && touch ../.$subdir ; \
		else echo $output && exit 1 ; \
		fi ; \
		cd .. ; \
		if [ -f $subdir/Makefile -a -f .$subdir ] ; \
		then make -C $subdir all || exit 1 ; \
		fi ; \
		if [ all = clean ] ; \
		then rm -f .$subdir ; \
		fi ; \
	fi \
done
Building lua...OK
Building python...OK
Building ruby...OK
make[2]: Entering directory '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0/src/swig/ruby'
compiling mlt_wrap.cxx
In file included from /usr/include/mlt++/Mlt.h:24:0,
                 from mlt_wrap.cxx:1999:
/usr/include/mlt++/MltConsumer.h:26:27: fatal error: framework/mlt.h: No such file or directory
 #include <framework/mlt.h>
                           ^
compilation terminated.
Makefile:212: recipe for target 'mlt_wrap.o' failed
make[2]: *** [mlt_wrap.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0/src/swig/ruby'
Makefile:5: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0/src/swig'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1
 * ERROR: media-libs/mlt-0.9.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mlt-0.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mlt-0.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mlt-0.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mlt-0.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0'
 * S: '/var/tmp/portage/media-libs/mlt-0.9.0/work/mlt-0.9.0'

>>> Failed to emerge media-libs/mlt-0.9.0, Log file:

>>>  '/var/tmp/portage/media-libs/mlt-0.9.0/temp/build.log'
Comment 7 darkbasic 2014-03-21 09:40:24 UTC
Uhm framework/mlt.h is from media-libs/mlt so this error doesn't make sense.
It compiles flawlessly here with the patch.
Comment 8 Rafał Mużyło 2014-03-21 10:16:04 UTC
(In reply to darkbasic from comment #7)
> Uhm framework/mlt.h is from media-libs/mlt so this error doesn't make sense.
> It compiles flawlessly here with the patch.

Actually, it might make sense, if that log comes from an *upgrade* and header layout has changed.

Still, it would be a separate bug then.
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-21 19:34:19 UTC
+  21 Mar 2014; Lars Wendler <polynomial-c@gentoo.org> mlt-0.9.0.ebuild,
+  +files/mlt-0.9.0-freetype251.patch:
+  Fixed compilation with >=freetype-2.5.1 (bug #504332).
+

@darkbasic: Thanks for the patch

@tman: Your error appears to be bug #480574
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2014-07-24 18:59:58 UTC
*** Bug 514720 has been marked as a duplicate of this bug. ***