Hi,

I am trying to compile protobuf-3.5.1 on a HP-UX Itanium 64bit machine.
*Machine Details:*
-bash-3.00$ uname -a
HP-UX dbuv0165 B.11.31 U ia64 0789122698 unlimited-user license

When I am trying to build it using make (or gmake), I am getting the below 
error along with 100 other errors.


"./google/protobuf/stubs/platform_macros.h", line 97: error #2010: "#" not
          expected here
  GOOGLE_PROTOBUF_PLATFORM_ERROR
  ^

"./google/protobuf/stubs/platform_macros.h", line 97: error #2169: expected 
a
          declaration
  GOOGLE_PROTOBUF_PLATFORM_ERROR
  ^

The issue is, in the file */google/protobuf/stubs/platform_macros.h,* there 
is no check available for IA64 (__IA64__), and that's why it is going to 
else condition and hitting the error.

Is protobuf not supported on IA64 target?


Below is the config log.

-bash-3.00$ ./configure
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking target system type... ia64-hp-hpux11.31
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... /usr/local/bin//cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /usr/local/bin//cc accepts -g... yes
checking for /usr/local/bin//cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/local/bin//cc... hp2
checking whether we are using the GNU C++ compiler... no
checking whether /opt/aCC/bin//aCC accepts -g... yes
checking dependency style of /opt/aCC/bin//aCC... hp2
checking how to run the C preprocessor... /usr/local/bin//cc -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) no
checking whether gcc accepts -g... no
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... /opt/aCC/bin//aCC -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... (cached) no
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking C++ compiler flags...... use default:   -DNDEBUG
checking whether __SUNPRO_CC is declared... no
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1536000
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert ia64-hp-hpux11.31 file names to ia64-hp-hpux11.31 
format... func_convert_file_noop
checking how to convert ia64-hp-hpux11.31 file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... file_magic 
(s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/local/bin//cc 
object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking for /usr/local/bin//cc option to produce PIC...  -DPIC
checking if /usr/local/bin//cc PIC flag  -DPIC works... yes
checking if /usr/local/bin//cc static flag -Wl,-a -Wl,archive works... no
checking if /usr/local/bin//cc supports -c -o file.o... yes
checking if /usr/local/bin//cc supports -c -o file.o... (cached) yes
checking whether the /usr/local/bin//cc linker (/usr/bin/ld) supports 
shared libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/aCC/bin//aCC -E
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking for /opt/aCC/bin//aCC option to produce PIC...  -DPIC
checking if /opt/aCC/bin//aCC PIC flag  -DPIC works... yes
checking if /opt/aCC/bin//aCC static flag -Wl,-a -Wl,archive works... no
checking if /opt/aCC/bin//aCC supports -c -o file.o... yes
checking if /opt/aCC/bin//aCC supports -c -o file.o... (cached) yes
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking whether the linker supports version scripts... no
./configure[19425]: ==: A test command parameter is not valid.
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working memcmp... yes
checking for working strtod... yes
checking for ftruncate... yes
checking for memset... yes
checking for mkdir... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking zlib version... headers missing or too old (requires 1.2.0.4)
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for xlc_r... no
checking for cc_r... no
checking whether to check for GCC pthread/shared inconsistencies... no
checking whether what we have so far is sufficient with -nostdlib... no
checking whether -lpthread saves the day... no
configure: WARNING: Impossible to determine how to use pthreads with shared 
libraries and -nostdlib
checking the location of hash_map...
configure: WARNING: could not find an STL hash_map
checking whether /opt/aCC/bin//aCC supports C++11 features by default... no
checking whether /opt/aCC/bin//aCC supports C++11 features with 
-std=c++11... no
checking whether /opt/aCC/bin//aCC supports C++11 features with 
+std=c++11... no
checking whether /opt/aCC/bin//aCC supports C++11 features with -h 
std=c++11... no
checking whether /opt/aCC/bin//aCC supports C++11 features with 
-std=c++0x... no
checking whether /opt/aCC/bin//aCC supports C++11 features with 
+std=c++0x... no
checking whether /opt/aCC/bin//aCC supports C++11 features with -h 
std=c++0x... no
configure: No compiler with C++11 support was found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating benchmarks/Makefile
config.status: creating conformance/Makefile
config.status: creating protobuf.pc
config.status: creating protobuf-lite.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in gmock (/home/ssharahu/protobuf-3.5.1/gmock)
configure: running /bin/sh ./configure --disable-option-checking 
'--prefix=/usr/local'  'CC=/usr/local/bin//cc' 'CXX=/opt/aCC/bin//aCC' 
--cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/bin//cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /usr/local/bin//cc accepts -g... yes
checking for /usr/local/bin//cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/local/bin//cc... hp2
checking whether we are using the GNU C++ compiler... no
checking whether /opt/aCC/bin//aCC accepts -g... yes
checking dependency style of /opt/aCC/bin//aCC... hp2
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1536000
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert ia64-hp-hpux11.31 file names to ia64-hp-hpux11.31 
format... func_convert_file_noop
checking how to convert ia64-hp-hpux11.31 file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... file_magic 
(s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/local/bin//cc 
object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /usr/local/bin//cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking for /usr/local/bin//cc option to produce PIC...  -DPIC
checking if /usr/local/bin//cc PIC flag  -DPIC works... yes
checking if /usr/local/bin//cc static flag -Wl,-a -Wl,archive works... no
checking if /usr/local/bin//cc supports -c -o file.o... yes
checking if /usr/local/bin//cc supports -c -o file.o... (cached) yes
checking whether the /usr/local/bin//cc linker (/usr/bin/ld) supports 
shared libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/aCC/bin//aCC -E
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking for /opt/aCC/bin//aCC option to produce PIC...  -DPIC
checking if /opt/aCC/bin//aCC PIC flag  -DPIC works... yes
checking if /opt/aCC/bin//aCC static flag -Wl,-a -Wl,archive works... no
checking if /opt/aCC/bin//aCC supports -c -o file.o... yes
checking if /opt/aCC/bin//aCC supports -c -o file.o... (cached) yes
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking for python... /usr/local/bin/python
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for xlc_r... no
checking for cc_r... no
checking whether to check for GCC pthread/shared inconsistencies... no
./configure[15563]: ==: A test command parameter is not valid.
./configure[15593]: ==: A test command parameter is not valid.
checking for gtest-config... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/gmock-config
config.status: creating build-aux/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in gtest (/home/ssharahu/protobuf-3.5.1/gmock/gtest)
configure: running /bin/sh ./configure --disable-option-checking 
'--prefix=/usr/local'  'CC=/usr/local/bin//cc' 'CXX=/opt/aCC/bin//aCC' 
'CFLAGS=' 'CXXFLAGS= -DNDEBUG' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/bin//cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /usr/local/bin//cc accepts -g... yes
checking for /usr/local/bin//cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/local/bin//cc... hp2
checking whether we are using the GNU C++ compiler... no
checking whether /opt/aCC/bin//aCC accepts -g... yes
checking dependency style of /opt/aCC/bin//aCC... hp2
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1536000
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert ia64-hp-hpux11.31 file names to ia64-hp-hpux11.31 
format... func_convert_file_noop
checking how to convert ia64-hp-hpux11.31 file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... file_magic 
(s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/local/bin//cc 
object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /usr/local/bin//cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking for /usr/local/bin//cc option to produce PIC...  -DPIC
checking if /usr/local/bin//cc PIC flag  -DPIC works... yes
checking if /usr/local/bin//cc static flag -Wl,-a -Wl,archive works... no
checking if /usr/local/bin//cc supports -c -o file.o... yes
checking if /usr/local/bin//cc supports -c -o file.o... (cached) yes
checking whether the /usr/local/bin//cc linker (/usr/bin/ld) supports 
shared libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/aCC/bin//aCC -E
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking for /opt/aCC/bin//aCC option to produce PIC...  -DPIC
checking if /opt/aCC/bin//aCC PIC flag  -DPIC works... yes
checking if /opt/aCC/bin//aCC static flag -Wl,-a -Wl,archive works... no
checking if /opt/aCC/bin//aCC supports -c -o file.o... yes
checking if /opt/aCC/bin//aCC supports -c -o file.o... (cached) yes
checking whether the /opt/aCC/bin//aCC linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... hpux11.31 dld.so
checking how to hardcode library paths into programs... immediate
checking for python... /usr/local/bin/python
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for xlc_r... no
checking for cc_r... no
checking whether to check for GCC pthread/shared inconsistencies... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/gtest-config
config.status: creating build-aux/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
-bash-3.00$


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/96426855-0c89-40e7-ae34-35e14b46f5d6n%40googlegroups.com.

Reply via email to