Custombuild: [ext/openssl/openssl.lo] Error 1

duncan

Verified User
Joined
Jan 19, 2005
Messages
94
Location
Halifax, NS, Canada
Hi Everyone,

I am running
./build php5-cgi n
and I get the following error:
/usr/local/directadmin/custombuild/php-5.2.8/ext/openssl/openssl.c:3933: error: 'php_stream' has no member named 'context'
make: *** [ext/openssl/openssl.lo] Error 1

There are also TONS of these types of errors:
In file included from /usr/include/openssl/x509.h:556,
from /usr/local/directadmin/custombuild/php-5.2.8/ext/openssl/openssl.c:39:
/usr/include/openssl/pkcs7.h:288: error: expected ')' before '*' token
/usr/include/openssl/pkcs7.h:289: error: expected ')' before '*' token


So I went ahead and tried to update openssl on the machine:
[root@vps custombuild]# yum install openssl
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: ftp.telus.net
* updates: ftp.telus.net
* addons: ftp.telus.net
* extras: ftp.telus.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package openssl - 0.9.8b-10.el5_2.1.i686 is already installed.
Nothing to do

Any ideas what the snag could be? I am running CentOS 5.

Thanks!
 
Last edited:
I think your server is missing glibc-headers package.
 
Hello,

I know this is an old thread but I'm having the same kind of problem on CentOS 6 (x86_64)

I'm trying to have custombuild make it so that I got php4 working as CGI and php5 as CLI but I'm getting alot of errors like these:

Code:
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:1911: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:1913: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:1955: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:2006: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
make: *** [ext/openssl/openssl.lo] Error 1
make: *** Waiting for unfinished jobs....
[root@ns2 custombuild]#

Putty on default does not give me the ability to scroll back much but this is what I got:

http://pastebin.com/nnJ9iP0a

I'm assuming openssl refuses to compile because I'm on a 64 bit setup?
but no idea where to from there
 
Sorry I couldn't find an edit button but:

Code:
[root@ns2 scripts]# yum install glibc-headers
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.supportex.net
 * extras: mirrors.supportex.net
 * updates: mirrors.supportex.net
Setting up Install Process
Package glibc-headers-2.12-1.7.el6_0.5.x86_64 already installed and latest version
Nothing to do
 
It must be the version of openssl devel or something, maybe there is a way to downgrade it to a version that supports the required functions?
 
a workaround would be to go into
/usr/local/directadmin/custombuild/configure/suphp

and remove the line that says --with-ssl in configure.php4
then run your ./build again

this makes it so that php4 compiles without SSL support

it's not a fix obviously but luckily our old websites don't require SSL
 
a workaround would be to go into
/usr/local/directadmin/custombuild/configure/suphp

and remove the line that says --with-ssl in configure.php4
then run your ./build again

this makes it so that php4 compiles without SSL support

it's not a fix obviously but luckily our old websites don't require SSL

Hi, I don't use CentOS, but I ran into a similar problem with FreeBSD when I had a newer version of OpenSSL installed. Take a look at the following help entries; they might give you an idea on what is wrong. In my case, the proper SSL libraries were not found with the updated version of OpenSSL (rather, there was a header mismatch...).

http://help.directadmin.com/item.php?id=178
http://help.directadmin.com/item.php?id=296
 
Back
Top