{"action":"opened","issue":{"url":"https://api.github.com/repos/tada/pljava/issues/64","labels_url":"https://api.github.com/repos/tada/pljava/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/tada/pljava/issues/64/comments","events_url":"https://api.github.com/repos/tada/pljava/issues/64/events","html_url":"https://github.com/tada/pljava/issues/64","id":116314423,"number":64,"title":"pljava does not compile on centos 6.5 and postgres 9.4","user":{"login":"dblanch-at-hoplasoftware","id":15682550,"avatar_url":"https://avatars.githubusercontent.com/u/15682550?v=3","gravatar_id":"","url":"https://api.github.com/users/dblanch-at-hoplasoftware","html_url":"https://github.com/dblanch-at-hoplasoftware","followers_url":"https://api.github.com/users/dblanch-at-hoplasoftware/followers","following_url":"https://api.github.com/users/dblanch-at-hoplasoftware/following{/other_user}","gists_url":"https://api.github.com/users/dblanch-at-hoplasoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/dblanch-at-hoplasoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblanch-at-hoplasoftware/subscriptions","organizations_url":"https://api.github.com/users/dblanch-at-hoplasoftware/orgs","repos_url":"https://api.github.com/users/dblanch-at-hoplasoftware/repos","events_url":"https://api.github.com/users/dblanch-at-hoplasoftware/events{/privacy}","received_events_url":"https://api.github.com/users/dblanch-at-hoplasoftware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T11:29:41Z","updated_at":"2015-11-11T11:29:41Z","closed_at":null,"body":"Again maybe I'm doing something wrong\r\n\r\nI have installed using yum all packages of postgres\r\n\r\n```\r\n[root@localhost pljava]# yum list postgres*\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirror.uv.es\r\n * extras: mirror.uv.es\r\n * updates: mirror.uv.es\r\nInstalled Packages\r\npostgresql94.x86_64                                                       9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-contrib.x86_64                                               9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-debuginfo.x86_64                                             9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-devel.x86_64                                                 9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-libs.x86_64                                                  9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-plperl.x86_64                                                9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-plpython.x86_64                                              9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-pltcl.x86_64                                                 9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-server.x86_64                                                9.4.5-1PGDG.rhel6                                           @pgdg94\r\npostgresql94-test.x86_64                                                  9.4.5-1PGDG.rhel6                                           @pgdg94\r\n```\r\nJava mvn and gcc versions:\r\n\r\n```\r\n[root@localhost pljava]# java -version\r\njava version \"1.7.0_79\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_79-b15)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)\r\n[root@localhost pljava]# mvn -version\r\nApache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T11:57:37+00:00)\r\nMaven home: /usr/local/maven\r\nJava version: 1.7.0_79, vendor: Oracle Corporation\r\nJava home: /usr/java/jdk1.7.0_79/jre\r\nDefault locale: es_ES, platform encoding: UTF-8\r\nOS name: \"linux\", version: \"2.6.32-431.el6.x86_64\", arch: \"amd64\", family: \"unix\"\r\n[root@localhost pljava]# gcc --version\r\ngcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)\r\nCopyright (C) 2010 Free Software Foundation, Inc.\r\nEsto es software libre; vea el código para las condiciones de copia.  NO hay\r\ngarantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO EN\r\nPARTICULAR\r\n```\r\n\r\nThe output of pg_config\r\n\r\n```\r\n[root@localhost pljava]# pg_config \r\nBINDIR = /usr/pgsql-9.4/bin\r\nDOCDIR = /usr/share/doc/pgsql\r\nHTMLDIR = /usr/share/doc/pgsql\r\nINCLUDEDIR = /usr/pgsql-9.4/include\r\nPKGINCLUDEDIR = /usr/pgsql-9.4/include\r\nINCLUDEDIR-SERVER = /usr/pgsql-9.4/include/server\r\nLIBDIR = /usr/pgsql-9.4/lib\r\nPKGLIBDIR = /usr/pgsql-9.4/lib\r\nLOCALEDIR = /usr/pgsql-9.4/share/locale\r\nMANDIR = /usr/pgsql-9.4/share/man\r\nSHAREDIR = /usr/pgsql-9.4/share\r\nSYSCONFDIR = /etc/sysconfig/pgsql\r\nPGXS = /usr/pgsql-9.4/lib/pgxs/src/makefiles/pgxs.mk\r\nCONFIGURE = '--disable-rpath' '--prefix=/usr/pgsql-9.4' '--includedir=/usr/pgsql-9.4/include' '--mandir=/usr/pgsql-9.4/share/man' '--datadir=/usr/pgsql-9.4/share' '--with-perl' '--with-python' '--with-tcl' '--with-tclconfig=/usr/lib64' '--with-openssl' '--with-pam' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--with-uuid=e2fs' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-system-tzdata=/usr/share/zoneinfo' '--sysconfdir=/etc/sysconfig/pgsql' '--docdir=/usr/share/doc' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et' 'CPPFLAGS= -I/usr/include/et'\r\nCC = gcc\r\nCPPFLAGS = -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include\r\nCFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et\r\nCFLAGS_SL = -fpic\r\nLDFLAGS = -L../../../src/common -L/usr/lib64 -Wl,--as-needed\r\nLDFLAGS_EX = \r\nLDFLAGS_SL = \r\nLIBS = -lpgcommon -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm \r\nVERSION = PostgreSQL 9.4.5\r\n\r\n```\r\n\r\n\r\nand what i get when running mvn -X -e clean install\r\n\r\n```\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Reactor Summary:\r\n[INFO] \r\n[INFO] PostgreSQL PL/Java ................................. SUCCESS [  3.301 s]\r\n[INFO] PL/Java API ........................................ SUCCESS [  6.712 s]\r\n[INFO] PL/Java backend Java code .......................... SUCCESS [ 11.587 s]\r\n[INFO] PL/Java backend native code ........................ FAILURE [  6.843 s]\r\n[INFO] PL/Java Deploy ..................................... SKIPPED\r\n[INFO] PL/Java Ant tasks .................................. SKIPPED\r\n[INFO] PL/Java examples ................................... SKIPPED\r\n[INFO] PL/Java packaging .................................. SKIPPED\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 30.889 s\r\n[INFO] Finished at: 2015-11-11T11:16:17+00:00\r\n[INFO] Final Memory: 26M/69M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-compile (default-nar-compile) on project pljava-so: Execution default-nar-compile of goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-compile failed. NullPointerException -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-compile (default-nar-compile) on project pljava-so: Execution default-nar-compile of goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-compile failed.\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:197)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default-nar-compile of goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-compile failed.\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n\t... 20 more\r\nCaused by: java.lang.NullPointerException\r\n\tat com.github.maven_nar.cpptasks.gcc.GppLinker.isClang(GppLinker.java:317)\r\n\tat com.github.maven_nar.cpptasks.gcc.GppLinker.addImpliedArgs(GppLinker.java:159)\r\n\tat com.github.maven_nar.cpptasks.compiler.CommandLineLinker.createConfiguration(CommandLineLinker.java:153)\r\n\tat com.github.maven_nar.cpptasks.compiler.AbstractLinker.createConfiguration(AbstractLinker.java:83)\r\n\tat com.github.maven_nar.cpptasks.ProcessorDef.createConfiguration(ProcessorDef.java:200)\r\n\tat com.github.maven_nar.cpptasks.CCTask.collectExplicitObjectFiles(CCTask.java:500)\r\n\tat com.github.maven_nar.cpptasks.CCTask.execute(CCTask.java:647)\r\n\tat com.github.maven_nar.NarCompileMojo.createLibrary(NarCompileMojo.java:433)\r\n\tat com.github.maven_nar.NarCompileMojo.narExecute(NarCompileMojo.java:107)\r\n\tat com.github.maven_nar.AbstractNarMojo.execute(AbstractNarMojo.java:329)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n\t... 21 more\r\n[ERROR] \r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException\r\n[ERROR] \r\n[ERROR] After correcting the problems, you can resume the build with the command\r\n[ERROR]   mvn <goals> -rf :pljava-so\r\n[root@localhost pljava]# \r\n```\r\n"}}