[pgpool-general: 3282] Re: Build pgpool-II on Solaris 11

Muhammad Usama m.usama at gmail.com
Fri Nov 14 00:09:31 JST 2014


Hi

I don't  have a Solaris 11 system, but appearently this is an include
file issue. Can you please try the attached patch if you can compile
successfully after that?

Thanks in advance

Kind regards,
Muhammad Usama




On Thu, Nov 13, 2014 at 7:03 PM, Tatsuo Ishii <ishii at postgresql.org> wrote:
> Hi,
>
> Thank you for the testing.
>
> Usama,
>
> It seems the error part is related to parser and elog, which you
> worked on for 3.4.0. Do you have any idea to fix them?
>
> Best regards,
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> Japanese:http://www.sraoss.co.jp
>
>> Hi! Thank you for reply.
>> I tried compile version 3.3.4 and it compiled without errors. So you
>> probably right about new breakage.
>>
>> 13.11.2014 2:19, Tatsuo Ishii пишет:
>>> Can you please try to compile 3.3, rather than 3.4.  I want to know if
>>> it's a new breakage in 3.4 (I don't have Solaris).
>>>
>>> Best regards,
>>> --
>>> Tatsuo Ishii
>>> SRA OSS, Inc. Japan
>>> English: http://www.sraoss.co.jp/index_en.php
>>> Japanese:http://www.sraoss.co.jp
>>>
>>>> Hello!
>>>> I have some troubles with compile Pgpool on solaris 11 system.
>>>> My binary distributive of postgresql dowloaded from official site
>>>> (postgresql.org). My configure parameters: ./configure
>>>> --prefix=/opt/pgpool-II --with-openssl
>>>> --with-pgsql=/opt/postgres/9.3-pgdg.
>>>> But after "gmake" I get the following errors:
>>>> Making all in src
>>>> gmake[1]: Entering directory `/export/home/manav/pgpool-II-3.4.0/src'
>>>> Making all in parser
>>>> gmake[2]: Entering directory
>>>> `/export/home/manav/pgpool-II-3.4.0/src/parser'
>>>> gcc -DHAVE_CONFIG_H -I. -I../../src/include -D_GNU_SOURCE -I
>>>> ../../src/include/parser -I /opt/postgres/9.3-pgdg/include -g -O2
>>>> -Wall -Wmissing-prototypes -Wmissing-declarations -MT copyfuncs.o -MD
>>>> -MP -MF .deps/copyfuncs.Tpo -c -o copyfuncs.o copyfuncs.c
>>>> mv -f .deps/copyfuncs.Tpo .deps/copyfuncs.Po
>>>> gcc -DHAVE_CONFIG_H -I. -I../../src/include -D_GNU_SOURCE -I
>>>> ../../src/include/parser -I /opt/postgres/9.3-pgdg/include -g -O2
>>>> -Wall -Wmissing-prototypes -Wmissing-declarations -MT gram.o -MD -MP
>>>> -MF .deps/gram.Tpo -c -o gram.o gram.c
>>>> In file included from ../../src/include/utils/elog.h:20:0,
>>>>                  from gram.y:50:
>>>> ../../src/include/parser/stringinfo.h:25:67: error: unknown type name
>>>> ‘va_list’
>>>>  extern int pg_vsnprintf(char *str, size_t count, const char *fmt,
>>>>  va_list args);
>>>>                                                                    ^
>>>> In file included from ../../src/include/utils/elog.h:20:0,
>>>>                  from gram.y:50:
>>>> ../../src/include/parser/stringinfo.h:135:53: error: unknown type name
>>>> ‘va_list’
>>>>  appendStringInfoVA(StringInfo str, const char *fmt, va_list args)
>>>>                                                      ^
>>>> In file included from ../../src/include/utils/elog.h:21:0,
>>>>                  from gram.y:50:
>>>> ../../src/include/utils/palloc.h:111:52: error: unknown type name
>>>> ‘va_list’
>>>>  pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
>>>>                                                     ^
>>>> gmake[2]: *** [gram.o] Error 1
>>>> gmake[2]: Leaving directory
>>>> `/export/home/manav/pgpool-II-3.4.0/src/parser'
>>>> gmake[1]: *** [all-recursive] Error 1
>>>> gmake[1]: Leaving directory `/export/home/manav/pgpool-II-3.4.0/src'
>>>> gmake: *** [all-recursive] Error 1
>>>>
>>>> Also I attached my config.log.
>>>> Any ideas?
>>>>
>>>> --
>>>> С уважением,
>>>> Мангашев Алан
>>>> Системный администратор
>>>> Отдел системного администрирования
>>>> УИТ
>>>> ОСАО "Ресо-Гарантия"
>>>> тел: (495) 730-30-00 доб. 1589
>>>>
>>
>> --
>> С уважением,
>> Мангашев Алан
>> Системный администратор
>> Отдел системного администрирования УИТ
>> ОСАО "Ресо-Гарантия"
>> тел: (495) 730-30-00 доб. 1589
>>
> _______________________________________________
> pgpool-general mailing list
> pgpool-general at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-general
-------------- next part --------------
diff --git a/src/include/parser/stringinfo.h b/src/include/parser/stringinfo.h
index 2baa975..14bca72 100644
--- a/src/include/parser/stringinfo.h
+++ b/src/include/parser/stringinfo.h
@@ -19,6 +19,7 @@
 #define STRINGINFO_H
 
 #include <stdio.h>
+#include <stdarg.h>
 #include "pg_config_manual.h"
 
 /* port.h */
diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h
index 8107437..d977192 100644
--- a/src/include/utils/palloc.h
+++ b/src/include/utils/palloc.h
@@ -28,6 +28,7 @@
 #ifndef PALLOC_H
 #define PALLOC_H
 
+#include <stdarg.h>
 #include "pg_config_manual.h"
 
 /*


More information about the pgpool-general mailing list