Operating System - HP-UX
1829115 Members
13057 Online
109986 Solutions
New Discussion

configure: error: OpenSSL version header not found

 
yulianto piyut
Valued Contributor

configure: error: OpenSSL version header not found

all,

I want to install openssh-4.3p1. openssl already installed (default by system) using OpenSSL 0.9.7d.
when i run ./configure --with-pam --with-ssl-dir=/opt/openssl/include/openssl, there is error "configure: error: OpenSSL version header not found". When i tried again to install with prefix ssl directory changed to "--with-ssl-dir=/opt/openssl/lib", I have the same error.

how to fix it ?

BR,

-yut-
2 REPLIES 2
Peter Godron
Honored Contributor

Re: configure: error: OpenSSL version header not found

Hi,
what are the error details in config.log ?
yulianto piyut
Valued Contributor

Re: configure: error: OpenSSL version header not found

i have grep in config.log...

...skipping...
configure:14799: test -s conftest
configure:14802: $? = 0
configure:14888: checking OpenSSL header version
configure:14924: cc -o conftest -g -I/opt/openssl/include/openssl -I/usr/local/include -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPE
N_SOURCE_EXTENDED=1 -L/opt/openssl/include/openssl -L/usr/local/lib conftest.c -lcrypto -lpam -lnsl -lxnet -lsec -lz >&5
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "conftest.c", line 140: error 1705: Function prototypes are an ANSI feature.
configure:14927: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| #define WORDS_BIGENDIAN 1
| #define _FILE_OFFSET_BITS 64
| #define LOGIN_PROGRAM_FALLBACK "/usr/bin/login"
| #define _PATH_PASSWD_PROG "/usr/bin/passwd"
| #ifndef __cplusplus
| #define inline
| #endif
| #define USE_PIPES 1
| #define LOGIN_NO_ENDOPT 1
| #define LOGIN_NEEDS_UTMPX 1
| #define LOCKED_PASSWD_STRING "*"
| #define SPT_TYPE SPT_PSTAT
| #define HAVE_LIBXNET 1
| #define PAM_SUN_CODEBASE 1
| #define DISABLE_UTMP 1
| #define USE_BTMP 1
| #define HAVE_CRYPT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_GLOB_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_RPC_TYPES_H 1
| #define HAVE_SECURITY_PAM_APPL_H 1
...skipping...
| #define HAVE_LIBPAM 1
| #define USE_PAM 1
| #define HAVE_OPENSSL 1
| /* end confdefs.h. */
|
| #include
| #include
| #include
| #define DATA "conftest.sslincver"
| int main(void) {
| FILE *fd;
| int rc;
|
| fd = fopen(DATA,"w");
| if(fd == NULL)
| #define HAVE_GAI_STRERROR 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_TCSENDBREAK 1
| #define HAVE_DECL_H_ERRNO 1
| #define HAVE_SETRESUID 1
| #define HAVE_SETRESGID 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_TIME 1
| #define HAVE_ENDUTENT 1
| #define HAVE_GETUTENT 1
| #define HAVE_GETUTID 1
| #define HAVE_GETUTLINE 1
| #define HAVE_PUTUTLINE 1
| #define HAVE_SETUTENT 1
| #define HAVE_UTMPNAME 1
| #define HAVE_ENDUTXENT 1
| #define HAVE_GETUTXENT 1
| #define HAVE_GETUTXID 1
| #define HAVE_GETUTXLINE 1
| #define HAVE_PUTUTXLINE 1
| #define HAVE_SETUTXENT 1
| #define HAVE_GETPAGESIZE 1
| #define BROKEN_SNPRINTF 1
| #define BROKEN_SNPRINTF 1
| #define SNPRINTF_CONST /* not const */
| #define BROKEN_GETADDRINFO 1
| #define GETSPNAM_CONFLICTING_DEFS 1
| #define HAVE_LIBPAM 1
| #define USE_PAM 1
| #define HAVE_OPENSSL 1
| /* end confdefs.h. */
|
| #include
| #include
| #include
| #define DATA "conftest.sslincver"
| int main(void) {
| FILE *fd;
| int rc;
|
| fd = fopen(DATA,"w");
| if(fd == NULL)
| #define HAVE_GAI_STRERROR 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_TCSENDBREAK 1
| #define HAVE_DECL_H_ERRNO 1
| #define HAVE_SETRESUID 1
| #define HAVE_SETRESGID 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_TIME 1
| #define HAVE_ENDUTENT 1
| #define HAVE_GETUTENT 1
| #define HAVE_GETUTID 1
| #define HAVE_GETUTLINE 1
| #define HAVE_PUTUTLINE 1
| #define HAVE_SETUTENT 1
| #define HAVE_UTMPNAME 1
| #define HAVE_ENDUTXENT 1
| #define HAVE_GETUTXENT 1
| #define HAVE_GETUTXID 1
| #define HAVE_GETUTXLINE 1
| #define HAVE_PUTUTXLINE 1
| #define HAVE_SETUTXENT 1
| #define HAVE_GETPAGESIZE 1
| #define BROKEN_SNPRINTF 1
| #define BROKEN_SNPRINTF 1
| #define SNPRINTF_CONST /* not const */
| #define BROKEN_GETADDRINFO 1
| #define GETSPNAM_CONFLICTING_DEFS 1
| #define HAVE_LIBPAM 1
| #define USE_PAM 1
| #define HAVE_OPENSSL 1
| /* end confdefs.h. */
|
| #include
| #include
| #include
| #define DATA "conftest.sslincver"
| int main(void) {
| FILE *fd;
| int rc;
|
| fd = fopen(DATA,"w");
| if(fd == NULL)
| exit(1);
|
| if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
| exit(1);
|
| exit(0);
| }
|
configure:14946: result: not found
configure:14948: error: OpenSSL version header not found.