Bug 28330

Summary: Cairo 1.8.10 fails to compile
Product: cairo Reporter: a
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED NOTABUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: medium    
Version: 1.8.10   
Hardware: x86-64 (AMD64)   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments: Output of "make" done for cairo

Description a 2010-05-31 08:03:13 UTC
Created attachment 35970 [details]
Output of "make" done for cairo

Hi,

Coming from a regular "portupgrade" I found myself in the situation, that a number of ports weren't upgraded because cairo fails to compile. To me this looks like syntax errors.

This error is absolutely reproducible - I even did a "make distclean" in order to start out with a clean state - same story.

Unfortunately a log of ports like firefox depend on cairo so I'm completely stuck in my installation tasks.

Thanks much in advance for your help - and please drop me a line if you need further information.

Kind regards,
-ewald
Comment 1 Chris Wilson 2010-05-31 08:20:48 UTC
If you can answer the question how did it detect the png headers during configure but fail to include the relevant directory during compile, you've solved the problem.

There should be a config.log which hopefully will give the details of the png tests.
Comment 2 a 2010-05-31 11:10:02 UTC
(In reply to comment #1)
> If you can answer the question how did it detect the png headers during
> configure but fail to include the relevant directory during compile, you've
> solved the problem.
> 
> There should be a config.log which hopefully will give the details of the png
> tests.

Hi Chris,

Thanks much for pointing me in the right direction (config.log):

...
configure:22497: checking for cairo's PNG functions feature
configure:22530: checking for png
configure:22537: $PKG_CONFIG --exists --print-errors "$png_REQUIRES"
gnome-config: not found
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
configure:22540: $? = 1
...

libpng (/usr/ports/graphics/png) was installed on the system in question, but for some reason /usr/local/libdata/pkgconfig/libpng.pc was missing which is just a link to /usr/local/libdata/pkgconfig/libpng14.pc.

I re-installed the "png"-port and now cairo is happy again.

Thanks again for your help!

-ewald

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.