comp.lang.ada
 help / color / mirror / Atom feed
From: Fernando Oleo Blanco <irvise_ml@irvise.xyz>
Subject: Re: Help: Ada in NetBSD
Date: Mon, 30 Aug 2021 10:14:05 +0200	[thread overview]
Message-ID: <sgi40d$1red$1@gioia.aioe.org> (raw)
In-Reply-To: 7b5879f1-6d8a-46d7-b761-82c9cf483984n@googlegroups.com

On 30.08.21 00:08, Stephane Carrez wrote:
> Hi!
> 
> The reason for the symbol change is some NetBSD libc change in the signature of some system calls.
> Some information in: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libc/README

Thank you very much for the link. It does explain quite a few things


 > Simon is right, the symbol used by the Ada import statement must be 
renamed.

> The __gettimeofday50 is the new function signature while _gettimeofday is the old one.
> The gettimeofday is the weak alias to _gettimeofday and produces the warning.
> 
> Beware that the symbol name that you specify for some import statement is platform specific.
> Having a different symbol names for NetBSD is quite common.

However, I still would say that is not right. Here is my 
reasoning/arguments:

- All programs would have to be corrected just for NetBSD if the linker 
does not do the alias translation automatically.

- I think the linker is doing the aliasing correctly, meaning, that any 
program that references such functions directly, get linked correctly to 
the actual implementation. After all, the alias is just another 
identifier for the actual function.

- The linker does not complain when linking these files during the 
compilation of GCC.

- JMarino's gcc6-aux does not use an special identifier. It also uses 
the "normal" function name directly and it compiles and works. See: 
https://github.com/NetBSD/pkgsrc/blob/27a8f94efc02f33007d20a4ba6a8aaa369361b95/lang/gcc6-aux/files/diff-ada#L1584 
for another function that gets "renamed". It just works.

The last point is what makes me _very_ hesitant about this issue. Why 
would it work for JMarino's gcc and not mine? I have compiled JMarino's 
port in the same system.

I may be missing some other fix in some other part...

Anyhow, for the time being, I want to get this working. I will try this 
fix and see if it solves the issue.

> Thanks for the link to the NetBSD git sources, I'm trying to build and keep you informed in my progress :-)
> 
> Stephane
> 

Great!

Regards,
-- 
Fernando Oleo Blanco
https://irvise.xyz

  parent reply	other threads:[~2021-08-30  8:14 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 11:06 Help: Ada in NetBSD Fernando Oleo Blanco
2021-08-29 13:19 ` Stephane Carrez
2021-08-29 18:08   ` Fernando Oleo Blanco
2021-08-29 18:25     ` Simon Wright
2021-08-29 20:36       ` Fernando Oleo Blanco
2021-08-29 22:08         ` Stephane Carrez
2021-08-30  7:37           ` Simon Wright
2021-08-30  8:14           ` Fernando Oleo Blanco [this message]
2021-08-30 10:24             ` Fernando Oleo Blanco
2021-08-30 12:15               ` Fernando Oleo Blanco
2021-08-30 18:49                 ` Fernando Oleo Blanco
2021-08-30 19:23                   ` Simon Wright
2021-09-01  9:44                     ` Fernando Oleo Blanco
2021-09-01 21:41                       ` Simon Wright
2021-09-02 22:16                       ` Randy Brukardt
2021-09-03 20:18                         ` Simon Wright
2021-08-29 17:34 ` Simon Wright
2021-08-29 17:45   ` Fernando Oleo Blanco
2021-09-01 13:28 ` John R. Marino
2021-09-01 14:58   ` Fernando Oleo Blanco
2021-09-17 17:36     ` Fernando Oleo Blanco
2021-09-18 16:39       ` Fernando Oleo Blanco
2021-09-22 20:05         ` Fernando Oleo Blanco
2021-09-22 20:57           ` Simon Wright
2021-09-23  8:04           ` Luke A. Guest
2021-09-23 10:48             ` Kevin Chadwick
2021-09-23 17:01               ` Fernando Oleo Blanco
2021-09-23 17:04             ` Fernando Oleo Blanco
2021-09-23 19:53           ` Fernando Oleo Blanco
2021-09-24  7:48             ` Simon Wright
2021-09-24  9:44               ` Fernando Oleo Blanco
2021-09-13 18:49   ` Fernando Oleo Blanco
2021-09-13 22:24     ` Dennis Lee Bieber
2021-09-17 17:19       ` Fernando Oleo Blanco
replies disabled

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