From owner-freebsd-questions@FreeBSD.ORG Wed Nov 11 20:04:01 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42C371065670 for ; Wed, 11 Nov 2009 20:04:01 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 096FD8FC1A for ; Wed, 11 Nov 2009 20:04:00 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id nABK40Tv083887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 Nov 2009 14:04:00 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id nABK3xT1079186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 Nov 2009 14:03:59 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id nABK3xUM079154; Wed, 11 Nov 2009 14:03:59 -0600 (CST) (envelope-from dan) Date: Wed, 11 Nov 2009 14:03:59 -0600 From: Dan Nelson To: Frank Staals Message-ID: <20091111200359.GH89052@dan.emsphone.com> References: <4AFB0601.6020902@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AFB0601.6020902@gmx.net> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Wed, 11 Nov 2009 14:04:00 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: questions@freebsd.org Subject: Re: FFTW + jna + java X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2009 20:04:01 -0000 In the last episode (Nov 11), Frank Staals said: > > I'm trying to run a java application which uses JNA to use the native FFTW > libraries. The application was given as a netbeans project which was > configured for use in Windows. I changed the paths to the windows > libraries to the FreeBSD versions. However when I try to start the > application from within netbeans it crashes with the following error > message: > > /libexec/ld-elf.so.1: /usr/local/lib/librfftw.so: Undefined symbol > "fftwnd_create_plan_aux" That symbol is defined in libfftw.so; it looks like the librfftw.so builder forgot to add a link dependency to fftw (if you run "ldd /usr/local/lib/librfftw.so", you can see there are dependencies on libc and libm, but not fftw). Depending on how jna access shared libraries, you might be able to work around it by having jna load the fftw library before rfftw. -- Dan Nelson dnelson@allantgroup.com