Bug #16885 Updated: OpenSSL : function `X509_PURPOSE_ANY´ undeclared

2002-05-01 Thread denis . goffinet

 ID:   16885
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Solaris 8
 PHP Version:  4.1.2
 New Comment:

my openssl version is 0.9.5


Previous Comments:


[2002-04-29 12:49:57] [EMAIL PROTECTED]

I've just place under comment the line and all worked fine. 

I've looked after X509_PURPOSE_ANY key words in any of the openssl
headers files and didn't find it 

Will post here tomorrow my openssl version

Regards
Denis

PS to Jani : Thanks for your tip, I'm just a little newbie in this big
big world



[2002-04-28 20:19:43] [EMAIL PROTECTED]

Which openssl version is this?

--Jani

p.s. Always use the install prefix in configure paths..
(Not /usr/local/lib but /usr/local)




[2002-04-28 06:05:59] [EMAIL PROTECTED]

Configure : ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-gd=/usr/local
--zith-png-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib
--with-snmp=/usr/local --with-openssl=/usr/local/ssl

There all works great

Then I compile using GCC and a lot of errors 

/bin/sh /appl/php-4.1.2/libtool --silent --mode= compile gcc -I.
-I/appl/php-4.1.2/ext/openssl -I/appl/php-4.1.2/main -I/appl/php-4.1.2
-I/usr/local/apache/include -I/appl/php-4.1.2/Zend
-I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/mysql/include -I/usr/local/include/ucd-snmp
-I/appl/php-4.1.2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS2=280 -DMOD_SSL=208105 -DEAPI -DUSE_EXPAT
-I/appl/php-4.1.2/TSRM -g -02 -prefer-pic -c openssl.c
openssl.c: In function `zm_startup_openssl´:
openssl.c:136: `X509_PURPOSE_ANY´ undeclared (first use in ths
function)
openssl.c:136: (Each undeclared identifier is reported only once
openssl.c:136: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target`openssl.lo´ Current
working directory /appl/php-4.1.2/ext/openssl ***Error code 1
make: Fatal error: Command failed for target `all-recursive´






-- 
Edit this bug report at http://bugs.php.net/?id=16885edit=1




Bug #16885: OpenSSL : function `X509_PURPOSE_ANY´ undeclared

2002-04-28 Thread denis . goffinet

From: [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:  4.1.2
PHP Bug Type: Compile Failure
Bug description:  OpenSSL : function `X509_PURPOSE_ANY´ undeclared 

Configure : ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-gd=/usr/local
--zith-png-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib
--with-snmp=/usr/local --with-openssl=/usr/local/ssl

There all works great

Then I compile using GCC and a lot of errors 

/bin/sh /appl/php-4.1.2/libtool --silent --mode= compile gcc -I.
-I/appl/php-4.1.2/ext/openssl -I/appl/php-4.1.2/main -I/appl/php-4.1.2
-I/usr/local/apache/include -I/appl/php-4.1.2/Zend
-I/usr/local/ssl/include -I/usr/local/include -I/usr/local/mysql/include
-I/usr/local/include/ucd-snmp -I/appl/php-4.1.2/ext/xml/expat
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208105 -DEAPI
-DUSE_EXPAT -I/appl/php-4.1.2/TSRM -g -02 -prefer-pic -c openssl.c
openssl.c: In function `zm_startup_openssl´:
openssl.c:136: `X509_PURPOSE_ANY´ undeclared (first use in ths function)
openssl.c:136: (Each undeclared identifier is reported only once
openssl.c:136: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target`openssl.lo´ Current working
directory /appl/php-4.1.2/ext/openssl ***Error code 1
make: Fatal error: Command failed for target `all-recursive´


-- 
Edit bug report at http://bugs.php.net/?id=16885edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=16885r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=16885r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=16885r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16885r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16885r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16885r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16885r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16885r=submittedtwice