Author Topic: cross compile issues  (Read 4935 times)

boosalis

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://
cross compile issues
« on: January 28, 2004, 12:34:44 pm »
I have a cross compile problem that is not there when I compile with gcc3 on my x86 box. It only shows up when I compile with the arm gcc 2.95 compiler

The error is:
/opt/Embedix/tools/arm-linux/include/bits/in.h:69: ANSI C++ forbids data member `ip_opts\' with same name as enclosing class

I am doing sme socket stuff and need the socket include files that also include in.h which has the offending structure.

Any ideas for a work around on this.

Thank you

-David
Zaurus 6000 with expansion jacket

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cross compile issues
« Reply #1 on: January 28, 2004, 01:03:26 pm »
I\'ve come across various random errors while trying to use 2.95, you might find a general solution by googling for the error. Other than that I don\'t know, sorry,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest

Anonymous

  • Guest
cross compile issues
« Reply #3 on: January 28, 2004, 03:31:10 pm »
lardman
thanks for the url. The work around was a bit dirty, as I opted for changing the name of one of the elements in the ip_opts struct as listed on that URL by David Mazieres.  It worked fine !!!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cross compile issues
« Reply #4 on: January 28, 2004, 05:13:43 pm »
Wasn\'t me actually, but I\'m glad you got it working thanks to our guest\'s link.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva