On 2002.05.16 Gwenole Beauchesne wrote:
>Hi,
>
>> cc1: warning: changing search order for system directory "/usr/include"
>> cc1: warning:   as it has already been specified as a non-system 
>> directory
>
>Package is (badly) adding system include dir to include search path. In 
>some occasions, that would inhibit features to be found by configure 
>because the result in misinterpreted. aka. doesn't parse that warning 
>and acts as if it resulted in an error.
>
>Solution: fix the package so that it doesn't -I/usr/include, or 
>-I/usr/local/include explicitly.
>

Some responsibles:

werewolf:/usr/lib/pkgconfig> grep -- '-I${includedir} ' *
imlib.pc:Cflags: -I${includedir}  -I/usr/X11R6/include
libglade-gnomedb.pc:Cflags: -I${includedir} -I/usr/include/libgda-0.2.93/gda 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I/usr/include/gnome-xml -I/usr/include/gconf/1 -I/usr/include -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-1.0 
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I/usr/include/gdk-pixbuf-1.0 -I/usr/include -I/usr/include/gnome-xml 
-I/usr/include/orbit-1.0 -I/usr/include/gnome-xml -I/usr/include 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include 
-I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 
-DGNOMELOCALEDIR="/usr/share/locale" -I/usr/include/libgnomedb-0.2.93/gnome-db

That libglade-gnomedb.pc is really a mess...take a look also at Libs:

BTW, are really needed all those -L${libdir}, if libdir==/usr/lib ?
And you have things like:

libglade.pc:libdir=/usr/lib
libglade.pc:Libs: -L${libdir} -lglade -L/usr/lib -lxml -lz
                                      ^^^^^^^^^^
libgtop-2.0.pc:libdir=/usr/lib
libgtop-2.0.pc:Libs: -L${libdir} -L$(libdir) -lgtop-2.0 -lgtop_sysdeps-2.0 
-lgtop_common-2.0
                                 ^^^^^^^^^^^^

Has any sense to send fixed .pc files, or will get overwritten on each rebuild ?

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:[EMAIL PROTECTED]
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre8-jam2 #3 SMP lun may 13 00:49:15 CEST 2002 i686

Reply via email to