Re: [PHP] cybercash as a shared object

2005-05-28 Thread Bill Shupp

Bill Shupp wrote:
I need to install the cybercash module on a Debian Sarge system.  I 
really want to keep Debian's PHP packages, and just build this as a 
shared module.  At least one post in the archives indicates that this is 
possible, as does one changelog entry.  However, no specifics were offered.


Here's what I've tried:

I can build the module fine statically.

I can build the shared module cybercash.so by modifying the 
ext/cybercash/config.m4 and Makefile files, modeling them after the 
mcrypt.so entries.  While modules/cybercash.so does get built, I get 
this error when trying to load it:


PHP Warning:  Unknown(): Invalid library (maybe not a PHP library) 
'cybercash.so'  in Unknown on line 0


I'm building with PHP 4.3.10, and the latest cybercash from PECL.  I've 
also tried the cybercash module from 4.2.3, as suggested in one of the 
online manual comments.


Any guidance would be greatly appreciated!

Regards,

Bill Shupp


I was able to get it compiled by re-writing the config.m4 file, modeling 
it after the pfpro config.m4 file.  Here's what I posted on the online 
manual comments, just so that it makes it to the mail archives as well:




##

Here's how to install cybercash dynamically into PHP


1. Make sure you have the php dev tools installed, like pear and phpize.

2. Download the cybercash module:

pear download cybercash

3. Untar the module:

tar -xzf cybercash-version.tgz

4. Download and install my updated config.m4 file, the current one (as 
of version 1.18p1) doesn't work:


wget http://shupp.org/patches/cybercash.config.m4
cd cybercash-version
mv ../cybercash.config.m4 config.m4

5. Setup/compile module

phpize
./configure --with-cybercash=/path/to/cybercash-mck-library-source/c-api
make

6. Install module.  For Debian Sarge, the modules directory is 
/usr/lib/php4/20020429/:


cp modules/cybercash.so /usr/lib/php4/20020429/
(make install may work also)

7. Enable the module in php.ini, restart apache.


##


Incidentally, when I tried to compile the pfpro module from within the 
PHP source using buildconf, I got setting mismatch errors when trying to 
load it into Debian's PHP binaries.  However, by moving the extension 
out of the PHP source, and using phpize to setup it up, it loaded perfectly.


Hope this helps someone else save some time!


Regards,

Bill Shupp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] cybercash as a shared object

2005-05-25 Thread Bill Shupp

Blair Lowe wrote:

Wow can cybercash.so be compiled with the newer glibc libraries?


It compiles, but I can't load it.  See my previous post.


Is there source code for the old cybercash stuff?


Per my previous message, the cybercash extension is available in PECL. 
I already had access to the MCK libraries, though.  There's lots of 
stuff about this on Google.



The only thing I ever had was a binary, and when Verisign bought out
cybercash, the stuff went obsolete on me.


Lots of people still run the PHP cybercash module, but use it 
statically.  I'm trying to get it to run as a shared module.


Regards,

Bill

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] cybercash as a shared object

2005-05-24 Thread Bill Shupp
I need to install the cybercash module on a Debian Sarge system.  I 
really want to keep Debian's PHP packages, and just build this as a 
shared module.  At least one post in the archives indicates that this is 
possible, as does one changelog entry.  However, no specifics were offered.


Here's what I've tried:

I can build the module fine statically.

I can build the shared module cybercash.so by modifying the 
ext/cybercash/config.m4 and Makefile files, modeling them after the 
mcrypt.so entries.  While modules/cybercash.so does get built, I get 
this error when trying to load it:


PHP Warning:  Unknown(): Invalid library (maybe not a PHP library) 
'cybercash.so'  in Unknown on line 0


I'm building with PHP 4.3.10, and the latest cybercash from PECL.  I've 
also tried the cybercash module from 4.2.3, as suggested in one of the 
online manual comments.


Any guidance would be greatly appreciated!

Regards,

Bill Shupp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] configure hangs on SunOS 5.8

2003-12-01 Thread Bill Shupp
Hello,

I'm trying to configure php 4.3.4 on SunOS 5.8, but configure hangs 
just after checking host system type:

bash-2.03# ./configure
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.8
Any ideas?

Regards,

Bill Shupp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] file descriptor problem with tcpclient

2003-11-17 Thread Bill Shupp
Hello,

