Mailinglist Archive: opensuse-ppc (118 mails)
| < Previous | Next > |
Re: [suse-ppc] Varargs works different on SuSe PPC
- From: Kevin B.Hendricks <khendricks@xxxxxxxxxxx>
- Date: Wed, 12 Dec 2001 07:57:43 -0500
- Message-id: <20011212125427.PGPL29230.tomts9-srv.bellnexxia.net@there>
Hi Jacob,
> After debugging it I found out that there is a difference in the way
> that va_arg works on different platforms.
Yes there is and ppc linux is one of the more strange versions.
> I've been told to try to update my glibc to the latest version but I
> have version 2.2.4-19, which I think is the latest.
> As I've understood it's another compiler, right?
> Is there a ppc rpm for this?
Please ignore all of that "advice", it is bad.
The problem is in the program itself. It is not using cross-platform code
to do varargs the right way. Thrre are now macros defined that will allow
most ofthe differences to be properly taken care of.
Please post the routine from the program that is causing the problem (i.e.
using varargs incorrectly for cross platform independence) and I can show
you how to fix it. Then you can submit a patch to the maintainer of that
program so that they start ding things in a more coross-platform manner.
Kevin
> After debugging it I found out that there is a difference in the way
> that va_arg works on different platforms.
Yes there is and ppc linux is one of the more strange versions.
> I've been told to try to update my glibc to the latest version but I
> have version 2.2.4-19, which I think is the latest.
> As I've understood it's another compiler, right?
> Is there a ppc rpm for this?
Please ignore all of that "advice", it is bad.
The problem is in the program itself. It is not using cross-platform code
to do varargs the right way. Thrre are now macros defined that will allow
most ofthe differences to be properly taken care of.
Please post the routine from the program that is causing the problem (i.e.
using varargs incorrectly for cross platform independence) and I can show
you how to fix it. Then you can submit a patch to the maintainer of that
program so that they start ding things in a more coross-platform manner.
Kevin
| < Previous | Next > |