comp.lang.ada
 help / color / mirror / Atom feed
From: Lars-Ove Kvalstein <lars-o-k@online.no>
Subject: Gnat 3.11 on Linux problem
Date: 1999/10/21
Date: 1999-10-21T00:00:00+00:00	[thread overview]
Message-ID: <380F5082.DB08031D@online.no> (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.







                 reply	other threads:[~1999-10-21  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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