[Asterisk-Dev] Zaptel Drivers Refuse to Compile on Sparc. (Was Half Installed on Sparc)

dking at pimpsoft.com dking at pimpsoft.com
Mon Jul 5 21:32:55 MST 2004


Ok scratch my earlier post on needing a better kernel. The problem is not kernel based the problem is in the Zaptel driver code itself.

What is being used is code for the sparclite family of CPU’s and the sparc ultra 5 uses a ultrasparc cpu.
 From the data at http://www.dis.com/gnu/gcc/SPARC-Options.html these CPU’s are incompatible as per the following data extracted from that page:

Here is a list of each supported architecture and their supported implementations. 

              v7:             cypress
              v8:             supersparc, hypersparc
              sparclite:      f930, f934, sparclite86x
              sparclet:       tsc701
              v9:             ultrasparc, ultrasparc3
          

Thus the errors I am getting are due to a invalid sparc compilation setting/code somewhere in the code itself, possibly additionally in the binutils package. If they can be
nudged into compiling for the correct arch I can get this working, but as it is the zaptel drivers refuse to compile unless it is for a sparclite cpu, and I don't have one on
hand; So my expensive card is worthless to me, as is the past two 
sleepless days of non stop effort.

The final errors I am getting are from the assembler and they are complaining about being asked to compile ultrasparc code when being asked to use sparclite when I set a mcpu=ultrasparc in the CFLAGS; I have no idea where its being asked to compile for a sparclite and a added ‘-v’ on the zaptel makefile setting for CFLAGS does not show me a thing.

Is this hardcoded or something I can fix by tweaking the makefiles? The person who wrote the drivers may wish to speak up, please.


On 5 Jul 2004 at 16:40, dking at pimpsoft.com wrote:

> 
> My problem it seems may be Kernel Based. So I am trying to get a good 
> one compiled right now with all the support Asterisk needs. After I 
> make the correct .deb where should I upload it in case others need 
> it?
> 
> I noticed the formatting was off for the includes as well, ugly but 
> once I get these drivers installed it will work, then I may the 
> motivation I need to help by fixing the issues I was having.
> 
> If '-mcpu' was used instead of '-march' it would take care of most of 
> the make file problems I was having as well as update the current 
> Makefile system to be more portable.
> 
> I don't have the option of using a external gateway as I understand 
> it; As I said I'm still ignorant on a number of key points; I have 
> allot to learn but that is half the fun after all.
> 
> So how does one get write access to the cvs anyway? I’m going to need 
> a way to submit my changes if I get that far.
> 
>  - Belgarath
> 
> On 5 Jul 2004 at 10:56, Bob Knight wrote:
> > Use an external gateway and you should be ready to go.
> > I use mediatrix 1204's and now that I have them almost working with
> > mbrowse, I no longer meed a damn windows box to configure them.
> > 
> > I think I am crazier than you.  Over a year ago I managed to build
> > it on a ultra 5 sprac running solaris.  I went back and tried it a few
> > months ago and it was just ifdef hell.  The code is just sooooo not
> > set up for porting.  Way too ugly for me.
> > 
> > I still think a good solaris port may come in handy some day.
> > It would be fun to see just how large an * system you could build on
> > a big sun server.  I much prefer tightly coupled architectures over
> > loosely coupled.  I know tightly vs loosely is about like arguing
> > over abortion, so I won't go into that.
> > 
> > 
> > -- 
> > Bob Knight
> > [-w] the work option
> > bk at minusw.com
> > 925-449-9163
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> > 
> 
> 
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 







More information about the asterisk-dev mailing list