clkao / plv8js-migrated

Automatically exported from code.google.com/p/plv8js
Other
0 stars 0 forks source link

error: declaration of ‘Datum plv8_call_handler(FunctionCallInfo) throw ()’ has a different exception specifier #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have a master PostgreSQL 9.4
2. unpack tarball in src/PL/ directory
3. make

What is the expected output? What do you see instead?

I got a errors

[pavel@localhost plv8-1.4.2]$ make 
sed -e 's/^#undef PLV8_VERSION/#define PLV8_VERSION "1.4.2"/' plv8_config.h.in 
> plv8_config.h
g++ -Wall -O2  -I. -I./ -I/usr/local/pgsql/include/server 
-I/usr/local/pgsql/include/internal -D_GNU_SOURCE -I/usr/include/libxml2  -fPIC 
-c -o plv8.o plv8.cc
plv8.cc:50:56: error: declaration of ‘Datum 
plv8_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plv8_call_handler(PG_FUNCTION_ARGS) throw();
                                                        ^
plv8.cc:43:7: error: from previous declaration ‘Datum 
plv8_call_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plv8_call_handler);
       ^
plv8.cc:51:58: error: declaration of ‘Datum 
plv8_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plv8_call_validator(PG_FUNCTION_ARGS) throw();
                                                          ^
plv8.cc:44:7: error: from previous declaration ‘Datum 
plv8_call_validator(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plv8_call_validator);
       ^
plv8.cc:52:60: error: declaration of ‘Datum 
plcoffee_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plcoffee_call_handler(PG_FUNCTION_ARGS) throw();
                                                            ^
plv8.cc:45:7: error: from previous declaration ‘Datum 
plcoffee_call_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plcoffee_call_handler);
       ^
plv8.cc:53:62: error: declaration of ‘Datum 
plcoffee_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plcoffee_call_validator(PG_FUNCTION_ARGS) throw();
                                                              ^
plv8.cc:46:7: error: from previous declaration ‘Datum 
plcoffee_call_validator(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plcoffee_call_validator);
       ^
plv8.cc:54:56: error: declaration of ‘Datum 
plls_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plls_call_handler(PG_FUNCTION_ARGS) throw();
                                                        ^
plv8.cc:47:7: error: from previous declaration ‘Datum 
plls_call_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plls_call_handler);
       ^
plv8.cc:55:58: error: declaration of ‘Datum 
plls_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plls_call_validator(PG_FUNCTION_ARGS) throw();
                                                          ^
plv8.cc:48:7: error: from previous declaration ‘Datum 
plls_call_validator(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plls_call_validator);
       ^
plv8.cc:63:58: error: declaration of ‘Datum 
plv8_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plv8_inline_handler(PG_FUNCTION_ARGS) throw();
                                                          ^
plv8.cc:60:7: error: from previous declaration ‘Datum 
plv8_inline_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plv8_inline_handler);
       ^
plv8.cc:64:62: error: declaration of ‘Datum 
plcoffee_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plcoffee_inline_handler(PG_FUNCTION_ARGS) throw();
                                                              ^
plv8.cc:61:7: error: from previous declaration ‘Datum 
plcoffee_inline_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plcoffee_inline_handler);
       ^
plv8.cc:65:58: error: declaration of ‘Datum 
plls_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 Datum plls_inline_handler(PG_FUNCTION_ARGS) throw();
                                                          ^
plv8.cc:62:7: error: from previous declaration ‘Datum 
plls_inline_handler(FunctionCallInfo)’
 PG_FUNCTION_INFO_V1(plls_inline_handler);
       ^
plv8.cc: In function ‘Datum plv8_call_handler(FunctionCallInfo)’:
plv8.cc:310:50: error: declaration of ‘Datum 
plv8_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plv8_call_handler(PG_FUNCTION_ARGS) throw()
                                                  ^
