comp.lang.ada
 help / color / mirror / Atom feed
* gnat : "ada.calendar.formatting" is not a predefined library
@ 2008-04-24 16:29 Sébastien
  2008-04-24 17:12 ` Tero Koskinen
  0 siblings, 1 reply; 11+ messages in thread
From: Sébastien @ 2008-04-24 16:29 UTC (permalink / raw)


Hi,

When I try to compile aws, I get the following message:

mscm@routeur:~/gnat/aws/AWS-gpl-2.3.0$ make build
Building libz.a (Zlib library)
gnatmake: objects up to date.
gnatmake: objects up to date.
gcc-4.2 -c -gnat05 -gnatwcfijkmruv -gnaty3abcefhiklmnoprstx -Wall -O2 
-gnatn -I- -gnatA 
/var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb
aws-services-dispatchers-timer.ads:31:06: "ADA.CALENDAR.FORMATTING" is 
not a predefined library unit
aws-services-dispatchers-timer.ads:31:06: 
"AWS.SERVICES.DISPATCHERS.TIMER (body)" depends on 
"AWS.SERVICES.DISPATCHERS.TIMER (spec)"
aws-services-dispatchers-timer.ads:31:06: 
"AWS.SERVICES.DISPATCHERS.TIMER (spec)" depends on 
"ADA.CALENDAR.FORMATTING (spec)"
gnatmake: 
"/var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb" 
compilation error
make[1]: *** [build] Error 4
make: *** [src_build] Error 2

I try the following sample test:

with Ada.Calendar.Formatting;

procedure test is
begin
         Ada.Text_IO.Put_Line("test");
end test;

And get at compile time:
mscm@routeur:~/gnat/aws$ gcc -gnat05 -c test.adb
test.adb:1:06: "ada.calendar.formatting" is not a predefined library unit

I'm under ubuntu, and it looks like something is missing in gnat, how to 
fix it?

I'm using :
mscm@routeur:~/gnat/aws$ gnat
GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6)
Copyright 1996-2006, Free Software Foundation, Inc.


Thanks,
Sebastien



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-24 16:29 gnat : "ada.calendar.formatting" is not a predefined library Sébastien
@ 2008-04-24 17:12 ` Tero Koskinen
  2008-04-25  7:38   ` Ludovic Brenta
  0 siblings, 1 reply; 11+ messages in thread
From: Tero Koskinen @ 2008-04-24 17:12 UTC (permalink / raw)


Hello,

On Thu, 24 Apr 2008 16:29:31 +0000 Sébastien wrote:
> Hi,
> 
> When I try to compile aws, I get the following message:
> /var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb
> aws-services-dispatchers-timer.ads:31:06: "ADA.CALENDAR.FORMATTING" is 
> not a predefined library unit
> 
> I'm under ubuntu, and it looks like something is missing in gnat, how to 
> fix it?
> 
> GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6)

GNAT 4.2.1 does not fully support all Ada 2005 features.

Try FSF GNAT 4.3 or GNAT GPL 2007. They have better support.
Alternatively, use AWS 2.2.0. It should compile with GNAT 4.2.1.

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-24 17:12 ` Tero Koskinen
@ 2008-04-25  7:38   ` Ludovic Brenta
  2008-04-25  7:44     ` Sebastien Morand
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Brenta @ 2008-04-25  7:38 UTC (permalink / raw)


Tero Koskinen wrote:
> Hello,
>
> On Thu, 24 Apr 2008 16:29:31 +0000 S�bastien wrote:
> > Hi,
> >
> > When I try to compile aws, I get the following message:
> > /var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb
> > aws-services-dispatchers-timer.ads:31:06: "ADA.CALENDAR.FORMATTING" is
> > not a predefined library unit
> >
> > I'm under ubuntu, and it looks like something is missing in gnat, how to
> > fix it?
> >
> > GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6)
>
> GNAT 4.2.1 does not fully support all Ada 2005 features.
>
> Try FSF GNAT 4.3 or GNAT GPL 2007. They have better support.
> Alternatively, use AWS 2.2.0. It should compile with GNAT 4.2.1.

