[Help-gnutls] Re: Unable to make gnutls in HPUX

Simon Josefsson simon at josefsson.org
Tue Mar 11 16:49:36 CET 2008


"Haidar Habib" <h.habib at gmail.com> writes:

> Hi Simon,
>
> Actually my application is written in C++ so I think C++ library is needed.
>
> As suggested by someone I included CXX=aCC also at configure time and
> now I got the following errors.
>
> I have also included output of ./configure and config.log files.

Thanks.  It seems there is something wrong with either the C++ compiler
or our C++ code.  I don't know C++ well enough to support our C++
bindings.  Nikos, do you have any ideas?  If anyone else knows C++ and
can explain the error messages, that would be appreciated.

/Simon

> Error 19: "../includes/gnutls/gnutlsxx.h", line 10 # Unexpected 'std'.
>     class exception: public std::exception
>                             ^^^
> Error 19: "../includes/gnutls/gnutlsxx.h", line 179 # Unexpected 'std'.
>             bool get_peers_certificate(std::vector<gnutls_datum_t>
> &out_certs) const;
>                                        ^^^
> Error 19: "gnutlsxx.cpp", line 237 # Unexpected 'std'.
>     bool session::get_peers_certificate(std::vector<gnutls_datum_t>
> &out_certs) const
>                                         ^^^
> Error 698: Exact position unknown; near ["/opt/aCC/include/exception",
> line 46]. # The declarations class exception and class exception are
> both visible and neither is preferred under the name lookup rules.
> Error 698: Exact position unknown; near ["/opt/aCC/include/exception",
> line 46]. # The declarations class exception and class exception are
> both visible and neither is preferred under the name lookup rules.
> Error 221: "gnutlsxx.cpp", line 845 # Member 'get_code' not declared
> in class exception ["/opt/aCC/include/exception", line 53].
>     int exception::get_code()
>                    ^^^^^^^^
> Error 172: "gnutlsxx.cpp", line 847 # Undeclared variable 'retcode'.
>         return retcode;
>                ^^^^^^^
> Error 698: Exact position unknown; near ["/opt/aCC/include/exception",
> line 46]. # The declarations class exception and class exception are
> both visible and neither is preferred under the name lookup rules.
> Error 174: "gnutlsxx.cpp", line 850 # Function redefinition;
> previously defined as "const char *exception::what() const" at
> ["/opt/aCC/include/exception", line 59].
>     const char* exception::what() const throw()
>                            ^^^^
> Error 445: "gnutlsxx.cpp", line 850 # Cannot recover from earlier errors.
>     const char* exception::what() const throw()
>
>
> On Feb 18, 2008 4:51 PM, Simon Josefsson <simon at josefsson.org> wrote:
>>
>> "Haidar Habib" <h.habib at gmail.com> writes:
>>
>> > Hi,
>> >
>> > I am trying to build gnutls-1.6.3 in HP-UX , but when i am running
>> > make command after ./configure it showing following errors.
>> >
>> > g++: +b: No such file or directory
>> > g++: /saurabh/gnutls-1.6.3/lib/.libs:/usr/local/lib: No such file or directory
>> >
>> > I am makeing from /saurabh/gnutls-1.6.3 directory and used configure
>> > with following options
>> >
>> > ./configure CC=aCC CFLAGS="+d -Aa +DAportable -mt +W930 +W829 +Z -ext
>> > -Wl,+s -g" LDFLAGS="-L/usr/local/lib/ -L/usr/local/lib/"
>>
>> If you don't need the C++ library, try adding --disable-cxx when running
>> ./configure.
>>
>> Otherwise, please send the output from running ./configure, and the
>> contents of the config.log file.
>>
>> /Simon
>>
>
>
>
> On Feb 18, 2008 4:51 PM, Simon Josefsson <simon at josefsson.org> wrote:
>>
>> "Haidar Habib" <h.habib at gmail.com> writes:
>>
>> > Hi,
>> >
>> > I am trying to build gnutls-1.6.3 in HP-UX , but when i am running
>> > make command after ./configure it showing following errors.
>> >
>> > g++: +b: No such file or directory
>> > g++: /saurabh/gnutls-1.6.3/lib/.libs:/usr/local/lib: No such file or directory
>> >
>> > I am makeing from /saurabh/gnutls-1.6.3 directory and used configure
>> > with following options
>> >
>> > ./configure CC=aCC CFLAGS="+d -Aa +DAportable -mt +W930 +W829 +Z -ext
>> > -Wl,+s -g" LDFLAGS="-L/usr/local/lib/ -L/usr/local/lib/"
>>
>> If you don't need the C++ library, try adding --disable-cxx when running
>> ./configure.
>>
>> Otherwise, please send the output from running ./configure, and the
>> contents of the config.log file.
>>
>> /Simon
>>
>
>
>
> -- 
> With regards,
> Md. Haidar Habib
> Senior Software Engineer
> haidar.habib at aricent.com
> Aricent
> Gurgaon
> Cell- 09350042332
> [JOSH]/saurabh/gnutls-1.6.3>./configure CC=aCC CFLAGS="+d -Aa +DAportable -mt +W930 +W829 +Z -ext -Wl,+s -g" CXX=aCC CXXCPP="aCC -E" LDFLAGS="-L/usr/local/lib/ -L/usr/local/lib/"
> checking build system type... hppa64-hp-hpux11.11
> checking host system type... hppa64-hp-hpux11.11
> checking target system type... hppa64-hp-hpux11.11
> checking for a BSD-compatible install... /opt/imake/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> configure: autobuild project... gnutls
> configure: autobuild revision... 1.6.3
> configure: autobuild hostname... JOSH
> configure: autobuild timestamp... 20080218-164630
> checking whether in dmalloc mode... no
> checking whether in electric fence mode... no
> checking whether in developer mode... no
> checking whether in profile mode... no
> ***
> *** Checking for compilation programs...
>
> checking whether NLS is requested... yes
> checking for msgfmt... /opt/gnome/bin/msgfmt
> checking for gmsgfmt... /opt/gnome/bin/msgfmt
> checking for xgettext... no
> checking for msgmerge... no
> checking for style of include used by make... GNU
> checking for gcc... aCC
> 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 aCC accepts -g... yes
> checking for aCC option to accept ISO C89... -Ae
> checking dependency style of aCC -Ae... hp2
> checking for non-GNU ld... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... no
> checking for shared library run path origin... done
> checking for CFPreferencesCopyAppValue... no
> checking for CFLocaleCopyCurrent... no
> checking whether NLS is requested... yes
> checking for GNU gettext in libc... no
> checking for iconv... yes
> checking for GNU gettext in libintl... no
> checking whether to use NLS... no
> checking for gcc... (cached) aCC
> checking whether we are using the GNU C compiler... (cached) no
> checking whether aCC accepts -g... (cached) yes
> checking for aCC option to accept ISO C89... (cached) -Ae
> checking dependency style of aCC -Ae... (cached) hp2
> checking whether we are using the GNU C++ compiler... no
> checking whether aCC accepts -g... yes
> checking dependency style of aCC... hp2
> checking whether ln -s works... yes
> ***
> *** Detecting compiler options...
>
> checking for ranlib... ranlib
> checking for an ANSI C-conforming const... yes
> checking for inline... __inline
> checking whether to build C++ library... yes
> checking whether C99 macros are supported... yes
> ***
> *** Detecting C library capabilities...
>
> checking how to run the C preprocessor... aCC -Ae -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking whether time.h and sys/time.h may both be included... 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... no
> checking for unistd.h... yes
> checking for strings.h... (cached) yes
> checking alloca.h usability... yes
> checking alloca.h presence... yes
> checking for alloca.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking time.h usability... yes
> checking time.h presence... yes
> checking for time.h... yes
> checking math.h usability... yes
> checking math.h presence... yes
> checking for math.h... yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking float.h usability... yes
> checking float.h presence... yes
> checking for float.h... yes
> checking stdarg.h usability... yes
> checking stdarg.h presence... yes
> checking for stdarg.h... yes
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking for umask... yes
> checking for vasprintf... no
> checking for isascii... yes
> checking for gmtime_r... yes
> checking for fork... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> ***
> *** Detecting system's parameters...
>
> checking for valgrind... no
> checking whether self tests are run under valgrind... no
> checking for unsigned long... yes
> checking size of unsigned long... 4
> checking for unsigned int... yes
> checking size of unsigned int... 4
> checking for void *... yes
> checking size of void *... 4
> checking for long... yes
> checking size of long... 4
> checking for int... yes
> checking size of int... 4
> checking for uint... yes
> checking for ssize_t... yes
> checking whether byte ordering is bigendian... yes
> ***
> *** Checking for external libraries...
>
> checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
> checking for LIBGCRYPT - version >= 1.2.2... yes
> checking LIBGCRYPT API version... okay
> checking whether to disable SRP authentication support... no
> checking whether to disable PSK authentication support... no
> checking whether to disable anonymous authentication support... no
> checking whether to disable extra PKI stuff... no
> checking whether to disable OpenPGP Certificate authentication support... no
> checking for opencdk-config... no
> checking for libopencdk - version >= 0.5.5... no
> *** The opencdk-config script installed by LIBOPENCDK could not be found
> *** If LIBOPENCDK was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the LIBOPENCDK_CONFIG environment variable to the
> *** full path to opencdk-config.
> configure: WARNING:
> ***
> *** libopencdk 0.5.5 was not found. You may want to get it from
> *** ftp://ftp.gnutls.org/pub/gnutls/opencdk/
> ***
> *** Will use the included opencdk.
> ***
>
> checking whether to use the included opencdk... yes
> checking whether to disable OpenSSL compatibility layer... no
> checking for libtasn1-config... no
> checking for libtasn1 - version >= 0.3.4... no
> *** The libtasn1-config script installed by LIBTASN1 could not be found
> *** If LIBTASN1 was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the LIBTASN1_CONFIG environment variable to the
> *** full path to libtasn1-config.
> configure: WARNING:
> ***
> *** LibtASN1 0.3.4 was not found. Will use the included one.
>
> checking whether to use the included minitasn1... yes
> checking for cfg_get_context in -lcfg+... no
> configure: WARNING:
> ***
> *** Libcfg+ was not found. Will use the included one.
> checking whether to use the included libcfg... yes
> checking whether to include zlib compression support... yes
> checking for libz... no
> configure: WARNING: ***
> *** ZLIB was not found. You will not be able to use ZLIB compression.
> checking whether to include lzo compression support... yes
> checking whether to use the included lzo compression library... no
> checking for lzo1x_1_compress in -llzo2... no
> checking for lzo1x_1_compress in -llzo... no
> configure: WARNING: ***
> *** Could not find liblzo or liblzo2. Will use the included minilzo.
>
> checking for ptrdiff_t... yes
> checking for size_t... yes
> checking for short... yes
> checking size of short... 2
> checking for int... (cached) yes
> checking size of int... (cached) 4
> checking for long... (cached) yes
> checking size of long... (cached) 4
> checking for long long... yes
> checking size of long long... 8
> checking for __int64... no
> checking size of __int64... 0
> checking for void *... (cached) yes
> checking size of void *... (cached) 4
> checking for size_t... (cached) yes
> checking size of size_t... 4
> checking for ptrdiff_t... (cached) yes
> checking size of ptrdiff_t... 4
> checking for an ANSI C-conforming const... (cached) yes
> checking for memcmp... yes
> checking for memcpy... yes
> checking for memmove... yes
> checking for memset... yes
> ***
> *** Setting up gnulib compatibility files...
>
> checking arpa/inet.h usability... yes
> checking arpa/inet.h presence... yes
> checking for arpa/inet.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking for netdb.h... (cached) yes
> checking stdio_ext.h usability... no
> checking stdio_ext.h presence... no
> checking for stdio_ext.h... no
> checking termios.h usability... yes
> checking termios.h presence... yes
> checking for termios.h... yes
> checking wchar.h usability... yes
> checking wchar.h presence... yes
> checking for wchar.h... yes
> checking for stdint.h... (cached) no
> checking for sys/stat.h... (cached) yes
> checking for C/C++ restrict keyword... __restrict
> checking for IPv4 sockets... yes
> checking for IPv6 sockets... yes
> checking whether getdelim is declared... no
> checking whether getpass is declared... yes
> checking for __fsetlocking... no
> checking for tcgetattr... yes
> checking for tcsetattr... yes
> checking for lstat... yes
> checking whether fflush_unlocked is declared... no
> checking whether flockfile is declared... yes
> checking whether fputs_unlocked is declared... no
> checking whether funlockfile is declared... yes
> checking whether putc_unlocked is declared... yes
> checking for off_t... yes
> checking for stdbool.h that conforms to C99... no
> checking for _Bool... yes
> checking for long long int... yes
> checking for unsigned long long int... yes
> checking whether strdup is declared... yes
> configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
> checking for library containing getaddrinfo... no
> checking for getaddrinfo... no
> checking for getaddrinfo in ws2tcpip.h and -lws2_32... no
> checking for gai_strerror... no
> checking for library containing gethostbyname... none required
> checking for library containing getservbyname... none required
> checking for gethostbyname... yes
> checking whether getaddrinfo is declared... no
> checking whether freeaddrinfo is declared... no
> checking whether gai_strerror is declared... no
> checking whether getnameinfo is declared... no
> checking for struct addrinfo... no
> checking for getdelim... no
> checking for flockfile... yes
> checking for funlockfile... yes
> checking whether getline is declared... no
> checking for getline... no
> checking for getdelim... (cached) no
> checking for flockfile... (cached) yes
> checking for funlockfile... (cached) yes
> checking for getpass... yes
> checking for inet_ntop... yes
> checking whether inet_ntop is declared... yes
> checking for inet_pton... yes
> checking whether inet_pton is declared... yes
> checking for readline... no
> checking readline/readline.h usability... no
> checking readline/readline.h presence... no
> checking for readline/readline.h... no
> checking for socklen_t... yes
> checking sys/inttypes.h usability... no
> checking sys/inttypes.h presence... no
> checking for sys/inttypes.h... no
> checking sys/bitypes.h usability... no
> checking sys/bitypes.h presence... no
> checking for sys/bitypes.h... no
> checking for bit size of ptrdiff_t... 32
> checking for bit size of sig_atomic_t... 32
> checking for bit size of size_t... 32
> checking for bit size of wchar_t... 32
> checking for bit size of wint_t... 32
> checking whether sig_atomic_t is signed... no
> checking whether wchar_t is signed... no
> checking whether wint_t is signed... no
> checking for ptrdiff_t integer literal suffix... l
> checking for sig_atomic_t integer literal suffix... u
> checking for size_t integer literal suffix... ul
> checking for wchar_t integer literal suffix... u
> checking for wint_t integer literal suffix... u
> checking for strdup... yes
> checking whether memmem is declared... no
> checking whether <limits.h> defines MIN and MAX... yes
> checking whether <sys/param.h> defines MIN and MAX... yes
> checking whether snprintf is declared... yes
> checking whether stat file-mode macros are broken... no
> checking for EOVERFLOW... yes
> checking for long double... yes
> checking for wchar_t... yes
> checking for wint_t... yes
> checking for inttypes.h... yes
> checking for stdint.h... no
> checking for long long... (cached) yes
> checking for intmax_t... yes
> checking device with (strong) random data...... /dev/random
> checking device with pseudo random data...... /dev/urandom
> checking device with unpredictable data for nonces...... /dev/urandom
> checking for /dev/random... no
> configure: WARNING: Device `/dev/random' does not exist, consider to use --enable-random-device
> checking for /dev/urandom... no
> configure: WARNING: Device `/dev/urandom' does not exist, consider to use --enable-pseudo-random-device
> checking for /dev/urandom... (cached) no
> configure: WARNING: Device `/dev/urandom' does not exist, consider to use --enable-nonce-device
> checking for memmem... no
> checking for memmove... (cached) yes
> checking for stdint.h... (cached) no
> checking for SIZE_MAX... 4294967295UL
> checking for snprintf... yes
> checking for socklen_t... (cached) yes
> checking for sys/inttypes.h... (cached) no
> checking for sys/bitypes.h... (cached) no
> checking for bit size of ptrdiff_t... (cached) 32
> checking for bit size of sig_atomic_t... (cached) 32
> checking for bit size of size_t... (cached) 32
> checking for bit size of wchar_t... (cached) 32
> checking for bit size of wint_t... (cached) 32
> checking whether sig_atomic_t is signed... (cached) no
> checking whether wchar_t is signed... (cached) no
> checking whether wint_t is signed... (cached) no
> checking for ptrdiff_t integer literal suffix... (cached) l
> checking for sig_atomic_t integer literal suffix... (cached) u
> checking for size_t integer literal suffix... (cached) ul
> checking for wchar_t integer literal suffix... (cached) u
> checking for wint_t integer literal suffix... (cached) u
> checking for strverscmp... no
> checking whether mkdir is declared... yes
> checking absolute name of <sys/stat.h>... ///usr/include/sys/stat.h
> checking for unistd.h... (cached) yes
> checking for vasnprintf... no
> checking for ptrdiff_t... (cached) yes
> checking for snprintf... (cached) yes
> checking for wcslen... yes
> checking for stdint.h... (cached) no
> checking if we have Windows sockets and WSAStartup/WSACleanup... no
> ***
> *** Detecting options for shared libraries...
>
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for non-GNU ld... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... no
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -p
> checking how to recognise dependent libraries... file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking how to run the C++ preprocessor... aCC -E
> checking for g77... no
> checking for xlf... no
> checking for f77... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for xlf90... no
> checking for f90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for gfortran... no
> checking for g95... no
> checking for xlf95... no
> checking for f95... no
> checking for fort... no
> checking for ifort... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for ftn... no
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether  accepts -g... no
> checking the maximum length of command line arguments... 262144
> checking command to parse /usr/bin/nm -p output from aCC -Ae object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... (cached) ranlib
> checking for strip... strip
> checking for aCC -Ae option to produce PIC... 
> checking if aCC -Ae static flag -Wl,-a -Wl,archive works... yes
> checking if aCC -Ae supports -c -o file.o... yes
> checking whether the aCC -Ae linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... hpux11.11 dld.sl
> 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
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking whether the aCC linker (/usr/bin/ld) supports shared libraries... yes
> checking for aCC option to produce PIC... 
> checking if aCC static flag -Wl,-a -Wl,archive works... yes
> checking if aCC supports -c -o file.o... yes
> checking whether the aCC linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... hpux11.11 dld.sl
> checking how to hardcode library paths into programs... immediate
> appending configuration tag "F77" to libtool
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating po/Makefile.in
> config.status: WARNING:  po/Makefile.in.in seems to ignore the --datarootdir setting
> config.status: creating doc/Makefile
> config.status: creating doc/examples/Makefile
> config.status: creating doc/scripts/Makefile
> config.status: creating doc/manpages/Makefile
> config.status: creating doc/reference/Makefile
> config.status: creating gl/Makefile
> config.status: creating lgl/Makefile
> config.status: creating tests/Makefile
> config.status: creating tests/rsa-md5-collision/Makefile
> config.status: creating tests/pkcs1-padding/Makefile
> config.status: creating tests/pkcs8-decode/Makefile
> config.status: creating tests/pkcs12-decode/Makefile
> config.status: creating includes/Makefile
> config.status: creating includes/gnutls/gnutls.h
> config.status: creating lib/Makefile
> config.status: creating lib/minitasn1/Makefile
> config.status: creating lib/x509/Makefile
> config.status: creating libextra/Makefile
> config.status: creating libextra/openpgp/Makefile
> config.status: creating libextra/opencdk/Makefile
> config.status: creating libextra/minilzo/Makefile
> config.status: creating src/Makefile
> config.status: creating src/x509/Makefile
> config.status: creating src/srp/Makefile
> config.status: creating src/openpgp/Makefile
> config.status: creating src/cfg/Makefile
> config.status: creating src/cfg/platon/Makefile
> config.status: creating src/cfg/platon/str/Makefile
> config.status: creating lib/libgnutls-config
> config.status: creating libextra/libgnutls-extra-config
> config.status: creating lib/gnutls.pc
> config.status: creating libextra/gnutls-extra.pc
> config.status: creating config.h
> config.status: executing default-1 commands
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
> config.status: executing depfiles commands
> config.status: executing chmod-config commands
>
> _______________________________________________
> Help-gnutls mailing list
> Help-gnutls at gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnutls





More information about the Gnutls-help mailing list