CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)"
-
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 detailsPlease let me know what else I should provide to help find the cause of this. Thank you!
Paul
-
Hi,
could you please provide full config.log?
Best regards,
Victor -
-
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 -
-
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-agentwhich 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 supportI 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... noSo, I'm stumped.
Paul
-
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_64Best regards,
Victor -
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