<plug>
Alternatively, switch to Debian which has gnat-4.3 in testing, and
participate in upgrading the existing libaws 2.2 package to 2.3 :)
</plug>

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25  7:38   ` Ludovic Brenta
@ 2008-04-25  7:44     ` Sebastien Morand
  2008-04-25  8:16       ` Ludovic Brenta
  0 siblings, 1 reply; 11+ messages in thread
From: Sebastien Morand @ 2008-04-25  7:44 UTC (permalink / raw)


> <plug>
> Alternatively, switch to Debian which has gnat-4.3 in testing, and
> participate in upgrading the existing libaws 2.2 package to 2.3 :)
> </plug>

I'm under ubuntu and that's a professional machine, so I can't (and really I would).

At home, I'm using FreeBSD, I'll give a try tonight.

Sebastien



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25  7:44     ` Sebastien Morand
@ 2008-04-25  8:16       ` Ludovic Brenta
  2008-04-25  8:47         ` Sébastien
  2008-04-25 15:43         ` Georg Bauhaus
  0 siblings, 2 replies; 11+ messages in thread
From: Ludovic Brenta @ 2008-04-25  8:16 UTC (permalink / raw)


Sebastien Morand wrote:
> > <plug>
> > Alternatively, switch to Debian which has gnat-4.3 in testing, and
> > participate in upgrading the existing libaws 2.2 package to 2.3 :)
> > </plug>
>
> I'm under ubuntu and that's a professional machine, so I can't (and really I would).

If you're going to be "professional", you should use the packages that
come with the "professional" distro. So, your best option is to fall
back on libaws-dev 2.2 and gnat-4.1 which come as part of Ubuntu. The
version after today's 8.04 will probably have gnat-4.3 and libaws 2.3.

> At home, I'm using FreeBSD, I'll give a try tonight.
>
> Sebastien

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25  8:16       ` Ludovic Brenta
@ 2008-04-25  8:47         ` Sébastien
  2008-04-25 15:43         ` Georg Bauhaus
  1 sibling, 0 replies; 11+ messages in thread
From: Sébastien @ 2008-04-25  8:47 UTC (permalink / raw)



> If you're going to be "professional", you should use the packages that
> come with the "professional" distro. So, your best option is to fall
> back on libaws-dev 2.2 and gnat-4.1 which come as part of Ubuntu. The
> version after today's 8.04 will probably have gnat-4.3 and libaws 2.3.

You are completly right, I didn't even check if there was some compiled 
version. I'm going to open an other thread about missing standard lib 
stuff anyway :-)

Thanks for you help.

Sebastien



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25  8:16       ` Ludovic Brenta
  2008-04-25  8:47         ` Sébastien
@ 2008-04-25 15:43         ` Georg Bauhaus
  2008-04-25 21:07           ` Ludovic Brenta
  1 sibling, 1 reply; 11+ messages in thread
From: Georg Bauhaus @ 2008-04-25 15:43 UTC (permalink / raw)


Ludovic Brenta wrote:

> If you're going to be "professional", you should use the packages that
> come with the "professional" distro. So, your best option is to fall
> back on libaws-dev 2.2 and gnat-4.1 which come as part of Ubuntu. The
> version after today's 8.04 will probably have gnat-4.3 and libaws 2.3.

8.04 LTS has gnat-4.2.3 and libaws 2.2.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25 15:43         ` Georg Bauhaus
@ 2008-04-25 21:07           ` Ludovic Brenta
  2008-04-26  8:28             ` Georg Bauhaus
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Brenta @ 2008-04-25 21:07 UTC (permalink / raw)


Georg Bauhaus writes:
> Ludovic Brenta wrote:
>
>> If you're going to be "professional", you should use the packages that
>> come with the "professional" distro. So, your best option is to fall
>> back on libaws-dev 2.2 and gnat-4.1 which come as part of Ubuntu. The
>> version after today's 8.04 will probably have gnat-4.3 and libaws 2.3.
>
> 8.04 LTS has gnat-4.2.3 and libaws 2.2.

Which are ABI incompatible with each other.

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-25 21:07           ` Ludovic Brenta
@ 2008-04-26  8:28             ` Georg Bauhaus
  2008-04-26 11:53               ` Ludovic Brenta
  0 siblings, 1 reply; 11+ messages in thread
