From owner-freebsd-java@FreeBSD.ORG Sun Dec 16 10:33:29 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53F5316A419 for ; Sun, 16 Dec 2007 10:33:29 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from kedah.mschosting.com (kedah.mschosting.com [202.75.42.90]) by mx1.freebsd.org (Postfix) with ESMTP id 9304013C469 for ; Sun, 16 Dec 2007 10:33:28 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from [85.15.21.235] (port=54330 helo=movaqar) by kedah.mschosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1J3pGD-0004u9-Uf for freebsd-java@freebsd.org; Sun, 16 Dec 2007 16:54:12 +0800 Date: Sun, 16 Dec 2007 12:22:39 +0330 From: Bahman Movaqar To: freebsd-java@freebsd.org Message-ID: <20071216122239.62b1c0e7@movaqar> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/YcdXVKmy6HFpx5c04/QRhap"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kedah.mschosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - adempiere.org X-Source: X-Source-Args: X-Source-Dir: Subject: PL/Java installation failed: Undefined symbol "pthread_create" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2007 10:33:29 -0000 --Sig_/YcdXVKmy6HFpx5c04/QRhap Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, I've ran into problems installing PL/Java on FreeBSD. Below are the software configurations I use: $ uname -a=20 FreeBSD movaqar 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 $ psql --version psql (PostgreSQL) 8.2.5 contains support for command-line editing $ java -version java version "1.5.0_13-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-p7-root_12_dec_2007_15_19) Java HotSpot(TM) Client VM (build 1.5.0_13-p7-root_12_dec_2007_15_19, mixed mode) $ cat /etc/rc.conf | grep ldconfig ldconfig_paths=3D"/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/= lib/compat/pkg /usr/local/jdk1.5.0/jre/lib/i386 /usr/local/jdk1.5.0/jre/lib= /i386/client /usr/local/jdk1.5.0/jre/lib/i386/native_threads" I have also Diablo-JDK-1.5.0_07 installed. PL/Java sources compile fine without any warnings; then I change 'postgresql.conf' to add the 'pljava' section. No problems yet. But when I run the deployer (JAR or SQL) program to install it into the database, this is what I get: psql:/usr/local/pljava/install.sql:6: ERROR: could not load library "/usr/local/pljava/lib/pljava.so": dlopen (/usr/local/pljava/lib/pljava.so) failed: /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so: Undefined symbol "pthread_create" psql:/usr/local/pljava/install.sql:8: ERROR: function sqlj.java_call_handler() does not exist psql:/usr/local/pljava/install.sql:12: ERROR: could not load library "/usr/local/pljava/lib/pljava.so": dlopen (/usr/local/pljava/lib/pljava.so) failed: /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so: Undefined symbol "pthread_create" psql:/usr/local/pljava/install.sql:14: ERROR: function sqlj.javau_call_handler() does not exist BTW, I have done PL/Java installation on PG 8.2.4 before without any problems. Could the version of PG be the source of the trouble? Any idea/hint is highly appreciated. TIA, --=20 Bahman Movaqar PGP KeyID: 0x0CE28F5C (keyserver2.pgp.com) The most prevalent philosophy in application security is that security should not be added as an after thought, but should be included by design and default. -Frank Nimphius --Sig_/YcdXVKmy6HFpx5c04/QRhap Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHZOdXpiYSTAzij1wRAr1OAKCF2ysE8vwn/Ve74OhFICG5DO9jrwCcCSfH 12bQ7uVPE+fuHtITsT6w41c= =p5TZ -----END PGP SIGNATURE----- --Sig_/YcdXVKmy6HFpx5c04/QRhap--