Ошибка при сборке "PL/Java" в Windows 7 с использованием Microsoft Visual Studio с Postgres 9.6. Ниже приведено подробное сообщение об ошибке:

Ошибка при сборке pl/java с использованием команды "mvn clean install" внутри папки "pljava-1_5_1b1". Ниже приведены подробности и сообщение об ошибке.

ОС - Windows 7, PL/Java версия - 1.5.1-BETA1, версия Postgres - 9.6

[ERROR] XactListener.obj : error LNK2019: unresolved external symbol _RegisterXa
ctCallback referenced in function _Java_org_postgresql_pljava_internal_XactListe
ner__1register@16
[INFO] XactListener.obj : error LNK2019: unresolved external symbol _UnregisterX
actCallback referenced in function _Java_org_postgresql_pljava_internal_XactList
ener__1unregister@16
[ERROR] XactListener.obj : error LNK2019: unresolved external symbol _Unregister
XactCallback referenced in function _Java_org_postgresql_pljava_internal_XactLis
tener__1unregister@16
[INFO] pljava-so-1.5.1-BETA1.dll : fatal error LNK1120: 180 unresolved externals

[ERROR] pljava-so-1.5.1-BETA1.dll : fatal error LNK1120: 180 unresolved external
s
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PostgreSQL PL/Java ................................ SUCCESS [1.811s]
[INFO] PL/Java API ....................................... SUCCESS [5.142s]
[INFO] PL/Java backend Java code ......................... SUCCESS [4.634s]
[INFO] PL/Java backend native code ....................... FAILURE [39.925s]
[INFO] PL/Java Deploy .................................... SKIPPED
[INFO] PL/Java Ant tasks ................................. SKIPPED
[INFO] PL/Java examples .................................. SKIPPED
[INFO] PL/Java packaging ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52.896s
[INFO] Finished at: Tue Oct 24 11:42:30 IST 2017
[INFO] Final Memory: 35M/443M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-c
ompile (default-nar-compile) on project pljava-so: NAR: Compile failed: link fai
led with return code 1120 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :pljava-so

0 ответов

Другие вопросы по тегам