From owner-freebsd-java Sun Oct 31 1:14:18 1999 Delivered-To: freebsd-java@freebsd.org Received: from smtppop2.gte.net (smtppop2.gte.net [207.115.153.21]) by hub.freebsd.org (Postfix) with ESMTP id E3FBD14D0E for ; Sun, 31 Oct 1999 01:14:09 -0800 (PST) (envelope-from gianluca.torta@gte.net) Received: from pongo (1Cust236.tnt4.redmond.wa.da.uu.net [63.23.202.236]) by smtppop2.gte.net with SMTP ; id DAA10149062 Sun, 31 Oct 1999 03:11:32 -0600 (CST) Message-ID: <001001bf2334$a3e79d00$ecca173f@pongo> From: "Gianluca Torta" To: "Nate Williams" Cc: Subject: R: Undefined symbol gmtime_r with jdk1.1.8 Date: Sat, 30 Oct 1999 17:12:34 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org first of all thanks for the reply Nate. I'm brand new to jdk, and unfortunately not yet an expert of FreeBSD too, so I may have misinterpreted the error. here's exactly what I get when I run, for example, jar: /usr/libexec/ld-elf.so.1: /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so: Undefined symbol "gmtime_r" I cleaned my LD_LIBRARY_PATH of jdk info as you suggested, but this doesn't change the behavior. moreover, I added echo statments in .java-wrapper to display the (script-set) CLASSPATH and LD_LIBRARY_PATH just before calling the binary, and the jdk directories have been added correctly by the script. any further suggestion would be much appreciated! thanks Gianluca -----Messaggio originale----- Da: Nate Williams A: Gianluca Torta Cc: freebsd-java@FreeBSD.ORG Data: Saturday, October 30, 1999 8:21 AM Oggetto: Re: Undefined symbol gmtime_r with jdk1.1.8 >> My PATH, CLASSPATH and dynamic library search path (ldconfig -r) seem to be >> set correctly, and in particular, libc_r.so (which contains gmtime_r symbol) >> is in the search path for .so >> Ah... one more information: since I use FreeBSD3.0, I'm using the elf >> version of jdk binaries. > >Sounds like LD_LIBRARY_PATH is setup incorrectly. Note, it should not >be setup at all for running the JDK, the scripts set it up for you. > >The symbol gmtime_r is *NOT* gotten out of any of the standard libraries >(such as libc_r), but is part of the java libraries. We don't use >libc_r for *ANYTHING*, and if the symbols are pulled out of it then >something is wrong in your setup. > >Also, ldconfig should't be pointed to any of the JDK libraries or JDK >library directories, again because the scripts do this already the right >way. > > > > >Nate > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message