Kenton Varda wrote:
> Hi all,
> 
> I've uploaded a release candidate of protobuf-2.3.0 here:
> 
> https://groups.google.com/group/protobuf/files
> 
> I have tested on Linux (gcc 3.3.6 and 4.2.4), Cygwin, MinGW, MSVC, and
> OSX (Snow Leopard, latest Xcode).
> 
> Monty, it would be great if you could test this out on Solaris.

I just tried it on a Solaris 10 x86 box and it's still suffering from
some 32/64-bit confusion:

> $ ./configure
> [...]
> $ make
> [...]
> libtool: link: g++ -shared -nostdlib  /usr/lib/crti.o /usr/lib/values-Xa.o 
> /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtbegin.o  .libs/common.o 
> .libs/once.o .libs/hash.o .libs/extension_set.o 
> .libs/generated_message_util.o .libs/message_lite.o .libs/repeated_field.o 
> .libs/wire_format_lite.o .libs/coded_stream.o .libs/zero_copy_stream.o 
> .libs/zero_copy_stream_impl_lite.o .libs/strutil.o .libs/substitute.o 
> .libs/structurally_valid.o .libs/descriptor.o .libs/descriptor.pb.o 
> .libs/descriptor_database.o .libs/dynamic_message.o 
> .libs/extension_set_heavy.o .libs/generated_message_reflection.o 
> .libs/message.o .libs/reflection_ops.o .libs/service.o .libs/text_format.o 
> .libs/unknown_field_set.o .libs/wire_format.o .libs/gzip_stream.o 
> .libs/printer.o .libs/tokenizer.o .libs/zero_copy_stream_impl.o 
> .libs/importer.o .libs/parser.o   -Wl,-R -Wl,/usr/sfw/lib -Wl,-R 
> -Wl,/usr/sfw/lib -L/usr/local/lib/amd64 -lpthread 
> -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-so
laris2.10/3.4.3/../../.. /usr/sfw/lib/libstdc++.so -L/usr/sfw/lib -lm -lgcc_s 
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtend.o /usr/lib/crtn.o  -pthreads 
-m64   -pthreads -Wl,-h -Wl,libprotobuf.so.6 -o .libs/libprotobuf.so.6.0.0
> ld: fatal: file .libs/common.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to 
> .libs/libprotobuf.so.6.0.0
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `libprotobuf.la'
> Current working directory /export/home/omni/protobuf-2.3.0rc1/src
> *** Error code 1
> $ uname -a
> SunOS zephyr1 5.10 Generic_139556-08 i86pc i386 i86pc

This is because --enable-64bit-solaris (the default) adds -m64 to
CXXFLAGS only, but output_verbose_link_cmd uses CFLAGS to find extra
objects to link and ends up finding the 32-bit versions.

-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