Help custom install php5


#1

Hi,
I am trying custom install of php5 with scripts found at dreamhost wiki for custom php install.
The script php5-install.sh dies at
"Making - c-client"

Really appreciate any help.
Thanks.


#2

Change the line:

make ldb > /dev/null 2>&1

to:

make ldb

What are the errors produced?

You should be able to see them above the failure notification in shell. Chances are it’s due to OpenSSL.

Maximum Cash Discount on any plan with MAXCASH


#3

Hi sXi,
Thank you very much for replying.Made the change you suggested so it went through c-client Make, however now I get these errors
"
cat CCTYPE -c cat CFLAGS cat OSCFLAGS -c osdep.c
osdep.c:266:20: error: x509v3.h: No such file or directory
osdep.c:267:17: error: ssl.h: No such file or directory
osdep.c:269:17: error: pem.h: No such file or directory
osdep.c:270:20: error: buffer.h: No such file or directory
osdep.c:271:17: error: bio.h: No such file or directory
osdep.c:272:20: error: crypto.h: No such file or directory
osdep.c:273:18: error: rand.h: No such file or directory
osdep.c:284: error: expected specifier-qualifier-list before ‘SSL_CTX’
osdep.c:297: error: expected declaration specifiers or ‘…’ before ‘X509_STORE_CTX’
osdep.c:298: error: expected ‘)’ before ‘’ token
osdep.c:303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘
’ token
osdep.c: In function ‘ssl_start_work’:
osdep.c:446: error: ‘BIO’ undeclared (first use in this function)
osdep.c:446: error: (Each undeclared identifier is reported only once
osdep.c:446: error: for each function it appears in.)
osdep.c:446: error: ‘bio’ undeclared (first use in this function)
osdep.c:447: error: ‘X509’ undeclared (first use in this function)
osdep.c:447: error: ‘cert’ undeclared (first use in this function)
osdep.c:458: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:462: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:465: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:465: error: ‘SSL_VERIFY_NONE’ undeclared (first use in this function)
osdep.c:466: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:466: error: ‘SSL_VERIFY_PEER’ undeclared (first use in this function)
osdep.c:468: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:471: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:475: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:482: error: ‘EVP_PKEY’ undeclared (first use in this function)
osdep.c:482: error: ‘key’ undeclared (first use in this function)
osdep.c:485: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:495: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:495: error: ‘SSL’ undeclared (first use in this function)
osdep.c:495: error: expected expression before ‘)’ token
osdep.c:497: error: ‘BIO_NOCLOSE’ undeclared (first use in this function)
osdep.c:498: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:499: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:500: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:500: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:502: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:506: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:507: warning: assignment makes pointer from integer without a cast
osdep.c: At top level:
osdep.c:523: error: expected declaration specifiers or ‘…’ before ‘X509_STORE_CTX’
osdep.c: In function ‘ssl_open_verify’:
osdep.c:530: error: ‘ctx’ undeclared (first use in this function)
osdep.c:530: warning: cast to pointer from integer of different size
osdep.c: At top level:
osdep.c:552: error: expected ‘)’ before ‘’ token
osdep.c: In function ‘ssl_getline_work’:
osdep.c:657: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:657: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:658: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:671: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:672: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:673: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_getbuffer’:
osdep.c:692: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:694: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:696: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:698: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_getdata’:
osdep.c:718: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:718: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:722: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:726: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:745: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:745: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:747: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:747: error: ‘SSL_ERROR_WANT_READ’ undeclared (first use in this function)
osdep.c:752: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:758: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:758: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:759: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_sout’:
osdep.c:795: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:801: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:805: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c: In function ‘ssl_abort’:
osdep.c:834: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:835: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:836: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:837: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:839: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:840: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:841: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c: In function ‘ssl_server_init’:
osdep.c:941: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:947: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:947: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
osdep.c:949: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:953: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:957: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:958: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
osdep.c:963: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:964: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:964: error: ‘ssl_genkey’ undeclared (first use in this function)
osdep.c:966: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:966: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:970: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:972: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c: At top level:
osdep.c:1007: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘
’ token
osdep.c: In function ‘ssl_server_input_wait’:
osdep.c:1037: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:1038: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1038: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1042: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1043: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1043: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:1044: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:1044: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:1045: error: ‘SSLSTREAM’ has no member named ‘ictr’
In file included from osdep.c:1057:
sslstdio.c: In function ‘PBIN’:
sslstdio.c:38: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:39: error: ‘SSLSTREAM’ has no member named ‘iptr’
sslstdio.c: In function ‘PSIN’:
sslstdio.c:57: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:58: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:60: error: ‘SSLSTREAM’ has no member named ‘iptr’
"
appreciate if you can suggest what is going wrong.

Thanks,
Mohit


#4

It can be difficult to ascertain as the servers aren’t all the same and every man and his dog can edit those Wiki scripts without realising that what works for their server doesn’t work for everyone’s.

First I’d first try a different version of imap. “imap-2004g”

Failing that I’d say you can either make imap without SSL support or remove the OpenSSL part entirely so it falls back on the SSL already installed at Dreamhost (php option = /usr should work).

Maximum Cash Discount on any plan with MAXCASH


#5

Hey,

Thanks for the tip but i’ve also been having a lot of trouble compiling the SSL options for the imap client and PHP itself. Interestingly I think your suggestion about falling back to /usr will not work, or at least not for me on siegal. If you look for the openSSL files they are not in the standard locations, eg on my personal debian boxes I have:

/usr/include/openssl

but

find /usr/ -iname ‘ocsp.h’ -print 2>/dev/null

returns no matches - it’s an openSSL header file and I dump off the permission denied errors. This says to me that there are no openssl files in /usr, hence include options there will fail.

Any thoughts?

Thanks in advance
-pete


#6

Does $which openssl return a blank line?

What does $uname -a return?

Maximum Cash Discount on any plan with MAXCASH


#7

#which openssl

openssl is /usr/bin/openssl

So the binary is in the usual location…

uname -a

Linux siegel 2.6.24.5-serf-xeon-c6.1-grsec #1 SMP Tue Oct 7 06:18:04 PDT 2008 x86_64 GNU/Linux

-pete