Issue building NSS 3.74 using gcc731 compiler on Linux

14 views
Skip to first unread message

Usha Nayak

unread,
Jan 20, 2022, 11:01:52 AM1/20/22
to dev-tec...@mozilla.org
Hello,

I'm building NSS 3.74 on Linux. It has following configuration:

PLATFORM        = x86_64
MODEL           = PowerEdge R710
PROCESSORS      = 2
EFFECTIVE CPUs  = 16
CLOCK SPEED     = 2.39 GHz
TOTAL MEMORY    = 47.00 GB
 SWAP            = 24.00 GB

 OSVERSION       = LNX:Red Hat Enterprise Linux Server release 7.8 (Maipo) 3.10.0-1127.el7.x86_64 (LSB )
 KERNEL PATCH    = 3.10.0-1127.el7.x86_64
 COMPILERS       = gcc-4.8.5-39.el7.x86_64

However, we are supposed to build NSS with following compiler g++ (GCC) 7.3.1 20180303 ( -std=c++17 )

To build NSS, I followed below steps:
1) Downloaded NSS+NSPR source tarballs ->  unzipped
2) set env variables:
setenv USE_64 1
setenv BUILD_OPT 1
setenv NSS_DISABLE_GTESTS 1
setenv PATH /opt/rh/devtoolset-7/root/usr/bin:$PATH  ( i want to override the default gcc4.8.5 compiler from being used )
setenv CC g++
3) cd <nss directory>
4) Executed “make nss_build_all”

I got following error while building:
...
gmake -C linking export
gmake[5]: Entering directory '/XXX/NSS_linux/nss-3.74/nspr/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/pr/src/linking'
g++ -o prlink.o -c -fvisibility=hidden     -Wall -pthread -O2 -fPIC  -UDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_POINTER_LOCALTIME_R=1 -DLINUX=1 -DHAVE_DLADDR=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1 -DHAVE_SECURE_GETENV=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/XXX/NSS_linux/nss-3.74/nss/../dist/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/include -I../../../../pr/include -I../../../../pr/include/private  ../../../../pr/src/linking/prlink.c
../../../../pr/src/linking/prlink.c: In function ‘char* PR_GetLibraryPath()’:
../../../../pr/src/linking/prlink.c:262:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
             ev = "/usr/lib:/lib";
                  ^~~~~~~~~~~~~~~
../../../../pr/src/linking/prlink.c: In function ‘char* PR_GetLibraryFilePathname(const char*, PRFuncPtr)’:
../../../../pr/src/linking/prlink.c:965:23: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
     result = PR_Malloc(strlen(dli.dli_fname)+1);
              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
gmake[5]: *** [../../../../config/rules.mk:450: prlink.o] Error 1
gmake[5]: Leaving directory '/XXX/NSS_linux/nss-3.74/nspr/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/pr/src/linking'
gmake[4]: *** [../../../config/rules.mk:163: export] Error 2
gmake[4]: Leaving directory '/XXXX/NSS_linux/nss-3.74/nspr/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/pr/src'
gmake[3]: *** [../../config/rules.mk:163: export] Error 2
gmake[3]: Leaving directory '/XXXX/NSS_linux/nss-3.74/nspr/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/pr'
gmake[2]: *** [../config/rules.mk:163: export] Error 2
gmake[2]: Leaving directory '/XXX/NSS_linux/nss-3.74/nspr/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ'
gmake[1]: *** [Makefile:142: build_nspr] Error 2
gmake[1]: Leaving directory '/XXX//NSS_linux/nss-3.74/nss'
gmake: *** [Makefile:51: nss_build_all] Error 2


With gcc4.8.5 compiler ( NOTE: I had to modify the Linux.mk file to include -D_XOPEN_SOURCE and build was fine) , I see below options:
cc -o Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/pkix-errcodes.o -c -std=c99 -O2 -fPIC  -m64 -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -D_XOPEN_SOURCE -Wall -Wshadow -Werror -DXP_UNIX -DXP_UNIX -UDEBUG -DNDEBUG -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DSDB_MEASURE_USE_TEMP_DIR -D_REENTRANT -UDEBUG -DNDEBUG -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DSDB_MEASURE_USE_TEMP_DIR -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I../../../dist/Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/seccmd  pkix-errcodes.c

