After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558711 - gst-plugins-good-0.10.11 compile fails
gst-plugins-good-0.10.11 compile fails
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.21
Other All
: Normal normal
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-31 17:49 UTC by Pavel Zeldin
Modified: 2009-01-23 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pavel Zeldin 2008-10-31 17:49:22 UTC
Please describe the problem:
Compile fails when flac library is installed in a custom location becuase FLAC/all.h is not found.

Steps to reproduce:
1. Install flac in a custom location which is not present on any other include path passed to $CC
2. Make sure that PKG_CONFIG_PATH points to proper flac.pc
3. configure and make gst-plugins-good-0.10.11


Actual results:
no errors

Expected results:
compilation fails in ext/flac

Does this happen every time?
yes

Other information:
The problem seems to be that
$(FLAC_CFLAGS) are not passed to the compiler.
Also if they are added the compile still fails
because $(FLAC_CFLAGS) (obtained from pkg-config --cflags flac)
looks like -I/usr/include/FLAC
(ends with FLAC), but gstreamer #include looks like this:
gstflacdec.h:#include <FLAC/all.h>
gstflacenc.h:#include <FLAC/all.h>


Error message:
In file included from gstflac.c:24:
gstflacenc.h:26:22: error: FLAC/all.h: No such file or directory
In file included from gstflac.c:24:
gstflacenc.h:67: error: expected specifier-qualifier-list before ‘FLAC__SeekableStreamEncoder’
In file included from gstflac.c:25:
gstflacdec.h:53: error: expected specifier-qualifier-list before ‘FLAC__SeekableStreamDecoder’
make[3]: *** [libgstflac_la-gstflac.lo] Error 1
Comment 1 Sebastian Dröge (slomo) 2008-10-31 18:17:31 UTC
2008-10-31  Sebastian Dröge  <sebastian.droege@collabora.co.uk>

	* ext/flac/Makefile.am:
	Include $(FLAC_CFLAGS) in CFLAGS to make sure to find the FLAC headers.
	This fixes compilation if FLAC is installed in an uncommon location
	that is not already handled by other CFLAGS. Fixes bug #558711.