From owner-freebsd-questions Tue Sep 5 8:57:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 24A4E37B43F for ; Tue, 5 Sep 2000 08:57:12 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e85FuNw04187; Tue, 5 Sep 2000 08:56:23 -0700 (PDT) Date: Tue, 5 Sep 2000 08:56:23 -0700 From: Alfred Perlstein To: "O. Hartmann" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Lahey Fortran95 and FreeBSD/Linux Emulation Message-ID: <20000905085623.M18862@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from ohartman@ipamzlx.physik.uni-mainz.de on Tue, Sep 05, 2000 at 02:31:56PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * O. Hartmann [000905 05:29] wrote: > Dear Sirs. > We use here in our department some Lahey Fortran 95 compilers, mostly for > WinNT clients and a few for Linux boxes. Because of unifying our structures > and because of the mainservers are FreeBSD boxes, we want to move the > Lahey installation on a central FBSD box. > > My first steps with Linux Emulation and the Fortran95 compiler were not > very satisfying, because I forgot to "brand" the Lahey binaries to be Linux > typed binaries. After doing that the compiler works, but with the first > steps of doing something I got some problems. > > We have a little demo environment here, I got it from one of our scientists > and this compiles under Linux. Under FreeBSD, Lahey F95 compiler produces theses > errors, which seems to be some problems in finding systemcalls not provided by > some libraries: > > lf95 DDSCAT.o alpha.o dummyfft.o ccgpack.o cfft99f.o cgcommon.o copyit.o cprod.o cxfft3.o cxfft3n.o dielec.o divide.o errmsg.o eself.o evala.o evale.o evalq.o extend.o fourx.o getfml.o getmueller.o gpfa.o interp.o lapack.o namer.o nuller.o orient.o pim.o prinaxis.o reapar.o reashp.o reduce.o refice.o refwat.o rotate.o rot2.o scat.o scavec.o tar2el.o tar2sp.o tar3el.o tarblocks.o tarcel.o tarcyl.o tarell.o target.o tarhex.o tarrec.o tarrec2.o tartet.o timeit_sun.o version.o wrimsg.o writebin.o dummywritenet.o writesca.o -o ddscat > /usr/local/lf9555/bin/../lib/libfj9i6.so: warning: tempnam() possibly used unsafely; consider using mkstemp() > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stdout' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__ctype_b' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stdout_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stderr_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `___brk_addr' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__environ' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stdin_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stdin' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_getc' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stderr' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__errno_location' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_putc' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__ctype_tolower' > /usr/local/lf9555/bin/../lib/libfj9i6.so: warning: tempnam() possibly used unsafely; consider using mkstemp() > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stdout' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__ctype_b' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stdout_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stderr_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `___brk_addr' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__environ' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_stdin_' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stdin' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_getc' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `stderr' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__errno_location' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `_IO_putc' > /usr/local/lf9555/bin/../lib/libfj9i6.so: undefined reference to `__ctype_tolower' > > If there is someone out here with experiences or solutions or hints or tips, > please contact me, thanks. These aren't system calls they are symbols probably exported by glibc, (tyhe Linux standard C library), to get around this I would try installing /usr/ports/devel/linux_devtools, and trying to find a way to inform the Lahey compiler to use the Linux tools and link with the linux libraries. Another option would be to contact Lahey and ask them for some help. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message