add -D_LINUX_TYPES_H to CPPFLAGS src/Makefile

I encountered this when building on Etch, most ceph developers are
building on Lenny.

B.

On Sat, Jun 14, 2008 at 1:57 PM, Andreas Hirczy <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> I tried to compile ceph on Debian stable, but get this error message:
>
> ------------------------------------------------------------
> ....
> ranlib libos.a
> if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -D_FILE_OFFSET_BITS=64 
> -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT BlockDevice.o -MD -MP -MF 
> ".deps/BlockDevice.Tpo" -c -o BlockDevice.o `test -f 'ebofs/BlockDevice.cc' 
> || echo './'`ebofs/BlockDevice.cc; \
>        then mv -f ".deps/BlockDevice.Tpo" ".deps/BlockDevice.Po"; else rm -f 
> ".deps/BlockDevice.Tpo"; exit 1; fi
> /usr/include/linux/types.h:181: error: conflicting declaration 'typedef short 
> unsigned int __le16'
> ./include/byteorder.h:60: error: 'struct __le16' has a previous declaration 
> as 'struct __le16'
> /usr/include/linux/types.h:183: error: conflicting declaration 'typedef 
> unsigned int __le32'
> ./include/byteorder.h:59: error: 'struct __le32' has a previous declaration 
> as 'struct __le32'
> /usr/include/linux/types.h:186: error: conflicting declaration 'typedef long 
> long unsigned int __le64'
> ./include/byteorder.h:58: error: 'struct __le64' has a previous declaration 
> as 'struct __le64'
> make[1]: *** [BlockDevice.o] Error 1
> make[1]: Leaving directory `/var/tmp/ceph/src'
> make: *** [all] Error 2
> ------------------------------------------------------------
>
> The error is always mor or less the same - I tried with linux/types.h from
> debians kernel 2.6.18 and with the header file used by the running kernel
> 2.6.25.6. Its also the same whether I use v2.0, master or unstable branches.
>
>
> As I am new to ceph and this mailing list - a bit about my background:
>
> I manage a small linux installation at Institute of Theoretical and
> Computational Physics, Graz University of Technology of about 80 machines. We
> use AFS for file serving and a bit of NFS global scratch. What I would like
> to achieve is to get rid of NFS and use currently not utilized disk space on
> computing nodes. Ceph seem to be a near perfect solution since its self
> organizing workings.
>
> Thanks,
> Andreas
> --
> Andreas Hirczy <[EMAIL PROTECTED]>                   
> http://itp.tugraz.at/~ahi/
> Graz University of Technology                        phone: +43/316/873-   
> 8190
> Institute of Theoretical and Computational Physics     fax: +43/316/873-10 
> 8190
> Petersgasse 16, A-8010 Graz                         mobile: +43/664/859 23 57
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Ceph-devel mailing list
> Ceph-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ceph-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ceph-devel mailing list
Ceph-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ceph-devel

Reply via email to