From: Georg Bauhaus @ 2008-04-26  8:28 UTC (permalink / raw)


Ludovic Brenta wrote:
> Georg Bauhaus writes:
>> 8.04 LTS has gnat-4.2.3 and libaws 2.2.
> 
> Which are ABI incompatible with each other.

Looking more closely, libaws2.2 depends on libgnat-4.1.
This is resolved by Debian's package system. (libaws2.2
claims to depend on libldap2, too, which is not available
with Ubuntu 8.04 LTS at this time.)

The unnumbered package "gnat" will install GNAT 4.2.3.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-26  8:28             ` Georg Bauhaus
@ 2008-04-26 11:53               ` Ludovic Brenta
  2008-04-27 21:41                 ` Sebastien Morand
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Brenta @ 2008-04-26 11:53 UTC (permalink / raw)


Georg Bauhaus writes:
> Ludovic Brenta wrote:
>> Georg Bauhaus writes:
>>> 8.04 LTS has gnat-4.2.3 and libaws 2.2.
>> 
>> Which are ABI incompatible with each other.
>
> Looking more closely, libaws2.2 depends on libgnat-4.1.
> This is resolved by Debian's package system. (libaws2.2
> claims to depend on libldap2, too, which is not available
> with Ubuntu 8.04 LTS at this time.)

Talk about a "professional" distribution :)

> The unnumbered package "gnat" will install GNAT 4.2.3.

I don't know what Ubuntu changed to gcc-defaults but, in Debian, in
gcc-defaults version 1.64 I made gnat-4.3 the default on all
architectures; version 1.66 reverted to gnat-4.2 on alpha, mips and
mipsel without consulting with me, and 1.70 finally reverted that,
thereby completing the transition to gnat-4.3 as the default on all
architectures.

I never intended gnat-4.2 to be the default on any architecture and
Ubuntu diverges from Debian and risks breaking package dependencies.
So, at this point, I am forced to recommend against Ubuntu 8.04 for
Ada development.  Previous versions are OK since they follow the
policy for all Ada packages.  If you want a stable Ada development
platform, get Debian stable, which has "long term support" built in.

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnat : "ada.calendar.formatting" is not a predefined library
  2008-04-26 11:53               ` Ludovic Brenta
@ 2008-04-27 21:41                 ` Sebastien Morand
  0 siblings, 0 replies; 11+ messages in thread
From: Sebastien Morand @ 2008-04-27 21:41 UTC (permalink / raw)


> I never intended gnat-4.2 to be the default on any architecture and
> Ubuntu diverges from Debian and risks breaking package dependencies.
> So, at this point, I am forced to recommend against Ubuntu 8.04 for
> Ada development.  Previous versions are OK since they follow the
> policy for all Ada packages.  If you want a stable Ada development
> platform, get Debian stable, which has "long term support" built in.

I'm quite agree with you, I successfully installed aws on freebsd recompiling 
it, but I had to correct some stuff in the aws-2.3.0 and xmlada code . In any 
case, I just was able to compile it with gcc43, because some standard ada 
library were missing in gcc41 and gcc42.

Now, I just have to try it :-)



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-04-27 21:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-24 16:29 gnat : "ada.calendar.formatting" is not a predefined library Sébastien
2008-04-24 17:12 ` Tero Koskinen
2008-04-25  7:38   ` Ludovic Brenta
2008-04-25  7:44     ` Sebastien Morand
2008-04-25  8:16       ` Ludovic Brenta
2008-04-25  8:47         ` Sébastien
2008-04-25 15:43         ` Georg Bauhaus
2008-04-25 21:07           ` Ludovic Brenta
2008-04-26  8:28             ` Georg Bauhaus
2008-04-26 11:53               ` Ludovic Brenta
2008-04-27 21:41                 ` Sebastien Morand

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