Pasting NSS_linux\nss-3.74\nspr\Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ\config.log for reference:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../configure --disable-debug --enable-optimize --enable-64bit --with-dist-prefix=/XXX/NSS_linux/nss-3.74/nss/../dist/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ --with-dist-includedir=/XXXX/NSS_linux/nss-3.74/nss/../dist/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/include

## --------- ##
## Platform. ##
## --------- ##

hostname = XXXX
uname -m = x86_64
uname -r = 3.10.0-1127.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Tue Feb 18 16:39:12 EST 2020

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/rh/devtoolset-7/root/usr/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /opt/puppetlabs/bin
PATH: /opt/dell/srvadmin/bin
PATH: /bin
PATH: /usr/site/devop_tools/bin
PATH: /usr/site/devop_tools/bin/lnx64
PATH: /usr/site/devop_tools/UDU/tools/bin/unx
PATH: /usr/site/bin
PATH: /usr/site/bin/lnx64


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2381: checking build system type
configure:2395: result: x86_64-pc-linux-gnu
configure:2415: checking host system type
configure:2428: result: x86_64-pc-linux-gnu
configure:2448: checking target system type
configure:2461: result: x86_64-pc-linux-gnu
configure:3012: checking for whoami
configure:3030: found /usr/bin/whoami
configure:3043: result: /usr/bin/whoami
configure:3180: checking for gcc
configure:3207: result: g++
configure:3436: checking for C compiler version
configure:3445: g++ --version >&5
g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3456: $? = 0
configure:3445: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-7/root/usr --mandir=/opt/rh/devtoolset-7/root/usr/share/man --infodir=/opt/rh/devtoolset-7/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --with-default-libstdcxx-abi=gcc4-compatible --with-isl=/builddir/build/BUILD/gcc-7.3.1-20180303/obj-x86_64-redhat-linux/isl-install --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
configure:3456: $? = 0
configure:3445: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3456: $? = 1
configure:3445: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:3456: $? = 1
configure:3476: checking whether the C compiler works
configure:3498: g++    conftest.c  >&5
configure:3502: $? = 0
configure:3550: result: yes
configure:3553: checking for C compiler default output file name
configure:3555: result: a.out
configure:3561: checking for suffix of executables
configure:3568: g++ -o conftest    conftest.c  >&5
configure:3572: $? = 0
configure:3594: result:
configure:3616: checking whether we are cross compiling
configure:3624: g++ -o conftest    conftest.c  >&5
configure:3628: $? = 0
configure:3635: ./conftest
configure:3639: $? = 0
configure:3654: result: no
configure:3659: checking for suffix of object files
configure:3681: g++ -c   conftest.c >&5
configure:3685: $? = 0
configure:3706: result: o
configure:3710: checking whether we are using the GNU C compiler
configure:3729: g++ -c   conftest.c >&5
configure:3729: $? = 0
configure:3738: result: yes
configure:3747: checking whether g++ accepts -g
configure:3767: g++ -c -g  conftest.c >&5
configure:3767: $? = 0
configure:3808: result: yes
configure:3825: checking for g++ option to accept ISO C89
configure:3888: g++  -c   conftest.c >&5
conftest.c:16:17: error: 'p' was not declared in this scope
 static char *e (p, i)
                 ^
conftest.c:16:20: error: 'i' was not declared in this scope
 static char *e (p, i)
                    ^
conftest.c:16:21: error: expression list treated as compound expression in initializer [-fpermissive]
 static char *e (p, i)
                     ^
