Date: Tue, 05 Feb 2013 12:33:37 +0200 From: Achilleas Mantzios <achill@matrix.gatewaynet.com> To: freebsd-java@freebsd.org Cc: Konstantin Belousov <kostikbel@gmail.com> Subject: Re: Re: Re: Re: Re: Re: Re: FreeBSD pl/java problem : backend hangs : Solved Message-ID: <1671376.BVdjYkz6LH@smadev.internal.net> In-Reply-To: <1779006.4dHUJtq5BK@smadev.internal.net> References: <5933829.WYzpjKtO0p@smadev.internal.net> <20130204171859.GB2522@kib.kiev.ua> <1779006.4dHUJtq5BK@smadev.internal.net>
index | next in thread | previous in thread | raw e-mail
Thank you Konstantin.
After much playing around finally i experimented putting in /usr/local/src/postgresql-9.2.2/src/backend/Makefile :
postgres: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(call expand_subsys,$^) $(LIBS) -lpthread -o $@
i.e. explicitly linking the postgres backend to /usr/lib/libpthread.so which is a symlink to /usr/lib/libthr.so which is a symlink to /lib/libthr.so.3 ,
did the trick.
root@smadev:/usr/local/src/postgresql-9.2.2# ldd /usr/local/pgsql/bin/postgres
/usr/local/pgsql/bin/postgres:
libm.so.5 => /lib/libm.so.5 (0x800ae5000)
libldap-2.4.so.8 => /usr/local/lib/libldap-2.4.so.8 (0x800c05000)
libthr.so.3 => /lib/libthr.so.3 (0x800d47000)
libc.so.7 => /lib/libc.so.7 (0x800e60000)
liblber-2.4.so.8 => /usr/local/lib/liblber-2.4.so.8 (0x8010a2000)
libssl.so.6 => /usr/lib/libssl.so.6 (0x8011af000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x801302000)
I had the first good results from pl/java :)
On Τρι 05 Φεβ 2013 10:38:18 Achilleas Mantzios wrote:
> On ÎεÏ
04 Φεβ 2013 19:18:59 you wrote:
>
> > Try to start the postgres daemon with 'LD_PRELOAD=/lib/libthr.so.3'
> > env variable set.
>
> Thanx, i tried with this, inside postgresql startup script with no luck.
> I also saw this thread here : http://www.postgresql.org/message-id/68c429ede4cde3874b37460b5b1d4aaf@cs.helsinki.fi
> (but could not find its continuation over the FreeBSD camp)
> The author claims that postgres backend executable must be linked with -lpthread.
> Inside postgres's Makefile.global i can see
> PTHREAD_CFLAGS = -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
> THREAD_LIBS = -lpthread
> however when i do
>
> root@smadev:/usr/local/src/postgresql-9.2.2# ldd /usr/local/pgsql/bin/postgres
> /usr/local/pgsql/bin/postgres:
> libm.so.5 => /lib/libm.so.5 (0x800ae5000)
> libldap-2.4.so.8 => /usr/local/lib/libldap-2.4.so.8 (0x800c05000)
> libc.so.7 => /lib/libc.so.7 (0x800d47000)
> liblber-2.4.so.8 => /usr/local/lib/liblber-2.4.so.8 (0x800f89000)
> libssl.so.6 => /usr/lib/libssl.so.6 (0x801096000)
> libcrypto.so.6 => /lib/libcrypto.so.6 (0x8011e9000)
>
> i see nothing thread (libpthread or libtrh) related.
>
> Any help to overcome this much appreciated.
>
> >
> > >
>
> -
> Achilleas Mantzios
> IT DEV
> IT DEPT
> Dynacom Tankers Mgmt
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
-
Achilleas Mantzios
IT DEV
IT DEPT
Dynacom Tankers Mgmt
From owner-freebsd-java@FreeBSD.ORG Wed Feb 6 18:49:04 2013
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
[IPv6:2001:1900:2254:206a::19:1])
by hub.freebsd.org (Postfix) with ESMTP id D923A8F9
for <freebsd-java@freebsd.org>; Wed, 6 Feb 2013 18:49:04 +0000 (UTC)
(envelope-from dmyshkin@gmail.com)
Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com
[209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD10217B
for <freebsd-java@freebsd.org>; Wed, 6 Feb 2013 18:49:04 +0000 (UTC)
Received: by mail-ob0-f182.google.com with SMTP id va7so1807477obc.13
for <freebsd-java@freebsd.org>; Wed, 06 Feb 2013 10:48:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s 120113;
h=mime-version:x-received:date:message-id:subject:from:to
:content-type; bh=5p2ofLJC+U/dMLxyGd3SeH4uCfmmW8yvBXD63kYBf2w=;
brGIRBoTvVWCYMPM1eoJ67il1p/hgCarA2LVz4wdRqJyja71tQ2QPU1xgQsV7tZEj
8OvA8wteZ69k/PvW77GwjGCPmImFKqngITFxl9TDduwIga2u/LyxlNjJKvqhVWxeCspA
oBa8PhvBSIzSpVaIlWHVacPPsPHhtN+5Dejrip9qnUjDPEVJ51riMrmY13VPeXxUzXlg
ZTnuJtuchURfGa6dUbavyQljwoOEOg2GLZoDalBZHl8VOXrDUwm8V6/9MoIDnqKYQzFt
5xgLZZck085PQYfZ8/YWYzaewNhMZHapIpgv64YIBdtF20+mt9SG6bsSgFCZMPUzzwjH
4WTA=MIME-Version: 1.0
X-Received: by 10.182.17.70 with SMTP id m6mr21652462obd.39.1360176538047;
Wed, 06 Feb 2013 10:48:58 -0800 (PST)
Received: by 10.76.171.195 with HTTP; Wed, 6 Feb 2013 10:48:57 -0800 (PST)
Date: Wed, 6 Feb 2013 19:48:57 +0100
Message-ID: <CACtPiKGReYnByadOfNuXLzQFKYc8xBeaxGu-e7JdnDW0=UqbNA@mail.gmail.com>
Subject: compiling JDK
From: Dmitriy Myshkin <dmyshkin@gmail.com>
To: freebsd-java@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-java>,
<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 18:49:04 -0000
has anyone gotten the Java port SDK to compile? If so do you have anywhere
documented the steps?
I want to bash my head into a wall...
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1671376.BVdjYkz6LH>
