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>
next in thread | previous in thread | raw e-mail | index | archive | help
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) $(ca= ll 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/lib= thr.so.3 , did the trick. root@smadev:/usr/local/src/postgresql-9.2.2# ldd /usr/local/pgsql/bin/p= ostgres /usr/local/pgsql/bin/postgres: libm.so.5 =3D> /lib/libm.so.5 (0x800ae5000) libldap-2.4.so.8 =3D> /usr/local/lib/libldap-2.4.so.8 (0x800c05= 000) libthr.so.3 =3D> /lib/libthr.so.3 (0x800d47000) libc.so.7 =3D> /lib/libc.so.7 (0x800e60000) liblber-2.4.so.8 =3D> /usr/local/lib/liblber-2.4.so.8 (0x8010a2= 000) libssl.so.6 =3D> /usr/lib/libssl.so.6 (0x8011af000) libcrypto.so.6 =3D> /lib/libcrypto.so.6 (0x801302000) I had the first good results from pl/java :) On =CE=A4=CF=81=CE=B9 05 =CE=A6=CE=B5=CE=B2 2013 10:38:18 Achilleas Man= tzios wrote: > On =C3=8E=C2=94=C3=8E=C2=B5=C3=8F=C2=85 04 =C3=8E=C2=A6=C3=8E=C2=B5=C3= =8E=C2=B2 2013 19:18:59 you wrote: >=20 > > Try to start the postgres daemon with 'LD_PRELOAD=3D/lib/libthr.so.= 3' > > env variable set. >=20 > Thanx, i tried with this, inside postgresql startup script with no lu= ck. > I also saw this thread here : http://www.postgresql.org/message-id/68= c429ede4cde3874b37460b5b1d4aaf@cs.helsinki.fi > (but could not find its continuation over the FreeBSD camp) > The author claims that postgres backend executable must be linked wit= h -lpthread. > Inside postgres's Makefile.global i can see=20 > PTHREAD_CFLAGS =3D -pthread -D_REENTRANT -D_THREAD_SAFE -D_= POSIX_PTHREAD_SEMANTICS > THREAD_LIBS =3D -lpthread > however when i do=20 >=20 > root@smadev:/usr/local/src/postgresql-9.2.2# ldd /usr/local/pgsql/bin= /postgres > /usr/local/pgsql/bin/postgres: > libm.so.5 =3D> /lib/libm.so.5 (0x800ae5000) > libldap-2.4.so.8 =3D> /usr/local/lib/libldap-2.4.so.8 (0x800c= 05000) > libc.so.7 =3D> /lib/libc.so.7 (0x800d47000) > liblber-2.4.so.8 =3D> /usr/local/lib/liblber-2.4.so.8 (0x800f= 89000) > libssl.so.6 =3D> /usr/lib/libssl.so.6 (0x801096000) > libcrypto.so.6 =3D> /lib/libcrypto.so.6 (0x8011e9000) >=20 > i see nothing thread (libpthread or libtrh) related. >=20 > Any help to overcome this much appreciated. >=20 > >=20 > > >=20 >=20 > - > 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.or= g" - 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=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=5p2ofLJC+U/dMLxyGd3SeH4uCfmmW8yvBXD63kYBf2w=; b=eDrGIRBoTvVWCYMPM1eoJ67il1p/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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1671376.BVdjYkz6LH>