comp.lang.ada
 help / color / mirror / Atom feed
* Gnat 3.11 on Linux problem
@ 1999-10-21  0:00 Lars-Ove Kvalstein
  0 siblings, 0 replies; only message in thread
From: Lars-Ove Kvalstein @ 1999-10-21  0:00 UTC (permalink / raw)


I have a PC with Caldera Open Linux 2.3. I have just installed it, and
I'm new to
Linux. But I would like the Gnat Ada 95 compiler to run on it. This
little test
program should be OK, but look at the linker error below.

I have set the ADA_OBJECTS_PATH and ADA_INCLUDE_PATH according to the
doconfig
installation script, but this is perhaps not neccessary when I installed
it to
standard locations. The adalib directory referenced by gnatlink contains
only ali-
files and no .o files. Is this correct?

On my NT, Windows 95 and Solaris 2.4 Gnat 3.11 works fine.

By the way!. I had also trouble compiling a simple C++ program.
Compiling with gcc
gave me a program which only return "segmentation fault". But the
command g++ compiled
a program which was OK. Is g++ another program, and is this gcc problem
connected to
the Ada problem.

Help on this would be very helpful. Thanks!.


with text_io;
use text_io;

procedure test is
begin
   put_line("Hello world");
   new_line;
end test;

GNATMAKE 3.11p  (981118) Copyright 1995-1998 Free Software Foundation,
Inc.
  "test.ali" being checked ...
  "test" missing.
gnatbind -x test.ali
gnatlink test.ali
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `locate_regular_file':
a-adaint.o(.text+0x34): undefined reference to `_xstat'
a-adaint.o(.text+0x1a5): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `file_length':
a-adaint.o(.text+0x495): undefined reference to `_fxstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `file_time_name':
a-adaint.o(.text+0x501): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `file_time_fd':
a-adaint.o(.text+0x51d): undefined reference to `_fxstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `file_exists':
a-adaint.o(.text+0x5a9): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `is_regular_file':
a-adaint.o(.text+0x5cd): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `is_directory':
a-adaint.o(.text+0x85d): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-adaint.o):
In function `is_writable_file':
a-adaint.o(.text+0x891): undefined reference to `_xstat'
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/adalib//libgnat.a(a-cstrea.o):
In function `is_regular_file_fd':
a-cstrea.o(.text+0x41): undefined reference to `_fxstat'
gnatmake: *** link failed.







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-21  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-21  0:00 Gnat 3.11 on Linux problem Lars-Ove Kvalstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox