Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2007 14:56:01 +0330
From:      Bahman Movaqar <b.movaqar@adempiere.org>
To:        freebsd-java@freebsd.org
Subject:   Re: PL/Java installation failed: Undefined symbol "pthread_create"
Message-ID:  <20071216145601.5073c1c6@movaqar>
In-Reply-To: <20071216122239.62b1c0e7@movaqar>
References:  <20071216122239.62b1c0e7@movaqar>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/8Br.S3YqDo.nTNVmEXzhF1j
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On 2007-12-16 Bahman Movaqar wrote:

>=20
> Hi all,
>=20
> 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
>=20
> $ psql --version
> psql (PostgreSQL) 8.2.5
> contains support for command-line editing
>=20
> $ 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)
>=20
> $ cat /etc/rc.conf | grep ldconfig
> ldconfig_paths=3D"/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/loca=
l/lib/compat/pkg /usr/local/jdk1.5.0/jre/lib/i386 /usr/local/jdk1.5.0/jre/l=
ib/i386/client /usr/local/jdk1.5.0/jre/lib/i386/native_threads"
>=20
> I have also Diablo-JDK-1.5.0_07 installed.
>=20
> 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:
>=20
> 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
>=20
> 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?
>=20
> Any idea/hint is highly appreciated.
>=20
> TIA,
>=20
Solved by mapping libpthread to libthr in libmap.conf.

--=20
Bahman Movaqar
PGP KeyID: 0x0CE28F5C (keyserver2.pgp.com)

Whenever there are great virtues, it's a sure sign something's wrong.
-Bertolt Brecht

--Sig_/8Br.S3YqDo.nTNVmEXzhF1j
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHZQtJpiYSTAzij1wRAp38AJwOL2DpeVfDRKaUF1dyZ/zrZML6/ACfUtNQ
TSrrKxFXtg6NHVezSS9KkPI=
=6tG1
-----END PGP SIGNATURE-----

--Sig_/8Br.S3YqDo.nTNVmEXzhF1j--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071216145601.5073c1c6>