Обсуждение: -devel-7.0-1.rpm: Still missing a lots of headers
Hi!
It's ancient problem for me, in postgres 6.x. And now there is in 7.0 too
If i try to include spi.h, i can't compile my program. Why? Some files,
included from __packaged__ headers, are missing.
Take a look:
--------------- snip ---------------
In file included from /usr/local/pgsql/include/access/xact.h:18, from
/usr/local/pgsql/include/utils/tqual.h:19, from /usr/local/pgsql/include/access/relscan.h:17,
from /usr/local/pgsql/include/nodes/execnodes.h:18, from /usr/local/pgsql/include/executor/spi.h:19,
from my.c:1:
... etc ...
Some others:
/usr/local/pgsql/include/utils/nabstime.h:18: utils/timestamp.h: No such file or directory
/usr/local/pgsql/include/executor/hashjoin.h:18: storage/buffile.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:37: utils/date.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:38: utils/lztext.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:39: utils/varbit.h: No such file or directory
--------------- snap ---------------
But why? Nobody knows it, nobody intrested, or there is a way, to use
somethings from spi.h, without this error.
(my way is to copy all of headers from a source package, but...)
...
any comments?
thanks, and best regards
--nek;(
Peter Vazsonyi wrote: > But why? Nobody knows it, nobody intrested, or there is a way, to use > somethings from spi.h, without this error. > (my way is to copy all of headers from a source package, but...) Argh. I'll have to go back through the headers -- my listing of SPI headers included in the -devel RPM is correct for 6.5.3, but not 7.0, apparently. Thanks for the listing -- that'll get me started. Look for a -2 RPM set later today or tomorrow. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11
Lamar Owen wrote: > > Peter Vazsonyi wrote: > > But why? Nobody knows it, nobody intrested, or there is a way, to use > > somethings from spi.h, without this error. > > (my way is to copy all of headers from a source package, but...) > > Argh. I'll have to go back through the headers -- my listing of SPI > headers included in the -devel RPM is correct for 6.5.3, but not 7.0, > apparently. Thanks for the listing -- that'll get me started. > > Look for a -2 RPM set later today or tomorrow. As a followup, use the following one-liner to generate a sorted listing of the SPI deps (cwd is src/include): /lib/cpp -M -I. -I../backend executor/spi.h |xargs -n 1|grep \\W|grep -v ^/|grep -v spi.h|sort Yes, I know I could make the regexps better, but that one-liner works as-is.... Above one-line is being used in rpm building process now instead of the prior hard-coded listing, which should eliminate the problem in future RPMsets. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11