I'm trying to use the program execution functions (like exec, system, 
passthru, etc) with tcpclient (from Dan Bernstein's ucspi-tcp command 
line tools), but get this error in the apache log with all of them:

tcpclient: fatal: unable to set up descriptor 7: file descriptor not 
open

Any idea why this descriptor is not accessible?  Here's what I'm 
running:

Apache/1.3.28 (Darwin) PHP/4.3.2

Thanks!

Bill Shupp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] file descriptor problem with tcpclient

2003-11-17 Thread Bill Shupp
On Nov 17, 2003, at 4:49 PM, Bill Shupp wrote:

Hello,

I'm trying to use the program execution functions (like exec, system, 
passthru, etc) with tcpclient (from Dan Bernstein's ucspi-tcp command 
line tools), but get this error in the apache log with all of them:

tcpclient: fatal: unable to set up descriptor 7: file descriptor not 
open

Any idea why this descriptor is not accessible?  Here's what I'm 
running:

Apache/1.3.28 (Darwin) PHP/4.3.2
Ok, I have discovered that this ONLY occurs when I have started a 
session with session_start().  So, I'm assuming that session_start is 
using file descriptor 7.  Is there a way to control this?

Regards,

Bill Shupp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Problems compiling with PDF support

2001-05-01 Thread Bill Shupp

Hello,

I've been scouring the archives, but none of the solutions presented are
helping me...

I've got php 4.0.5 and am trying to compile support for pdflib-4.0.0.

Here's how I compiled pdflib:

./configure
make
make install

Looks successful, right?
ldconfig -v | grep libpdf
libpdf.so.1 = libpdf.so.1.1.0

ls -1 /usr/local/lib/libpdf*
/usr/local/lib/libpdf.a
/usr/local/lib/libpdf.la
/usr/local/lib/libpdf.so@
/usr/local/lib/libpdf.so.1@
/usr/local/lib/libpdf.so.1.1.0


And here's how I'm compiling PHP:

./configure  \
  --enable-versioning \
  --enable-track-vars \
  --with-mysql=/usr/local/mysql \
  --with-imap=/var/src/imap-4.5 \
  --with-curl=/var/src/curl-7.5.1 \
  --enable-gd-imgstrttf \
  --with-gd=../gd-1.8.3 \
  --with-ttf \
  --with-tiff-dir=/usr \
  --with-jpeg-dir=/usr \
  --with-zlib-dir=/usr \
  --with-png-dir=/usr/local \
  --with-pdflib=/usr/local/lib

(I'm now building CGI mode for testing so I don't have to keep restarting my
production web server)

The only mention of pdflib from ./configure is this:
checking whether to include PDFlib support... yes

I've also tried:
--with-pdflib=/var/src/libpdf-4.0.0 (src directory)
--with-pdflib=/usr/local/lib/libpdf.so (directly to the lib itself)
And cp ../pdflib-4.0.0/bind/php/ext/pdf/* ext/pdf/
... Same results.

php -i does NOT mention anything about PDF, and the pdfclock example fails
with:

Fatal error: Call to undefined function: pdf_new()

NOTE: I've been doing (make clean ; rm config.cache config.status) between
each ./configure.  I've also started with clean source a few times.

I've been working on this for a few days now, and am out of ideas.  I'd
appreciate any and all suggestions!

Thanks,

Bill Shupp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Problems compiling with PDF support

2001-05-01 Thread Bill Shupp

on 5/1/01 11:43 PM, Yasuo Ohgaki at [EMAIL PROTECTED] wrote:

 Bill Shupp [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,
 
 SNIP
 
 --with-png-dir=/usr/local \
 --with-pdflib=/usr/local/lib
 
 --with-pdflib=/usr/local/
 
 if you have pdflib in /usr/local/lib
 
 You have /usr/local/lib in ld.so.conf, right?
 then you don't even have to specify directory.
 
 --with-pdflib
 
 should work.
 (I'm not sure if your pdflib version is supported by PHP, though)
 
 Regards,
 --
 Yasuo Ohgaki

You were right.  I guess I never tried just --with-pdflib.  But that
brought many errors during make.

To make pdflib-4.0.0 work with php 4.0.5, I had to copy the php files from
the pdflib source as described here:

http://marc.theaimsgroup.com/?l=php-installm=98818471625096w=2

Thanks so much!

Bill Shupp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]