Hello Thomas, 

(TW == "Thomas Wentzel") [EMAIL PROTECTED] marked:

TW> I use the following configure string on both machines - only
TW> differences is the paths to pgsql and apxs

<snip>

TW> On my RedHat (which has PHP 4.0.4) I get a nice little
TW> stocks.so...
TW> On my Debian (which has PHP 4.0.3) I get a not so nice little
TW> stocks.a

I'm not familiar with the stocks example, but..

<snip>

TW> Is anybody able to compile .so files on Debian??

On some Debian systems you have to edit the apxs script if you didn't
install Apache via the Debian package system.

(IOW, If your server's httpd executable is called 'apache' instead of
'httpd' then you know it's from the Debian packages system rather than
an install from source tarball. By now you probably know that.)

In order to build any DSO's on a Debian system where one did not
install Apache from their package system (Ie. didn't use apt-get),
most of the time you have to edit the apxs script and correct:

my $CFG_CFLAGS_SHLIB  = q(-fpic -DSHARED_MODULE);
my $CFG_LD_SHLIB      = q(gcc);
my $CFG_LDFLAGS_SHLIB = q(-shared);

Maybe that will help your situation.

-Brian



-- 
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]

Reply via email to