Error to configure Squirrelmail IMAP Proxy

Hi there.. :smiley:

I"m new in Linux. Trying to install squirrelmail-imap_proxy-1.2.7 on Red Hat WS 4. Errors from ./configure as shown below:

[root@D04 squirrelmail-imap_proxy-1.2.7]# ./configure
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for connect... yes
checking for pthread_create in -lpthread... yes
checking for mmap... yes
checking for yp_get_default_domain in -lnsl... yes
checking for request_init in -lwrap... yes
checking for EVP_DigestInit in -lcrypto... no
configure: error: Can't compile without OpenSSL crypto library!!!

Followed the known issue file in the same directory with ./configure --with-ssl=/usr/local/ssl/lib but gives the same error.

I got this error in config.log file:

configure:2846: checking for mmap
configure:2903: gcc -o conftest -g -O2 conftest.c -lpthread >&5
configure:2909: $? = 0
configure:2912: test -z || test ! -s conftest.err
configure:2915: $? = 0
configure:2918: test -s conftest
configure:2921: $? = 0
configure:2933: result: yes
configure:3029: checking for yp_get_default_domain in -lnsl
configure:3059: gcc -o conftest -g -O2 conftest.c -lnsl -lpthread >&5
configure:3065: $? = 0
configure:3068: test -z || test ! -s conftest.err
configure:3071: $? = 0
configure:3074: test -s conftest
configure:3077: $? = 0
configure:3090: result: yes
configure:3109: checking for request_init in -lwrap
configure:3139: gcc -o conftest -g -O2 conftest.c -lwrap -lnsl -lpthread >&5
configure:3145: $? = 0
configure:3148: test -z || test ! -s conftest.err
configure:3151: $? = 0
configure:3154: test -s conftest
configure:3157: $? = 0
configure:3170: result: yes
configure:3192: checking for EVP_DigestInit in -lcrypto
configure:3222: gcc -o conftest -g -O2 conftest.c -lcrypto -lwrap -lnsl -lpthread >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:3228: $? = 1
configure: failed program was:
| /* confdefs.h. /
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_LIBPTHREAD 1
| #define HAVE_LIBNSL 1
| #define HAVE_LIBWRAP 1
| /
end confdefs.h. /
|
| /
Override any gcc2 internal prototype to avoid an error. /
| #ifdef __cplusplus
| extern "C"
| #endif
| /
We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char EVP_DigestInit ();
| int
| main ()
| {
| EVP_DigestInit ();
| ;
| return 0;
| }
configure:3253: result: no
configure:3263: error: Can't compile without OpenSSL crypto library!!!

Can someone guide me on how to solve this problem? Thanks in advance...

Do you have OpenSSL installed?

You can get binaries for most hosts for most open apps from trustworthy sources, if the configure/make gets too daunting.

1 Like

yes, I got OpenSSL installed.

[root@D04 ~]# rpm -qa | grep ssl
xmlsec1-openssl-1.2.6-3
openssl-0.9.7a-43.17.el4_6.1

That's not enough to compile with openssl. Install openssl-devel. It's a fact of life on nearly any binary distro that you have to hunt these down and install them one by one...

1 Like

Thanks guys. I will give it a try

---------- Post updated at 12:28 AM ---------- Previous update was at 12:27 AM ----------

Thanks guys. I will give it a try..

---------- Post updated at 12:28 AM ---------- Previous update was at 12:28 AM ----------

thanks guys... a big thanks to you all. I managed to installed openssl-devel.

[root@D04 OpenSSL]# rpm -qa | grep ssl
xmlsec1-openssl-1.2.6-3
openssl-devel-0.9.7a-43.17.el4_8.6
openssl-0.9.7a-43.17.el4_8.6

---------- Post updated at 12:32 AM ---------- Previous update was at 12:28 AM ----------

now I can run ./configure

[root@D04 squirrelmail-imap_proxy-1.2.7]# ./configure
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for connect... yes
checking for pthread_create in -lpthread... yes
checking for mmap... yes
checking for yp_get_default_domain in -lnsl... yes
checking for request_init in -lwrap... yes
checking for EVP_DigestInit in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for initscr in -lcurses... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... 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... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for typedef nfds_t... yes
checking for an ANSI C-conforming const... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for socket... yes
checking for poll... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
[root@D04 squirrelmail-imap_proxy-1.2.7]#

I guess this should be ok.

---------- Post updated at 12:36 AM ---------- Previous update was at 12:32 AM ----------

A good link to find rpm for my case is h�t�t�p�:�/�/rpm.pbone�.�net/ (remove � symbol) - sorry I cannot post link due to my post is less than 5.

Yes, us hpux guys have a nice repository that tells us where the supporting binary or source is: Porting And Archive Centre For HP-UX Even for other platforms, it's not a bad reference.

Does red hat have this?