>Hi List > >I got some help from a guy called Kevin on the SuSE PPC mailing list to >solve this problem. >Here is Kevins explanation of the problem: > >************************************************************ > >Hi Jacob, > >Arrgghh! They are passing addresses of va_lists all over the place. > >Under ppc linux and s390 linux, va_list is actualy based on an array >type. >So they are trying to pass the address of the array (which itself is a >pointer) and all hell breaks loose. > >They then assume the *args is a va_list argument everyplace. > >Passing addresses of a va_list is not portable in any way AFAIK. > >I have no idea if what I did even compiles but you should get the >general >idea. Just think that va_list is an array. Taking the address of an >array makes no sense (you pass the array and it is automatically a >pointer) >and then taking the contents of that also can be an issue. > >Whereas passing the address of an element of the array is perfectly >fine. > >I tried something using macros that may do the trick. > >Hope this helps. > >Kevin
I did run into varargs problems too when I compiled kannel for Compaq True 64. The workaround there was to use some other varargs include files instead of the ones shipped as there seems to be two types of varargs libraries around. I've never investigated it too deeply as it worked for me finally but this might be the same cause. -- Andreas Fink Fink-Consulting ------------------------------------------------------------------ Tel: +41-61-6932730 Fax: +41-61-6932729 Mobile: +41-79-2457333 Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland E-Mail: [EMAIL PROTECTED] Homepage: http://www.finkconsulting.com ------------------------------------------------------------------ Something urgent? Try http://www.smsrelay.com/ Nickname afink