Groups | Search | Server Info | Login | Register
Groups > comp.lang.ada > #49363
| From | Fernando Oleo Blanco <irvise_ml@irvise.xyz> |
|---|---|
| Newsgroups | comp.lang.ada |
| Subject | Re: Help: Ada in NetBSD |
| Date | 2021-08-30 10:14 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <sgi40d$1red$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <16242b6e-cfb6-4fb1-8f7f-566469de446an@googlegroups.com> <sggier$gb2$1@gioia.aioe.org> <lyzgt0ds72.fsf@pushface.org> <sggr4p$gta$1@gioia.aioe.org> <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
Back to comp.lang.ada | Previous | Next — Previous in thread | Next in thread | Find similar
Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-29 13:06 +0200
Re: Help: Ada in NetBSD Stephane Carrez <stephane.carrez@gmail.com> - 2021-08-29 06:19 -0700
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-29 20:08 +0200
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-08-29 19:25 +0100
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-29 22:36 +0200
Re: Help: Ada in NetBSD Stephane Carrez <stephane.carrez@gmail.com> - 2021-08-29 15:08 -0700
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-08-30 08:37 +0100
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-30 10:14 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-30 12:24 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-30 14:15 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-30 20:49 +0200
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-08-30 20:23 +0100
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-01 11:44 +0200
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-09-01 22:41 +0100
Re: Help: Ada in NetBSD "Randy Brukardt" <randy@rrsoftware.com> - 2021-09-02 17:16 -0500
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-09-03 21:18 +0100
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-08-29 18:34 +0100
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-08-29 19:45 +0200
Re: Help: Ada in NetBSD "John R. Marino" <mfl-commissioner@marino.st> - 2021-09-01 06:28 -0700
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-01 16:58 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-17 19:36 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-18 18:39 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-22 22:05 +0200
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-09-22 21:57 +0100
Re: Help: Ada in NetBSD "Luke A. Guest" <laguest@archeia.com> - 2021-09-23 09:04 +0100
Re: Help: Ada in NetBSD Kevin Chadwick <m8il1ists@gmail.com> - 2021-09-23 03:48 -0700
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-23 19:01 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-23 19:04 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-23 21:53 +0200
Re: Help: Ada in NetBSD Simon Wright <simon@pushface.org> - 2021-09-24 08:48 +0100
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-24 11:44 +0200
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-13 20:49 +0200
Re: Help: Ada in NetBSD Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2021-09-13 18:24 -0400
Re: Help: Ada in NetBSD Fernando Oleo Blanco <irvise_ml@irvise.xyz> - 2021-09-17 19:19 +0200
csiph-web