[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] Re: classpath daily snapshot 20041027 FAILED
From: |
Mark Wielaard |
Subject: |
[commit-cp] Re: classpath daily snapshot 20041027 FAILED |
Date: |
Wed, 27 Oct 2004 17:00:36 +0200 |
On Wed, 2004-10-27 at 16:42, Michael Koch wrote:
> Am Mittwoch, 27. Oktober 2004 16:05 schrieb Mark Wielaard:
>
> > Could you figure out where the -I/usr/local/include comes from in
> > your native/jni/gtk-peer/Makefile? I don't have that locally and I
> > wonder what picks it up.
>
> I comes from this:
>
> address@hidden:~> pkg-config --cflags gtk+-2.0
> -DXTHREADS -I/usr/local/include/gtk-2.0
> -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
> -I/usr/local/include/pango-1.0 -I/usr/X11R6/include
> -I/usr/include/freetype2 -I/usr/local/include
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
Hmmmm. Since I have it like this when using the installed packaged from
Debian:
$ pkg-config --cflags gtk+-2.0
-DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
Or like this when compiled from source and installed in
/home/mark/install:
$ pkg-config --cflags gtk+-2.0
-DXTHREADS -I/home/mark/install/include/gtk-2.0
-I/home/mark/install/lib/gtk-2.0/include
-I/home/mark/install/include/atk-1.0
-I/home/mark/install/include/pango-1.0 -I/home/mark/install/include
-I/usr/include/freetype2 -I/usr/X11R6/include
-I/home/mark/install/include/glib-2.0
-I/home/mark/install/lib/glib-2.0/include
I assume this will be a problem whenever gtk+ is installed in /usr/local
(notice that the second set includes -I/home/mark/install/include)
If you want to keep -Werror enabled you can try installing gtk+ and
dependencies in some other location than /usr/local. Or you can try to
find out why gcc sees /usr/local/include as a system include dir.
Since I assume more people will have this setup I think this is another
reason we should disable -Werror by default. Sigh.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part