conftest.c:19:1: error: expected unqualified-id before '{' token
 {
 ^
conftest.c: In function 'int main()':
conftest.c:55:21: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                     ^
conftest.c:55:52: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                                                    ^
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -qlanglvl=extc89 -c   conftest.c >&5
g++: error: unrecognized command line option '-qlanglvl=extc89'
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -qlanglvl=ansi -c   conftest.c >&5
g++: error: unrecognized command line option '-qlanglvl=ansi'
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -std -c   conftest.c >&5
g++: error: unrecognized command line option '-std'; did you mean '-mrtd'?
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -Ae -c   conftest.c >&5
<command-line>:0:1: error: missing '(' after predicate
conftest.c:16:17: error: 'p' was not declared in this scope
 static char *e (p, i)
                 ^
conftest.c:16:20: error: 'i' was not declared in this scope
 static char *e (p, i)
                    ^
conftest.c:16:21: error: expression list treated as compound expression in initializer [-fpermissive]
 static char *e (p, i)
                     ^
conftest.c:19:1: error: expected unqualified-id before '{' token
 {
 ^
conftest.c: In function 'int main()':
conftest.c:55:21: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                     ^
conftest.c:55:52: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                                                    ^
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -Aa -D_HPUX_SOURCE -c   conftest.c >&5
<command-line>:0:1: error: missing '(' after predicate
conftest.c:16:17: error: 'p' was not declared in this scope
 static char *e (p, i)
                 ^
conftest.c:16:20: error: 'i' was not declared in this scope
 static char *e (p, i)
                    ^
conftest.c:16:21: error: expression list treated as compound expression in initializer [-fpermissive]
 static char *e (p, i)
                     ^
conftest.c:19:1: error: expected unqualified-id before '{' token
 {
 ^
conftest.c: In function 'int main()':
conftest.c:55:21: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                     ^
conftest.c:55:52: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                                                    ^
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3888: g++ -Xc -D__EXTENSIONS__ -c   conftest.c >&5
g++: error: unrecognized command line option '-Xc'; did you mean '-c'?
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3904: result: unsupported
configure:4884: checking for ranlib
configure:4900: found /opt/rh/devtoolset-7/root/usr/bin/ranlib
configure:4911: result: ranlib
configure:4937: checking for as
configure:4955: found /opt/rh/devtoolset-7/root/usr/bin/as
configure:4967: result: /opt/rh/devtoolset-7/root/usr/bin/as
configure:4983: checking for ar
configure:5001: found /opt/rh/devtoolset-7/root/usr/bin/ar
configure:5013: result: /opt/rh/devtoolset-7/root/usr/bin/ar
configure:5029: checking for ld
configure:5047: found /opt/rh/devtoolset-7/root/usr/bin/ld
configure:5059: result: /opt/rh/devtoolset-7/root/usr/bin/ld
configure:5075: checking for strip
configure:5093: found /opt/rh/devtoolset-7/root/usr/bin/strip
configure:5105: result: /opt/rh/devtoolset-7/root/usr/bin/strip
configure:5121: checking for windres
configure:5154: result: no
configure:5176: checking how to run the C preprocessor
configure:5207: g++ -E  conftest.c
configure:5207: $? = 0
configure:5221: g++ -E  conftest.c
conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:5221: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5246: result: g++ -E
configure:5266: g++ -E  conftest.c
configure:5266: $? = 0
configure:5280: g++ -E  conftest.c
conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:5280: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5332: checking for gcc -pipe support
configure:5377: result: no
configure:5382: checking for pragma diagnostic
dummy-hello.c: In function 'int main()':
dummy-hello.c:6:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *dummy = "";
                   ^~
configure:5408: result: no
configure:5419: checking whether C compiler supports -fprofile-generate
configure:5432: g++ -c  -fprofile-generate -fprofile-correction  conftest.c >&5
configure:5432: $? = 0
configure:5439: result: yes
configure:5451: checking for visibility(hidden) attribute
configure:5468: result: yes
configure:5473: checking for visibility pragma support
configure:5495: result: yes
configure:5524: checking for perl5
configure:5557: result: no
configure:5524: checking for perl
configure:5542: found /usr/bin/perl
configure:5554: result: /usr/bin/perl
configure:5850: g++ -c   conftest.c >&5
conftest.c: In function 'int main()':
conftest.c:16:15: error: '__thumb2__' was not declared in this scope
 return sizeof(__thumb2__);
               ^~~~~~~~~~
conftest.c:16:15: note: suggested alternative: '__unix__'
 return sizeof(__thumb2__);
               ^~~~~~~~~~
               __unix__
configure:5850: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
| #define HAVE_VISIBILITY_PRAGMA 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
| return sizeof(__thumb2__);
|   ;
|   return 0;
| }
configure:7466: checking for dlopen in -ldl
configure:7491: g++ -o conftest  -Wall   conftest.c -ldl   >&5
configure:7491: $? = 0
configure:7500: result: yes
configure:7503: checking dlfcn.h usability
configure:7503: g++ -c  -Wall  conftest.c >&5
configure:7503: $? = 0
configure:7503: result: yes
configure:7503: checking dlfcn.h presence
configure:7503: g++ -E  conftest.c
configure:7503: $? = 0
configure:7503: result: yes
configure:7503: checking for dlfcn.h
configure:7503: result: yes
configure:7518: checking whether g++ needs -traditional
configure:7552: result: no
configure:7564: checking for dladdr
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for gettid
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
/tmp/ccMN7Zqh.o: In function `main':
conftest.c:(.text+0x5): undefined reference to `gettid'
collect2: error: ld returned 1 exit status
configure:7564: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
| #define HAVE_VISIBILITY_PRAGMA 1
| #define XP_UNIX 1
| #define _GNU_SOURCE 1
| #define HAVE_FCNTL_FILE_LOCKING 1
| #define HAVE_POINTER_LOCALTIME_R 1
| #define LINUX 1
| #define HAVE_DLADDR 1
| /* end confdefs.h.  */
| /* Define gettid to an innocuous variant, in case <limits.h> declares gettid.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define gettid innocuous_gettid
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char gettid (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef gettid
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char gettid ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_gettid || defined __stub___gettid
| choke me
| #endif
|
| int
| main ()
| {
| return gettid ();
|   ;
|   return 0;
| }
configure:7564: result: no
configure:7564: checking for lchown
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for setpriority
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for strerror
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for syscall
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for secure_getenv
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
configure:7564: $? = 0
configure:7564: result: yes
configure:7564: checking for __secure_getenv
configure:7564: g++ -o conftest  -Wall   conftest.c  -ldl  >&5
/tmp/cc46pvkV.o: In function `main':
conftest.c:(.text+0x5): undefined reference to `__secure_getenv'
collect2: error: ld returned 1 exit status
configure:7564: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
| #define HAVE_VISIBILITY_PRAGMA 1
| #define XP_UNIX 1
| #define _GNU_SOURCE 1
| #define HAVE_FCNTL_FILE_LOCKING 1
| #define HAVE_POINTER_LOCALTIME_R 1
| #define LINUX 1
| #define HAVE_DLADDR 1
| #define HAVE_LCHOWN 1
| #define HAVE_SETPRIORITY 1
| #define HAVE_STRERROR 1
| #define HAVE_SYSCALL 1
| #define HAVE_SECURE_GETENV 1
| /* end confdefs.h.  */
| /* Define __secure_getenv to an innocuous variant, in case <limits.h> declares __secure_getenv.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define __secure_getenv innocuous___secure_getenv
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char __secure_getenv (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef __secure_getenv
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char __secure_getenv ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub___secure_getenv || defined __stub_____secure_getenv
| choke me
| #endif
|
| int
| main ()
| {
| return __secure_getenv ();
|   ;
|   return 0;
| }
configure:7564: result: no
configure:7698: checking for pthread_create in -lpthreads
configure:7723: g++ -o conftest  -Wall   conftest.c -lpthreads   >&5
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
configure:7723: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define NDEBUG 1
| #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
| #define HAVE_VISIBILITY_PRAGMA 1
| #define XP_UNIX 1
| #define _GNU_SOURCE 1
| #define HAVE_FCNTL_FILE_LOCKING 1
| #define HAVE_POINTER_LOCALTIME_R 1
| #define LINUX 1
| #define HAVE_DLADDR 1
| #define HAVE_LCHOWN 1
| #define HAVE_SETPRIORITY 1
| #define HAVE_STRERROR 1
| #define HAVE_SYSCALL 1
| #define HAVE_SECURE_GETENV 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char pthread_create ();
| int
| main ()
| {
| return pthread_create ();
|   ;
|   return 0;
| }
configure:7732: result: no
configure:7737: checking for pthread_create in -lpthread
configure:7762: g++ -o conftest  -Wall   conftest.c -lpthread   >&5
configure:7762: $? = 0
configure:7771: result: yes
configure:7931: checking whether g++ accepts -pthread
configure:7950: result: yes
configure:8535: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on XXXXX

config.status:836: creating Makefile
config.status:836: creating config/Makefile
config.status:836: creating config/autoconf.mk
config.status:836: creating config/nsprincl.mk
config.status:836: creating config/nsprincl.sh
config.status:836: creating config/nspr-config
config.status:836: creating config/nspr.pc
config.status:836: creating lib/Makefile
config.status:836: creating lib/ds/Makefile
config.status:836: creating lib/libc/Makefile
config.status:836: creating lib/libc/include/Makefile
config.status:836: creating lib/libc/src/Makefile
config.status:836: creating lib/tests/Makefile
config.status:836: creating pkg/Makefile
config.status:836: creating pr/Makefile
config.status:836: creating pr/include/Makefile
config.status:836: creating pr/include/md/Makefile
config.status:836: creating pr/include/obsolete/Makefile
config.status:836: creating pr/include/private/Makefile
config.status:836: creating pr/src/Makefile
config.status:836: creating pr/src/io/Makefile
config.status:836: creating pr/src/linking/Makefile
config.status:836: creating pr/src/malloc/Makefile
config.status:836: creating pr/src/md/Makefile
config.status:836: creating pr/src/md/unix/Makefile
config.status:836: creating pr/src/memory/Makefile
config.status:836: creating pr/src/misc/Makefile
config.status:836: creating pr/src/threads/Makefile
config.status:836: creating pr/tests/Makefile
config.status:836: creating pr/tests/dll/Makefile
config.status:836: creating pkg/linux/Makefile
config.status:836: creating pr/src/pthreads/Makefile
config.status:982: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=g++
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func___secure_getenv=no
ac_cv_func_dladdr=yes
ac_cv_func_gettid=no
ac_cv_func_lchown=yes
ac_cv_func_secure_getenv=yes
ac_cv_func_setpriority=yes
ac_cv_func_strerror=yes
ac_cv_func_syscall=yes
ac_cv_have_dash_pthread=yes
ac_cv_have_dash_pthreads=no
ac_cv_header_dlfcn_h=yes
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_lib_dl_dlopen=yes
ac_cv_lib_pthread_pthread_create=yes
ac_cv_lib_pthreads_pthread_create=no
ac_cv_objext=o
ac_cv_path_AR=/opt/rh/devtoolset-7/root/usr/bin/ar
ac_cv_path_AS=/opt/rh/devtoolset-7/root/usr/bin/as
ac_cv_path_LD=/opt/rh/devtoolset-7/root/usr/bin/ld
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_STRIP=/opt/rh/devtoolset-7/root/usr/bin/strip
ac_cv_path_WHOAMI=/usr/bin/whoami
ac_cv_prog_CPP='g++ -E'
ac_cv_prog_ac_ct_CC=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=no
ac_cv_prog_cc_g=yes
ac_cv_prog_gcc_traditional=no
ac_cv_target=x86_64-pc-linux-gnu
ac_cv_visibility_hidden=yes
ac_cv_visibility_pragma=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AIX_LINK_OPTS=''
AR='/opt/rh/devtoolset-7/root/usr/bin/ar'
AR_FLAGS='cr $@'
AS='$(CC)'
ASFLAGS='$(CFLAGS)'
ASM_SUFFIX='s'
CC='g++'
CCACHE='no'
CFLAGS=' -Wall -pthread -O2'
CPP='g++ -E'
CPPFLAGS=''
CPU_ARCH='x86'
CROSS_COMPILE=''
CXX='g++'
CXXFLAGS=' -Wall -pthread -O2'
CYGWIN_WRAPPER=''
DEFINES=' -UDEBUG'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_POINTER_LOCALTIME_R=1 -DLINUX=1 -DHAVE_DLADDR=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1 -DHAVE_SECURE_GETENV=1 -D_REENTRANT=1'
DLLFLAGS=''
DLL_SUFFIX='so'
DSO_CFLAGS='-fPIC'
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STRIP=''
EXEEXT=''
EXEFLAGS=''
FILTER=''
GCC_USE_GNU_LD=''
GNU_CC='1'
GREP=''
HOST_CC='g++'
HOST_CFLAGS=' -DXP_UNIX'
HOST_LDFLAGS=''
IMPLIB=''
LD='/opt/rh/devtoolset-7/root/usr/bin/ld'
LDFLAGS=''
LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
LIBOBJS=''
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
LIBS=''
LIB_SUFFIX='a'
LTLIBOBJS=''
MACOSX_DEPLOYMENT_TARGET=''
MACOS_SDK_DIR=''
MDCPUCFG_H='_linux.cfg'
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
MOD_MAJOR_VERSION='4'
MOD_MINOR_VERSION='32'
MOD_PATCH_VERSION='0'
MOZILLA_CLIENT=''
MOZ_DEBUG=''
MOZ_DEBUG_SYMBOLS=''
MOZ_OBJFORMAT=''
MOZ_OPTIMIZE='1'
MSC_VER=''
MT=''
NEXT_ROOT=''
NOSUCHFILE='/no-such-file'
NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
NSPR_MODNAME='nspr20'
OBJDIR='$(OBJDIR_NAME)'
OBJDIR_NAME='.'
OBJECT_MODE=''
OBJEXT='o'
OBJ_SUFFIX='o'
OPTIMIZER=''
OS_ARCH='Linux'
OS_DLLFLAGS=''
OS_LIBS='-lpthread -ldl '
OS_RELEASE='3.10'
OS_TARGET='Linux'
OS_TEST='x86_64'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
PROFILE_GEN_CFLAGS='-fprofile-generate'
PROFILE_GEN_LDFLAGS='-fprofile-generate'
PROFILE_USE_CFLAGS='-fprofile-use -fprofile-correction -Wcoverage-mismatch'
PROFILE_USE_LDFLAGS='-fprofile-use'
PR_MD_ARCH_DIR='unix'
PR_MD_ASFILES='os_Linux_x86_64.s'
PR_MD_CSRCS='linux.c'
RANLIB='ranlib'
RC=''
RCFLAGS=''
RELEASE_OBJDIR_NAME='Linux3.10_x86_64_PTH_OPT.OBJ'
RESOLVE_LINK_SYMBOLS=''
SHELL='/bin/sh'
SHELL_OVERRIDE=''
STRIP='/opt/rh/devtoolset-7/root/usr/bin/strip'
ULTRASPARC_LIBRARY=''
USE_64='1'
USE_BTHREADS=''
USE_CPLUS=''
USE_IPV6=''
USE_N32=''
USE_NSPR_THREADS=''
USE_PTHREADS='1'
USE_USER_PTHREADS=''
USE_X32=''
VISIBILITY_FLAGS='-fvisibility=hidden'
WHOAMI='/usr/bin/whoami'
WINDRES='echo not_windres'
WRAP_LDFLAGS=''
WRAP_SYSTEM_INCLUDES=''
ac_ct_CC='g++'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dist_bindir='${dist_prefix}/bin'
dist_includedir='/XXX/NSS_linux/nss-3.74/nss/../dist/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ/include'
dist_libdir='${dist_prefix}/lib'
dist_prefix='/XXX/NSS_linux/nss-3.74/nss/../dist/Linux3.10_x86_64_g++_glibc_PTH_64_OPT.OBJ'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include/nspr'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define NDEBUG 1
#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
#define HAVE_VISIBILITY_PRAGMA 1
#define XP_UNIX 1
#define _GNU_SOURCE 1
#define HAVE_FCNTL_FILE_LOCKING 1
#define HAVE_POINTER_LOCALTIME_R 1
#define LINUX 1
#define HAVE_DLADDR 1
#define HAVE_LCHOWN 1
#define HAVE_SETPRIORITY 1
#define HAVE_STRERROR 1
#define HAVE_SYSCALL 1
#define HAVE_SECURE_GETENV 1
#define _REENTRANT 1

configure: exit 0

Can NSS3.74 be built with the gcc731 compiler ? I would greatly appreciate help resolving this issue.

Thanks.
Usha

Yann Droneaud

unread,
Jan 20, 2022, 11:52:10 AM1/20/22
to dev-tec...@mozilla.org
Hi,

Le 20/01/2022 à 17:00, Usha Nayak a écrit :
> setenv CC g++

CC is the environment variable used to define the name of the C compiler.

g++ is a C++ compiler.

gcc is the C compiler


--

Yann Droneaud

OPTEYA


Reply all
Reply to author
Forward
0 new messages