Problem solved!!!  thanks again to all of you ...

the way I solved it, is as follow:

./configure --prefix=/usr/local/protobuf-2.2.0 CXXFLAGS='-m32'
CFLAGS='-m32'

regards,
mk


On Dec 9, 4:50 pm, mk <apollo...@gmail.com> wrote:
> Thanks for your reply
>
> YES! you are right because I found when googling the error  the same
> discussion about mixing 32- and 64- bits
> Actually I tried both configurations you described above, but I am
> getting now other errors. Could someone please help me to install
> protobuf-2.2.0a ? thanks!
>
> here are the errors:
> "./google/protobuf/repeated_field.h", line 630: Error: Could not find
> a match for std::swap<std::_charT, std::_Traits, std::_Allocator>
> (void*, void*) needed in
> google::protobuf::internal::RepeatedPtrFieldBase::SwapElements(int,
> int).
> "./google/protobuf/repeated_field.h", line 701: Error: The function
> "max" must have a prototype.
> 2 Error(s) detected.
> make[2]: *** [repeated_field.lo] Error 1
> make[2]: Leaving directory `/tmp/protobuf-2.2.0a/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/protobuf-2.2.0a'
> make: *** [all] Error 2
>
> The compiler I am using is the latest version of gcc
>
> Regards and thanks in advance for your help,
>
> On Dec 9, 1:41 am, Oliver Jowett <oliver.jow...@gmail.com> wrote:
>
> > mk wrote:
> > > Hi
>
> > > Could someone please help me to install protobuf-2.2.0a on Sun Soalris
> > > machine. I tried even to install it to /usr, but I am still getting
> > > these same errors:
>
> > > ld: fatal: file .libs/common.o: wrong ELF class: ELFCLASS64
> > > ld: fatal: File processing errors. No output written to .libs/
> > > libprotobuf.so.5.0.0
> > > collect2: ld returned 1 exit status
>
> > This looks like a configure-script bug I hit earlier that results in
> > trying to mix 32- and 64-bit objects when linking. To avoid this, you
> > need to explicitly pass -m32 or -m64 in *both* CFLAGS and CXXFLAGS.
>
> > I configure my solaris builds like this:
>
> > 32-bit:
>
> > ./configure --prefix=/usr/local/protobuf/2.2.0 \
> >   --without-zlib \
> >   --disable-64bit-solaris \
> >   CXXFLAGS="-m32 -g -DNDEBUG -fno-exceptions" \
> >   PROTOBUF_OPT_FLAG=-O2 \
> >   CFLAGS=-m32
>
> > 64-bit:
>
> > ./configure --prefix=/usr/local/protobuf/2.2.0 \
> >   --without-zlib \
> >   CXXFLAGS="-m64 -g -DNDEBUG -fno-exceptions" \
> >   PROTOBUF_OPT_FLAG=-O2 \
> >   CFLAGS=-m64
>
> > -O

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to