From: Rob Solomon <usenet@drrob1-noreply.com>
Subject: Re: text tools
Date: Mon, 19 Oct 2009 22:25:55 -0400
Date: 2009-10-19T22:25:55-04:00 [thread overview]
Message-ID: <bq7qd55dfvq0ckmmjsadooq6p5senpprbq@4ax.com> (raw)
In-Reply-To: 918b3ebe-ec1b-4334-ac6c-8a1fb5b9f2ee@k4g2000yqb.googlegroups.com
On Mon, 19 Oct 2009 01:12:13 -0700 (PDT), Ludovic Brenta
<ludovic@ludovic-brenta.org> 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.
next prev parent reply other threads:[~2009-10-20 2:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 23:55 text tools Rob Solomon
2009-10-19 8:09 ` Stephen Leake
2009-10-19 8:12 ` Ludovic Brenta
2009-10-19 21:27 ` Rob Solomon
2009-10-19 22:06 ` Ludovic Brenta
2009-10-20 0:13 ` Rob Solomon
2009-10-20 2:25 ` Rob Solomon [this message]
2009-10-20 9:28 ` Ludovic Brenta
2009-10-20 17:49 ` Ludovic Brenta
2009-10-20 23:14 ` Rob Solomon
2009-10-21 0:39 ` Rob Solomon
2009-10-21 8:06 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox