Re: Compile Failure on Solaris: wrong ELF class: ELFCLASS64

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

 



On Mon, 2011-06-06 at 12:13 +0530, Pavan T C wrote:
> On Monday 06 June 2011 09:10 AM, Nick Couchman wrote:
> > I tried adding -m32 to CFLAGS and recompiling, and got different errors.
> > Then I tried -m64 and got different errors, there.  I can post those at
> > some point, soon - probably tomorrow.
> 
> Hi Nick,
> 
> First of all, the latest branch which has support for solaris is 3.1.x.
> 
> If you still want to try and build 3.2 for solaris, try it with the 
> following configure flags:
> 
> # CFLAGS=-m64 ./configure --disable-georeplication
> 	
> After the configure script completes without errors, try a make.
> 
> HTH,
> Pavan
> 

Okay, ran the following configure command:

~/glusterfs-3.2.0# CFLAGS=-m64 MAKE=gmake ./configure
--disable-georeplication

configure ran fine, with the following as the end of the output for the
configuration of the source:

GlusterFS configure summary
===========================
FUSE client        : no
Infiniband verbs   : yes
epoll IO multiplex : no
argp-standalone    : yes
fusermount         : no
readline           : yes
georeplication     : no


Then I run:

~/glusterfs-3.2.0# gmake

and get the following output/error:

        then mv -f ".deps/libgfxdr_la-cli1-xdr.Tpo"
".deps/libgfxdr_la-cli1-xdr.Plo"; else rm -f
".deps/libgfxdr_la-cli1-xdr.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../libglusterfs/src
-I../../../contrib/uuid -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
-D_GNU_SOURCE -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src
-I../../../rpc/rpc-lib/src -fPIC -Wall -g -shared -nostartfiles
-I../../../argp-standalone -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O0
-m64 -m64 -MT libgfxdr_la-cli1-xdr.lo -MD -MP
-MF .deps/libgfxdr_la-cli1-xdr.Tpo -c cli1-xdr.c  -fPIC -DPIC
-o .libs/libgfxdr_la-cli1-xdr.o
In file included from cli1-xdr.c:26:
cli1-xdr.h:265: error: syntax error before "u_quad_t"
cli1-xdr.h:265: warning: no semicolon at end of struct or union
cli1-xdr.h:266: warning: type defaults to `int' in declaration of `size'
cli1-xdr.h:266: warning: data definition has no type or storage class
cli1-xdr.h:267: error: syntax error before "lookedup_files"
cli1-xdr.h:267: warning: type defaults to `int' in declaration of
`lookedup_files'
cli1-xdr.h:267: warning: data definition has no type or storage class
cli1-xdr.h:276: error: syntax error before "u_quad_t"
cli1-xdr.h:276: warning: no semicolon at end of struct or union
cli1-xdr.h:277: warning: type defaults to `int' in declaration of `size'
cli1-xdr.h:277: warning: data definition has no type or storage class
cli1-xdr.h:278: error: syntax error before "lookedup_files"
cli1-xdr.h:278: warning: type defaults to `int' in declaration of
`lookedup_files'
cli1-xdr.h:278: warning: data definition has no type or storage class
cli1-xdr.c: In function `xdr_gf1_cli_defrag_vol_rsp':
cli1-xdr.c:401: error: dereferencing pointer to incomplete type
cli1-xdr.c:403: error: dereferencing pointer to incomplete type
cli1-xdr.c:405: error: dereferencing pointer to incomplete type
cli1-xdr.c:407: warning: implicit declaration of function `xdr_u_quad_t'
cli1-xdr.c:407: error: dereferencing pointer to incomplete type
cli1-xdr.c:409: error: dereferencing pointer to incomplete type
cli1-xdr.c:411: error: dereferencing pointer to incomplete type
cli1-xdr.c: In function `xdr_gf2_cli_defrag_vol_rsp':
cli1-xdr.c:420: error: dereferencing pointer to incomplete type
cli1-xdr.c:422: error: dereferencing pointer to incomplete type
cli1-xdr.c:424: error: dereferencing pointer to incomplete type
cli1-xdr.c:426: error: dereferencing pointer to incomplete type
cli1-xdr.c:428: error: dereferencing pointer to incomplete type
cli1-xdr.c:430: error: dereferencing pointer to incomplete type
cli1-xdr.c:432: error: dereferencing pointer to incomplete type
gmake[4]: *** [libgfxdr_la-cli1-xdr.lo] Error 1
gmake[4]: Leaving directory `/root/glusterfs-3.2.0/rpc/xdr/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/root/glusterfs-3.2.0/rpc/xdr'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/glusterfs-3.2.0/rpc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/glusterfs-3.2.0'
gmake: *** [all] Error 2

-Nick



--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient.  If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information.  In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way.  If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox.  Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux