From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c716affa7c806571,start X-Google-Attributes: gid103376,public From: Lars-Ove Kvalstein Subject: Gnat 3.11 on Linux problem Date: 1999/10/21 Message-ID: <380F5082.DB08031D@online.no>#1/1 X-Deja-AN: 538930441 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 940527571 130.67.65.244 (Thu, 21 Oct 1999 19:39:31 MET DST) Organization: Telenor Online Public Access MIME-Version: 1.0 NNTP-Posting-Date: Thu, 21 Oct 1999 19:39:31 MET DST Newsgroups: comp.lang.ada Date: 1999-10-21T00:00:00+00:00 List-Id: 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.