cflags problem

PK nyvsld at gmail.com
Wed Oct 26 06:32:05 PDT 2005


one fact is that many packages have `-I/usr/local/include' in there
`.pc' files,
this option is ignored by gcc because it is a system directory, while
`-I/usr/X11R6' not.

to have this option ignored by pkg-config, just as what gcc will do,
output of `cpp -v' can be parsed by pkg-config( Tollef Fog Heen
<tfheen at err.no> , if i haven't misunderstand you ),
or use `-isystem' in `.pc' files instead of `-I' to have those options
always work, at least in gcc.

*---------*

maybe its not wise to install xlibs somewhere other than `/usr/X11R6',
but i have reasons to do that:

  1, they wont get overwritten on next installation of xfree86,
  2, they maybe not compatible with old version of xfree86

but that is not important, if its only me who experienced this
probrem. let's forget it. :-P

*---------*

the error when building libXrender, renderext , libXft,
is caused by existance of the 2 files
`/usr/X11R6/include/X11/extensions/render.h,renderproto.h',
( installed with xf86-4.5 ),
they haven't something while
`/usr/local/include/X11/extensions/render.h,renderproto.h' have,
( newly installed xlibs ),
and i have `-I/usr/local/include -I/usr/X11R6/include',
and found `#include <X11/extensions/render.h>' somewhere in the source files,
so i just renamed the old ones, and the error gone.
i dont know if it linked to the correct version of libs, but it didnt
complain again.

*--------*

BTW. i'm study the auto-things, and hopefully can do something in the
near future.


##-----##


On 10/26/05, Tollef Fog Heen <tfheen at err.no> wrote:
> * Enrico Weigelt
>
> | * Tollef Fog Heen <tfheen at err.no> schrieb:
> |
> | <snip>
> | > I wonder if the «ignore list» in pkg-config could be generated from
> | > what cpp -v outputs as part of the build process, though..  Patches
> | > accepted. :-)
> |
> | aehm, what hell of ignore list ?!
>
> It currently removes /usr/include from the list of -I-ed files:
>
> : tfheen at thosu ~ > cat /usr/lib/pkgconfig/xpm.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
>
> Name: Xpm
> Description: X Pixmap Library
> Version: 3.5.2
> Libs: -L${libdir} -lXpm -lX11 -ldl
> Cflags: -I${includedir}
> : tfheen at thosu ~ > pkg-config --cflags xpm
>
> : tfheen at thosu ~ >
>
> | pkg-config should not try to repair broken .pc files. Instead we should
> | provide a little integrity check tool, which cries when system pathes
> | are found in the .pc file.
>
> I disagree.  pkg-config should DTRT, since what's a system path on one
> system might not be it on another system.
>
> --
> Tollef Fog Heen
> ,''`.
> UNIX is user friendly, it's just picky about who its friends are      : :'
> :
>                                                                       `. `'
>
>                                                                         `-
>
> _______________________________________________
> pkg-config mailing list
> pkg-config at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pkg-config
>


--
all born, to be dying


More information about the pkg-config mailing list