I have encountered an issue installing php-5.2.6 on Solaris 10.

-openssl-0.9.8h

I have encountered the following error:

Undefined first referenced
symbol in file
EVP_CIPHER_CTX_block_size ext/openssl/.libs/openssl.o
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I am new to the php installation and not real sure where to go from here.

I am using the following for "configure":

./configure \ --prefix=$APACHE_PREFIX \ --sysconfdir=$APACHE_PREFIX/conf \ --with-config-file-path=$APACHE_PREFIX/conf \ --disable-debug \ --with-pic \ --with-curl=$CURL_PREFIX \ --disable-rpath \ --enable-inline-optimization \ --with-png-dir=/usr \ --with-gd \ --enable-gd-native-ttf \ --with-ttf \ --with-dom=/usr/local \ --with-expat-dir=/usr/local \ --with-gettext \ --with-jpeg-dir=/usr/local \ --with-openssl=$OPENSSL_PREFIX \ --with-png \ --with-regex=system \ --with-xml \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-exif \ --enable-ftp \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-discard-path \ --enable-wddx \ --with-pear \ --with-kerberos=/usr/kerberos \ --with-ldap \ --with-mcrypt=$MCRYPT_PREFIX \ --with-oci8=$ORACLE_HOME \ --enable-memory-limit \ --enable-shmop \ --enable-versioning \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mcal \ --with-apxs2=$APACHE_PREFIX/bin/apxs \

In addition I have attached my log from the install.

Any help would be greatly appreciated. I have been browsing forums for most of the last two days trying to find a solution but have come up dry. I have seen very similar posts, no resolution.

Thanks in advance!

    5 months later

    Hi dmass83,
    in these days I have encountered the same problem... I'm replying to you because I hope this post will save time for you and other people, because I've not found any other solution in the web.

    I think the problem is in the header file ( /usr/include/openssl/evp.h ) that are newer or older than the libraries (/lib/libssl.so) installed in your system. So the definition of EVP_CIPHER_CTX_block_size
    #define EVP_CIPHER_CTX_block_size(e) ((e)->cipher->block_size)
    differs from the implementation in your libssl library. This could depend by an incorrect update of openssl that has preserve the old headers files (the headers are generally installed with the openssl-devel package).

    HOW TO FIX:

    You can unistall openssl package, verify that also the headers have been removed and than re-install it (in particular search for the file evp.h and be sure it has been deleted). Than try to re-compile your php (run make clean before restarting).

    Hope this helps :-)

    Laura

      Write a Reply...