[gst-devel] error building libgstaasink_la-gstaasink.lo
Thomas Vander Stichele
thomas at urgent.rug.ac.be
Sat Jul 13 00:54:01 CEST 2002
Hi,
there's a bug report for this.
You're using gcc 3.1, which has the "feature" that if you specify an
Include dir (with -I ...) on the gcc compile ine which is already in your
system include dir path, it complains with that error.
I'm thinking about how to best fix that; in theory the best solution would
be for the lib's flag provider not to provide system dir flags, but the
solutions I came up with up to now are hackish at best.
In your case, it's aalib-config --cflags saying it needs "-I
/usr/include".
As a temporary workaround, you could make a copy of aalib-config, stick it
in another bin path overriding your /usr/bin, and change it to not provide
/usr/include as a flag.
Any suggestions on how to fix generally are appreciated
(My current idea is to scrub each set of CFLAGS of dirs being reported by
cpp -v, using an .m4 macro)
Thomas
> I'm getting this error compiling gst-plugins; has
anyone else gotten > this?
>
> # rpmbuild -ta gst-plugins-0.4.0.tar.gz
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gstreamer-0.4.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/libxml2 -g -I../../gst-libs -Wall -Werror -I/usr/include
> -O2 -march=i386 -mcpu=i686 -c gstaasink.c -MT
> libgstaasink_la-gstaasink.lo -MD -MP -MF
> .deps/libgstaasink_la-gstaasink.TPlo -fPIC -DPIC -o
> libgstaasink_la-gstaasink.lo
> cc1: changing search order for system directory "/usr/include"
> cc1: as it has already been specified as a non-system directory
> make[2]: *** [libgstaasink_la-gstaasink.lo] Error 1
> make[2]: Leaving directory
> `/usr/src/redhat/BUILD/gst-plugins-0.4.0/ext/aalib'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/gst-plugins-0.4.0/ext'
> make: *** [install-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.36508 (%install)
>
>
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --host=i386-redhat-linux --with-system-zlib
> Thread model: posix
> gcc version 3.1 20020620 (Red Hat Linux Rawhide 3.1-7)
>
>
--
The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*- -*->
Anything for a lover
anything for a friend
I only wanna see you happy
<-*- thomas at apestaart.org -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/
More information about the gstreamer-devel
mailing list