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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,57d6726df7b9ad13 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k4g2000yqb.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: text tools Date: Mon, 19 Oct 2009 01:12:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <918b3ebe-ec1b-4334-ac6c-8a1fb5b9f2ee@k4g2000yqb.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1255939933 3403 127.0.0.1 (19 Oct 2009 08:12:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 19 Oct 2009 08:12:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k4g2000yqb.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8728 Date: 2009-10-19T01:12:13-07:00 List-Id: Rib Solomon wrote on comp.lang.ada: [on Ubuntu 9.04] [lots snipped] > windows.adb:(.text+0x386af): undefined reference to `CDesktop' > collect2: ld returned 1 exit status > gnatlink: error when calling /usr/bin/gcc-4.3 > gnatmake: *** link failed. > > [2009-10-18 15:48:54] process exited with status4 (elapsed time: 20.64s) > > The following is the contents of my basic.gpr file > basic.gpr > project Basic is > > =A0 =A0for Source_Dirs use ("./**", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "/usr/share/ada/adainclud= e/texttools/**"); > =A0 =A0for Main use ("basic.adb"); > =A0 =A0package Builder is > =A0 =A0 =A0 for Default_Switches ("Ada") use ("-x"); > =A0 =A0end Builder; > =A0 =A0package Compiler is > =A0 =A0 =A0for Switches("basic") use ("-x"); > =A0 =A0end Compiler; > =A0 =A0package Linker is > =A0 =A0 =A0 for Default_Switches ("Ada") use ("-lm", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 "-lcurses"); > =A0 =A0end Linker; > > end Basic; This is wrong and is almost certainly the cause for all your problems. Please read the contents of /usr/share/ada/adainclude/texttools.gpr for instructions on how to properly use the installed package. For background information, please read the Debian Policy for Ada[1], chapter 5 "Using shared libraries". [1] http://people.debian.org/~lbrenta/debian-ada-policy.html#Using-shared-l= ibraries Also, you should not have the sources of TextTools in your home directory, only the examples you wish to compile. By the way, I have been looking for a new maintainer for this package for 18 months now. If nobody steps up, I will request removal of this package and it will not be in the next release of Debian, to be frozen in March 2010 and released some time later. -- Ludovic Brenta.