Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2000 19:14:27 +0200 (CEST)
From:      "O. Hartmann" <ohartman@ipamzlx.physik.uni-mainz.de>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Lahey Fortran95 and FreeBSD/Linux Emulation
Message-ID:  <Pine.BSF.4.21.0009051909300.58497-100000@ipamzlx.physik.uni-mainz.de>
In-Reply-To: <20000905085623.M18862@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Sep 2000, Alfred Perlstein wrote:

:>* O. Hartmann <ohartman@ipamzlx.physik.uni-mainz.de> [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
:>
Dear Mr. Perlstein.
Well, thank you for your hint! I installed the port linux_devtools and - the devil knows,
the Lahey F95 compiler works and compiles without any errors.

But starting the binary this reports not finding libfj9i6.so, and I do not know why.
The binary is branded to be Linux, the /usr/local/lf9555/lib path is part of ldconfig
and I added a row to /compat/linux/etc/ld.so.conf, so paths to the appropriate shared
object should already exists.

The error is:

	ddscat: error in loading shared libraries: libfj9i6.so.1: cannot open shared object file: No such file or directory

Well, if you have another hint left for me, please send it, I will contact Lahey, too.

Thanks a lot.
Gruss O. Hartmann
-------------------------------------------------------------------
ohartman@ipamzlx.physik.uni-mainz.de

Klimadatenserver des IPA, Universitaet Mainz
Netzwerk- und Systembetreuung



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009051909300.58497-100000>