Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2000 08:56:23 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "O. Hartmann" <ohartman@ipamzlx.physik.uni-mainz.de>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Lahey Fortran95 and FreeBSD/Linux Emulation
Message-ID:  <20000905085623.M18862@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.21.0009051414100.58497-100000@ipamzlx.physik.uni-mainz.de>; from ohartman@ipamzlx.physik.uni-mainz.de on Tue, Sep 05, 2000 at 02:31:56PM %2B0200
References:  <Pine.BSF.4.21.0009051414100.58497-100000@ipamzlx.physik.uni-mainz.de>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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


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?20000905085623.M18862>