plv8.cc:50:7: error: from previous declaration ‘Datum 
plv8_call_handler(FunctionCallInfo)’
 Datum plv8_call_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plcoffee_call_handler(FunctionCallInfo)’:
plv8.cc:316:54: error: declaration of ‘Datum 
plcoffee_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plcoffee_call_handler(PG_FUNCTION_ARGS) throw()
                                                      ^
plv8.cc:52:7: error: from previous declaration ‘Datum 
plcoffee_call_handler(FunctionCallInfo)’
 Datum plcoffee_call_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plls_call_handler(FunctionCallInfo)’:
plv8.cc:322:50: error: declaration of ‘Datum 
plls_call_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plls_call_handler(PG_FUNCTION_ARGS) throw()
                                                  ^
plv8.cc:54:7: error: from previous declaration ‘Datum 
plls_call_handler(FunctionCallInfo)’
 Datum plls_call_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plv8_inline_handler(FunctionCallInfo)’:
plv8.cc:357:52: error: declaration of ‘Datum 
plv8_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plv8_inline_handler(PG_FUNCTION_ARGS) throw()
                                                    ^
plv8.cc:63:7: error: from previous declaration ‘Datum 
plv8_inline_handler(FunctionCallInfo)’
 Datum plv8_inline_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plcoffee_inline_handler(FunctionCallInfo)’:
plv8.cc:363:56: error: declaration of ‘Datum 
plcoffee_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plcoffee_inline_handler(PG_FUNCTION_ARGS) throw()
                                                        ^
plv8.cc:64:7: error: from previous declaration ‘Datum 
plcoffee_inline_handler(FunctionCallInfo)’
 Datum plcoffee_inline_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plls_inline_handler(FunctionCallInfo)’:
plv8.cc:369:52: error: declaration of ‘Datum 
plls_inline_handler(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plls_inline_handler(PG_FUNCTION_ARGS) throw()
                                                    ^
plv8.cc:65:7: error: from previous declaration ‘Datum 
plls_inline_handler(FunctionCallInfo)’
 Datum plls_inline_handler(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plv8_call_validator(FunctionCallInfo)’:
plv8.cc:749:52: error: declaration of ‘Datum 
plv8_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plv8_call_validator(PG_FUNCTION_ARGS) throw()
                                                    ^
plv8.cc:51:7: error: from previous declaration ‘Datum 
plv8_call_validator(FunctionCallInfo)’
 Datum plv8_call_validator(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plcoffee_call_validator(FunctionCallInfo)’:
plv8.cc:755:56: error: declaration of ‘Datum 
plcoffee_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plcoffee_call_validator(PG_FUNCTION_ARGS) throw()
                                                        ^
plv8.cc:53:7: error: from previous declaration ‘Datum 
plcoffee_call_validator(FunctionCallInfo)’
 Datum plcoffee_call_validator(PG_FUNCTION_ARGS) throw();
       ^
plv8.cc: In function ‘Datum plls_call_validator(FunctionCallInfo)’:
plv8.cc:761:52: error: declaration of ‘Datum 
plls_call_validator(FunctionCallInfo) throw ()’ has a different exception 
specifier
 plls_call_validator(PG_FUNCTION_ARGS) throw()
                                                    ^
plv8.cc:55:7: error: from previous declaration ‘Datum 
plls_call_validator(FunctionCallInfo)’
 Datum plls_call_validator(PG_FUNCTION_ARGS) throw();
       ^
make: *** [plv8.o] Error 1

What version of the product are you using? On what operating system?

Fedora 20

Please provide any additional information below.

[pavel@localhost plv8-1.4.2]$ gcc --version
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original issue reported on code.google.com by pavel.st...@gmail.com on 12 May 2014 at 10:47

GoogleCodeExporter commented 9 years ago
Checkout the latest.  I've fixed it master and r1.4 branches.

Original comment by umi.tan...@gmail.com on 19 May 2014 at 4:39