From owner-freebsd-java@FreeBSD.ORG Tue Feb 5 10:33:42 2013 Return-Path: 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 0BB6617C for ; Tue, 5 Feb 2013 10:33:42 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (adsltrust.ath.forthnet.gr [194.219.204.174]) by mx1.freebsd.org (Postfix) with ESMTP id F2A94C32 for ; Tue, 5 Feb 2013 10:33:40 +0000 (UTC) X-Bogosity: No, tests=bogofilter Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.5/8.14.5) with ESMTP id r15AXcA1037145; Tue, 5 Feb 2013 12:33:38 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: (from achill@localhost) by smadev.internal.net (8.14.5/8.14.5/Submit) id r15AXcqK037144; Tue, 5 Feb 2013 12:33:38 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) X-Authentication-Warning: smadev.internal.net: achill set sender to achill@matrix.gatewaynet.com using -f From: Achilleas Mantzios To: freebsd-java@freebsd.org Subject: Re: Re: Re: Re: Re: Re: Re: FreeBSD pl/java problem : backend hangs : Solved Date: Tue, 05 Feb 2013 12:33:37 +0200 Message-ID: <1671376.BVdjYkz6LH@smadev.internal.net> Organization: Dynacom Tankers Mgmt X-Face: "g.Z.Lx$T1ZMcQ%hC!e^E&tD,cT:"bTs45WM(,vUj@8QBz6}T'sn+EnZTzy`UVQ:&A=`_; f)V+K4z}rG5:(uu[b:WY'*`6F"ou-Or(q; u{#Gxx|MkO4E.vh@E}[#7Ytt"shtU>A&@CO` a|Wx]m_wRD,?4!'Ir1$4iis{/.WU<`#dhKI]g2w^!B[CvRJr+W|; -VS~QcL!s1"'??rct} ^=5Fa!W!{a}Jd:W%6,E[N\r-<)T'_N[~3fy9pF"b>-Yj^p}/2tPudP>I"$%w]"W4CIja6J Tajm}"8t`-hJlf2kRQ_V,eT_kN6KLG+~2mZ+cPX,p,xQN9QVR References: <5933829.WYzpjKtO0p@smadev.internal.net> <20130204171859.GB2522@kib.kiev.ua> <1779006.4dHUJtq5BK@smadev.internal.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Konstantin Belousov X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 10:33:42 -0000 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: 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 ; 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 ; Wed, 6 Feb 2013 18:49:04 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id va7so1807477obc.13 for ; 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: Subject: compiling JDK From: Dmitriy Myshkin 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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...