freeipmi-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freeipmi-users] sparc64 compilation errors


From: Albert Chu
Subject: Re: [Freeipmi-users] sparc64 compilation errors
Date: Sat, 10 Mar 2007 17:07:42 -0800 (PST)
User-agent: SquirrelMail/1.4.6

Hi Corentin,

Don't know about the issue off the top of my head.  From the error
messages, below it seems like it's a minor typedef/header file porting
issue.

> /usr/include/asm-sparc/io.h:16: error: syntax error before "flip_dword"
> /usr/include/asm-sparc/io.h:16: error: syntax error before "l"

Could you send me this io.h file?  Maybe I can figure it out from that.

Al

> Hello
>
> I want to use freeipmi on a sun blade100 (sparc64 platform).
> But freeipmi won't compile.
>
> The distribution used is gentoo.
> I first tried with the "gentoo stable version" of freeipmi 0.2.3
> It failed with:
> sys/io.h: No such file or directory
> I saw that this error is corriged, so i tried lastest version 0.3.1 but it
> also failed
> This is the error:
>
>   gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../include -I./../../common/src
> -DIPMI_IPCKEY=\"/usr/local/var/lib/freeipmi/ipckey\"
> -DIPMI_DEBUG_IPCKEY=\"../../libfreeipmi/src/ipmi-semaphores.h\"
> -D_GNU_SOURCE -D_REENTRANT -Wall -g -O2 -MT
> libfreeipmi_la-ipmi-kcs-api.lo -MD -MP -MF
> .deps/libfreeipmi_la-ipmi-kcs-api.Tpo -c ipmi-kcs-api.c  -fPIC -DPIC -o
> .libs/libfreeipmi_la-ipmi-kcs-api.o
> In file included from /usr/include/asm/io.h:4,
>                   from ipmi-inband.h:43,
>                   from ipmi-kcs-api.c:45:
> /usr/include/asm-sparc/io.h:16: error: syntax error before "flip_dword"
> /usr/include/asm-sparc/io.h:16: error: syntax error before "l"
> /usr/include/asm-sparc/io.h: In function `flip_dword':
> /usr/include/asm-sparc/io.h:18: error: `l' undeclared (first use in this
> function)
> /usr/include/asm-sparc/io.h:18: error: (Each undeclared identifier is
> reported only once
> /usr/include/asm-sparc/io.h:18: error: for each function it appears in.)
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:21: error: syntax error before "flip_word"
> /usr/include/asm-sparc/io.h:21: error: syntax error before "w"
> /usr/include/asm-sparc/io.h: In function `flip_word':
> /usr/include/asm-sparc/io.h:23: error: `w' undeclared (first use in this
> function)
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:32: error: syntax error before "__raw_readb"
> /usr/include/asm-sparc/io.h: In function `__raw_readb':
> /usr/include/asm-sparc/io.h:34: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:37: error: syntax error before "__raw_readw"
> /usr/include/asm-sparc/io.h: In function `__raw_readw':
> /usr/include/asm-sparc/io.h:39: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:42: error: syntax error before "__raw_readl"
> /usr/include/asm-sparc/io.h: In function `__raw_readl':
> /usr/include/asm-sparc/io.h:44: error: syntax error before "u32"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:47: error: syntax error before "b"
> /usr/include/asm-sparc/io.h: In function `__raw_writeb':
> /usr/include/asm-sparc/io.h:49: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:52: error: syntax error before "w"
> /usr/include/asm-sparc/io.h: In function `__raw_writew':
> /usr/include/asm-sparc/io.h:54: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:57: error: syntax error before "l"
> /usr/include/asm-sparc/io.h: In function `__raw_writel':
> /usr/include/asm-sparc/io.h:59: error: syntax error before "u32"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:62: error: syntax error before "__readb"
> /usr/include/asm-sparc/io.h: In function `__readb':
> /usr/include/asm-sparc/io.h:64: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:67: error: syntax error before "__readw"
> /usr/include/asm-sparc/io.h: In function `__readw':
> /usr/include/asm-sparc/io.h:69: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:72: error: syntax error before "__readl"
> /usr/include/asm-sparc/io.h: In function `__readl':
> /usr/include/asm-sparc/io.h:74: error: syntax error before "u32"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:77: error: syntax error before "b"
> /usr/include/asm-sparc/io.h: In function `__writeb':
> /usr/include/asm-sparc/io.h:79: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:82: error: syntax error before "w"
> /usr/include/asm-sparc/io.h: In function `__writew':
> /usr/include/asm-sparc/io.h:84: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:87: error: syntax error before "l"
> /usr/include/asm-sparc/io.h: In function `__writel':
> /usr/include/asm-sparc/io.h:89: error: syntax error before "u32"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:152: error: syntax error before "_sbus_readb"
> /usr/include/asm-sparc/io.h: In function `_sbus_readb':
> /usr/include/asm-sparc/io.h:154: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:157: error: syntax error before "_sbus_readw"
> /usr/include/asm-sparc/io.h: In function `_sbus_readw':
> /usr/include/asm-sparc/io.h:159: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:162: error: syntax error before "_sbus_readl"
> /usr/include/asm-sparc/io.h: In function `_sbus_readl':
> /usr/include/asm-sparc/io.h:164: error: syntax error before "u32"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:167: error: syntax error before "b"
> /usr/include/asm-sparc/io.h: In function `_sbus_writeb':
> /usr/include/asm-sparc/io.h:169: error: syntax error before "u8"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:172: error: syntax error before "w"
> /usr/include/asm-sparc/io.h: In function `_sbus_writew':
> /usr/include/asm-sparc/io.h:174: error: syntax error before "u16"
> /usr/include/asm-sparc/io.h: At top level:
> /usr/include/asm-sparc/io.h:177: error: syntax error before "l"
> /usr/include/asm-sparc/io.h: In function `_sbus_writel':
> /usr/include/asm-sparc/io.h:179: error: syntax error before "u32"
> ipmi-kcs-api.c: In function `ipmi_kcs_ctx_io_init':
> ipmi-kcs-api.c:374: warning: implicit declaration of function `iopl'
> make[4]: *** [libfreeipmi_la-ipmi-kcs-api.lo] Error 1
> make[4]: Leaving directory `/root/freeipmi-0.3.1/libfreeipmi/src'
> make[3]: *** [../../libfreeipmi/src/libfreeipmi.la] Error 2
> make[3]: Leaving directory `/root/freeipmi-0.3.1/doc/examples'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/freeipmi-0.3.1/doc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/freeipmi-0.3.1'
> make: *** [all] Error 2
>
>
> If you have any idea to fix that.
> I am ready to help you, if you need more info.
> Thanks in advance.
>
> Cordialy
>
> LABBE C.
>
>
> _______________________________________________
> Freeipmi-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/freeipmi-users
>


-- 
Albert Chu
address@hidden
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory





reply via email to

[Prev in Thread] Current Thread [Next in Thread]