Hi List I'm having a problem with a program called Kannel. I'm trying to compile it on my IBM 44P model 270 with SuSE 7.3 PPC installed. It compiles ok but when I run it I get a Segmentation Fault. After debugging it I found out that there is a difference in the way that va_arg works on different platforms. 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. Then I've been told to try Darwin. As I've understood it's another compiler, right? Is there a ppc rpm for this? By the way, is there an ftp site where I can get the latest updates for SuSE Linux 7.3 PPC? Jacob
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
Jacob Vennervald Madsen wrote:
Hi List
I'm having a problem with a program called Kannel. I'm trying to compile it on my IBM 44P model 270 with SuSE 7.3 PPC installed. It compiles ok but when I run it I get a Segmentation Fault. After debugging it I found out that there is a difference in the way that va_arg works on different platforms. 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.
Can't help you here, sorry...
Then I've been told to try Darwin. As I've understood it's another compiler, right? Is there a ppc rpm for this?
Nope: it's an operating system. See http://www.opensource.apple.com/ for details.
By the way, is there an ftp site where I can get the latest updates for SuSE Linux 7.3 PPC?
ftp://ftp.suse.com/pub/suse/ppc/update/7.3/ and probably ftp://ftp.suse.com/pub/suse/ppc/kernel/ ftp://ftp.suse.com/pub/suse/ppc/supplementary/ (or the online update feature, but I *guess* that you can't use it for kernel updates. Maybe I'm wrong).
Jacob
regards nicola
participants (3)
-
Jacob Vennervald Madsen
-
Kevin B.Hendricks
-
nicola moretti