comp.lang.ada
 help / color / mirror / Atom feed
* Problem with GNAT GPL 2006 win32ada bindings
@ 2006-06-18 10:03 Ross Higson
  2006-06-18 21:22 ` Anh Vo
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Higson @ 2006-06-18 10:03 UTC (permalink / raw)


Hi,

I'm having a problem building the example programs included with GNAT 
GPL 2006 win32ada bindings. I have installed both the compiler and the 
win32ada bindings (to H:\GNAT\GPL_2006), and they appear to install 
correctly. But when I attempt to build any of the example programs I get 
link errors. For example, using the command:

gnatmake -Pconnect.gpr

I get the following output:

gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connect.adb
gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connectpkg.adb
gnatbind -I- -x h:\gnat\gpl_2006\examples\connect\connect.ali
gnatlink h:\gnat\gpl_2006\examples\connect\connect.ali -o 
h:\gnat\gpl_2006\examples\connect\connect.exe
H:\GNAT\GPL_2006\bin\..\libexec\gcc\pentium-mingw32msv\3.4.6\ld.exe: 
cannot find -lwin32ada
gnatlink: cannot call H:\GNAT\GPL_2006\bin\gcc.exe
gnatmake: *** link failed.

The win32ada library that the linker seems to be looking for does not 
exist in either the GPL 2006 distribution or the win32ada distribution 
even though it is explicitly referenced by 'win32.ads'. If I copy this 
library from my GNAT 3.15p installation the program compiles and links 
correctly. Has Adacore accidentally left this file out of the win32ada 
bindings, or am I doing something wrong?

Thanks.



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

* Re: Problem with GNAT GPL 2006 win32ada bindings
  2006-06-18 10:03 Problem with GNAT GPL 2006 win32ada bindings Ross Higson
@ 2006-06-18 21:22 ` Anh Vo
  2006-06-19  8:28   ` Ross Higson
  0 siblings, 1 reply; 6+ messages in thread
From: Anh Vo @ 2006-06-18 21:22 UTC (permalink / raw)



Ross Higson wrote:
> Hi,
>
> I'm having a problem building the example programs included with GNAT
> GPL 2006 win32ada bindings. I have installed both the compiler and the
> win32ada bindings (to H:\GNAT\GPL_2006), and they appear to install
> correctly. But when I attempt to build any of the example programs I get
> link errors. For example, using the command:
>
> gnatmake -Pconnect.gpr
>
> I get the following output:
>
> gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connect.adb
> gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connectpkg.adb
> gnatbind -I- -x h:\gnat\gpl_2006\examples\connect\connect.ali
> gnatlink h:\gnat\gpl_2006\examples\connect\connect.ali -o
> h:\gnat\gpl_2006\examples\connect\connect.exe
> H:\GNAT\GPL_2006\bin\..\libexec\gcc\pentium-mingw32msv\3.4.6\ld.exe:
> cannot find -lwin32ada
> gnatlink: cannot call H:\GNAT\GPL_2006\bin\gcc.exe
> gnatmake: *** link failed.
>
> The win32ada library that the linker seems to be looking for does not
> exist in either the GPL 2006 distribution or the win32ada distribution
> even though it is explicitly referenced by 'win32.ads'. If I copy this
> library from my GNAT 3.15p installation the program compiles and links
> correctly. Has Adacore accidentally left this file out of the win32ada
> bindings, or am I doing something wrong?

It happened to me, too. I plan to send a bug report tomorrow. In the
mean time, my workaround is to archive the all the object files of
win32ada binding to create libwin32ada.a. Then, I place it at the same
location of other librariies.

AV




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

* Re: Problem with GNAT GPL 2006 win32ada bindings
  2006-06-18 21:22 ` Anh Vo
@ 2006-06-19  8:28   ` Ross Higson
  2006-06-19 10:42     ` Ross Higson
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Higson @ 2006-06-19  8:28 UTC (permalink / raw)


Anh Vo wrote:
> It happened to me, too. I plan to send a bug report tomorrow. In the
> mean time, my workaround is to archive the all the object files of
> win32ada binding to create libwin32ada.a. Then, I place it at the same
> location of other librariies.
> 

Hmmm. I tried to follow your suggestion by using 'ar' to create a 
replacement libwin32ada.a from all the objects in my 
'H:\GNAT\GPL_2006\lib\gnat\win32ada\obj' directory and used it to 
replace the GNAT 3.15p version of libwin32ada.a.

Now I get other errors, such as:

h:\gnat\gpl_2006\lib\gnat\win32ada\obj\win32-winuser.o:win32-winuser.adb:
(.text+0x1049): undefined reference to `do_varargs'

Can you give me some more detail on exactly how you made your libwin32ada.a?

Thanks.



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

* Re: Problem with GNAT GPL 2006 win32ada bindings
  2006-06-19  8:28   ` Ross Higson
@ 2006-06-19 10:42     ` Ross Higson
  2006-06-19 15:07       ` Anh Vo
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Higson @ 2006-06-19 10:42 UTC (permalink / raw)


Ross Higson wrote:
> Anh Vo wrote:
>> It happened to me, too. I plan to send a bug report tomorrow. 
> 
An update - I also contacted Adacore and just got a reply indicating 
that the problems I had with the GNAT GPL 2006 win32ada bindings is due 
to <quote> a packaging glitch which will be corrected soon </quote>.



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

* Re: Problem with GNAT GPL 2006 win32ada bindings
  2006-06-19 10:42     ` Ross Higson
@ 2006-06-19 15:07       ` Anh Vo
  2006-06-20 17:06         ` Anh Vo
  0 siblings, 1 reply; 6+ messages in thread
From: Anh Vo @ 2006-06-19 15:07 UTC (permalink / raw)



Ross Higson wrote:
> Ross Higson wrote:
> > Anh Vo wrote:
> >> It happened to me, too. I plan to send a bug report tomorrow.
> >
> An update - I also contacted Adacore and just got a reply indicating
> that the problems I had with the GNAT GPL 2006 win32ada bindings is due
> to <quote> a packaging glitch which will be corrected soon </quote>.

Thanks for your info. It saves me from sending a bug report.




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

* Re: Problem with GNAT GPL 2006 win32ada bindings
  2006-06-19 15:07       ` Anh Vo
@ 2006-06-20 17:06         ` Anh Vo
  0 siblings, 0 replies; 6+ messages in thread
From: Anh Vo @ 2006-06-20 17:06 UTC (permalink / raw)


Anh Vo wrote:
> Ross Higson wrote:
> > Ross Higson wrote:
> > > Anh Vo wrote:
> > >> It happened to me, too. I plan to send a bug report tomorrow.
> > >
> > An update - I also contacted Adacore and just got a reply indicating
> > that the problems I had with the GNAT GPL 2006 win32ada bindings is due
> > to <quote> a packaging glitch which will be corrected soon </quote>.
>
> Thanks for your info. It saves me from sending a bug report.

The fix is in. It works fine now.




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

end of thread, other threads:[~2006-06-20 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-18 10:03 Problem with GNAT GPL 2006 win32ada bindings Ross Higson
2006-06-18 21:22 ` Anh Vo
2006-06-19  8:28   ` Ross Higson
2006-06-19 10:42     ` Ross Higson
2006-06-19 15:07       ` Anh Vo
2006-06-20 17:06         ` Anh Vo

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