When I run configure, it fails with the error about "Something is likely to be messed up here...". The last lines in my debug.log file are

/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status

I have both libcrypt.a and libcrypt.so in /usr/lib. I run configure with:

./configure \
--with-apxs=/opt/apache-1.3.12/bin/apxs \
--with-config-file-path=/etc \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/src/apache/modules/php/depend/jpeg-
6b \
--with-ttf=/usr/local \
--with-imap=/usr/src/apache/modules/php/depend/imap-4.
7c/c-client \
--with-imap-ssl \
--with-mysql=/usr/local \
--with-ldap=/usr/local \
--with-openssl \
--with-xml \
--with-snmp \
--enable-ucd-snmp-hack \
--enable-track-vars \
--enable-versioning \
--enable-ftp

    Apparently the problem was with my --with-imap-ssl option. When I take that out, configure works. I don't know what it takes to use IMAP/SSL, but I guess I'll have to live without it.

      3 months later

      I arrived tp the same conclusion trying to compile php4.0.4 in a Cobalt RAQ2, the only problem seems to be this lcrypto thata disappear when you leave off the --with-imap-ssl option...

      I was wondering if you solved the problem anyway, thanks

      Martino Piccinato

        2 months later

        Incidentally, I wasn't looking at all to compile php, but netatalk, and reading this gave me the answer...

        The crypto.a library is located in your openssl lib directory, so add a -I/pathtoopenssllib/ to the gcc command.

          2 months later

          Martino,

          how do you go about to compile php4 on a raq2? I was searching for a howto all over the internet but couldn't find one.

          Would be great if you could post it hear or send it to my email.

          Thanks in advance,

          Martin

            Write a Reply...