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!news2.google.com!news.glorb.com!news2.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-03.dc1.easynews.com.POSTED!not-for-mail From: Rob Solomon Newsgroups: comp.lang.ada Subject: Re: text tools Message-ID: References: <918b3ebe-ec1b-4334-ac6c-8a1fb5b9f2ee@k4g2000yqb.googlegroups.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@easynews.com Organization: Forte Inc. http://www.forteinc.com/apn/ X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Mon, 19 Oct 2009 22:25:55 -0400 Xref: g2news2.google.com comp.lang.ada:8740 Date: 2009-10-19T22:25:55-04:00 List-Id: On Mon, 19 Oct 2009 01:12:13 -0700 (PDT), Ludovic Brenta wrote: >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 >> >> � �for Source_Dirs use ("./**", >> � � � � � � � � � � � � "/usr/share/ada/adainclude/texttools/**"); >> � �for Main use ("basic.adb"); >> � �package Builder is >> � � � for Default_Switches ("Ada") use ("-x"); >> � �end Builder; >> � �package Compiler is >> � � �for Switches("basic") use ("-x"); >> � �end Compiler; >> � �package Linker is >> � � � for Default_Switches ("Ada") use ("-lm", >> � � � � � � � � � � � � � � � � � � � � "-lcurses"); >> � �end 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-libraries > >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. The following basic.gpr is not working either: with "texttools"; project basic is for Source_Dirs use ("."); for Object_dir use "obj"; for Exec_Dir use "."; for Main use ("basic"); package Linker is for Default_Switches ("Ada") use ("/usr/lib/libtexttools.a"); end linker; end basic; I tried this without first and then with the package Linker clause. Neither works. I get very similar errors to the first time I posted, w/ lots of undefined and unlinkable symbols.