Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)"

CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)"

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 36.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    ptrivino
    wrote on last edited by
    #1

    Hi, I am giving NetXMS a try. Since I'm CentOS 7, I'm doing 'from source' which seems well explained. I have run into a couple missing dependencies - OpenSSL (saw the document warning, thought that was already installed, but ok, fixed), curl (needed libcurl-devel, OK), libssh and libssh-devel, then this:

    checking size of wchar_t... configure: error: in `/home/a-ptrivino/Downloads/netxms-2.2.13':
    configure: error: cannot compute sizeof (wchar_t)
    See `config.log' for more details

    (That last line is a hoot, this is FROM config.log... :D)

    But I don't find anything about this in this forum. The germane part of config.log seems to be this:

    | #if HAVE_WCHAR_H
    | #include <wchar.h>
    | #endif
    |
    |
    | static long int longval () { return (long int) (sizeof (wchar_t)); }
    | static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
    | #include <stdio.h>
    | #include <stdlib.h>
    | int
    | main ()
    | {
    |
    |   FILE *f = fopen ("conftest.val", "w");
    |   if (! f)
    |     return 1;
    |   if (((long int) (sizeof (wchar_t))) < 0)
    |     {
    |       long int i = longval ();
    |       if (i != ((long int) (sizeof (wchar_t))))
    |       return 1;
    |       fprintf (f, "%ld", i);
    |     }
    |   else
    |     {
    |       unsigned long int i = ulongval ();
    |       if (i != ((long int) (sizeof (wchar_t))))
    |       return 1;
    |       fprintf (f, "%lu", i);
    |     }
    |   /* Do not output a trailing newline, as this causes \r\n confusion
    |      on some platforms.  */
    |   return ferror (f) || fclose (f) != 0;
    |
    |   ;
    |   return 0;
    | }
    configure:26002: error: in `/home/a-ptrivino/Downloads/netxms-2.2.13':
    configure:26004: error: cannot compute sizeof (wchar_t)
    See `config.log' for more details
    

    Please let me know what else I should provide to help find the cause of this.  Thank you!

    Paul

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      could you please provide full config.log?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • P
        P
        ptrivino
        wrote on last edited by
        #3

        Surely, attached. Thanks.

        Paul


        config.log

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Actual failure related to OpenSSL libraries:

          ./conftest: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

          Make sure you have matching libssl development and binary packages and that correct libssl.so is in library path.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • P
            P
            ptrivino
            wrote on last edited by
            #5

            OK I now see I have 1.0.2k and 1.1.1b of OpenSSL both installed (kinda), I'll try getting out of that. the 1.1.1b libssl.so is in /usr/local/lib64 but not in my libpath. But I don't want two versions at all, so...

            Thanks.

            1 Reply Last reply
            0
            • P
              P
              ptrivino
              wrote on last edited by
              #6

              OK, I started over - built a new CentOS 7 VM, and this time I verified that OpenSSL (v1.0.2k) is installed. I also then installed/updated MySQL, perl-core, libcurl-devel, and libssh-devel because those were what were complained about on the first tries. I then untar NetXMS (netxms-2.2.13.tar.gz), and do

              ./configure --with-server --with-mysql --with-agent
              

              which then gives these last three lines:

              checking openssl/crypto.h presence... no
              checking for openssl/crypto.h... no
              configure: error: OpenSSL is required for encryption support

              I do see that there are crypto.h files in the /usr/src/kernels (not what we want I'm sure). I also see that the tar for openssl v1.0.2r does have that file.

              Finding the --with-bundled-openssl config option, I tried that:

              checking openssl/crypto.h usability... no
              checking openssl/crypto.h presence... configure: error: OpenSSL is required for encryption support
              no
              checking for openssl/crypto.h... no

              So, I'm stumped.

              Paul

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                Did you install openssl-devel package?

                This is from my RHEL 7 system:

                build-rhel-7-x64:~$ rpm -qa | grep openssl
                openssl-libs-1.0.2k-16.el7_6.1.x86_64
                openssl-devel-1.0.2k-16.el7_6.1.x86_64
                openssl-1.0.2k-16.el7_6.1.x86_64

                Best regards,
                Victor

                1 Reply Last reply
                0
                • P
                  P
                  ptrivino
                  wrote on last edited by
                  #8

                  Victor, thanks, I have worked my way through the rest of the needed packages and/or set configure options to avoid them (mosquitto for example). Thanks.

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups