On Wed, 2005-02-23 at 01:59 +0100, Karsten Baumgarten wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Steven Knight wrote:
> | Hi,
> |
> | gst-plugins-mad-0.8.7 won't compile for me:
> |
> | i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs
> | -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
> | -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0
> | -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
> | -DGST_DISABLE_DEPRECATED -Wall -L/usr/include -g -march=pentium4
> | -mfpmath=sse -fomit-frame-pointer -ffast-math -O3 -pipe -MT
> | libgstmad_la-gstid3tag.lo -MD -MP -MF .deps/libgstmad_la-gstid3tag.Tpo
> | -c gstid3tag.c  -fPIC -DPIC -o .libs/libgstmad_la-gstid3tag.o
> |  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs
> | -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
> | -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0
> | -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
> | -DGST_DISABLE_DEPRECATED -Wall -L/usr/include -g -march=pentium4
> | -mfpmath=sse -fomit-frame-pointer -ffast-math -O3 -pipe -MT
> | libgstmad_la-gstmad.lo -MD -MP -MF .deps/libgstmad_la-gstmad.Tpo -c
> | gstmad.c  -fPIC -DPIC -o .libs/libgstmad_la-gstmad.o
> | gstid3tag.c: In function `tag_list_to_id3_tag_foreach':
> | gstid3tag.c:684: warning: implicit declaration of function
> | `id3_frame_new'
> | gstid3tag.c:684: warning: assignment makes pointer from integer without
> | a cast
> | gstid3tag.c:690: warning: implicit declaration of function
> | `id3_frame_field'
> | gstid3tag.c:690: warning: assignment makes pointer from integer without
> | a cast
> | gstid3tag.c:692: warning: assignment makes pointer from integer without
> | a cast
> | gstid3tag.c: In function `gst_id3_tag_handle_event':
> | gstid3tag.c:881: warning: implicit declaration of function
> | `id3_tag_options'
> | gstmad.c: In function `gst_mad_emphasis_get_type':
> | gstmad.c:254: error: `MAD_EMPHASIS_RESERVED' undeclared (first use in
> | this function)
> | gstmad.c:254: error: (Each undeclared identifier is reported only once
> | gstmad.c:254: error: for each function it appears in.)
> | gstmad.c:254: error: initializer element is not constant
> | gstmad.c:254: error: (near initialization for `mad_emphasis[4].value')
> | gstmad.c:254: error: initializer element is not constant
> | gstmad.c:254: error: (near initialization for `mad_emphasis[4]')
> | gstmad.c:255: error: initializer element is not constant
> | gstmad.c:255: error: (near initialization for `mad_emphasis[5]')
> | make: *** [libgstmad_la-gstmad.lo] Error 1
> |
> |
> | Any suggestions?
> |
> | Thanks,
> |
> 
> http://bugs.gentoo.org/show_bug.cgi?id=55923


Karsten thanks for the suggestion.  It lead me to solving my problem.  I
had the correct libmad version installed from that bug report.

Playing around in the gst-plugins source I found that the
`MAD_EMPHASIS_RESERVED' wasn't getting plugged out of the mad.h
in /usr/include.  Why?

Because I had a copy in /usr/local/include.  Why I had a copy there, I
have no idea.

Removing the file (/usr/local/include/mad.h) allowed me to emerge
gst-plugins-mad-0.8.7 without any problem.

So, just remember /usr/local/include is in the include search path ( and
before /usr/include ).

Thanks,

-- 
--------------------------------------------------------------------------------
Steven Knight  [EMAIL PROTECTED]   IM : skkataim

and tho' We are not now that strength which in old days
Moved earth and heaven, that which we are, we are,--
One equal temper of heroic hearts,
Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield.

-- Ulysses by Alfred Lord Tennyson
-------------------------------------------------------------------------------
--
[email protected] mailing list

Reply via email to