Re: [PHP4BETA] sybase-ct support not working on PHP/4.0b2
| From: | Unknown Sender | Date: | Fri, 20 Aug 1999 14:26:10 +0000 |
| Subject: | Re: [PHP4BETA] sybase-ct support not working on PHP/4.0b2 | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3614@lists.php.net to get a copy of this message | ||
That did the trick! It works!! Thanks!!
Greg
----- Original Message -----
From: Chad Kitching <kitchingc@mail.techplus.com>
To: <php4beta@lists.php.net>
Sent: Friday, August 20, 1999 9:57 AM
Subject: Re: [PHP4BETA] sybase-ct support not working on PHP/4.0b2
Oh, yeah. Forgot you have to add a define to the
ext/sybase/php3_sybase-ct.h file, too. Right before the last #endif, add:
#define phpext_sybct_ptr sybct_module_ptr
After you add that line, it should compile. One of these days I'll figure
out why I'm having problems during the linking stage.
If I had a single clue as to how to modify the ./configure script to do all
this automagically, I would, but I don't, so I'll have to continue to do
things manually. Maybe someone else reading this knows how to...
----- Original Message -----
From: Greg Waugh <gregphp@pol.com>
To: Greg Waugh <gregphp@pol.com>
Cc: <php4beta@lists.php.net>
Sent: Thursday, August 19, 1999 11:28 AM
Subject: Re: [PHP4BETA] sybase-ct support not working on PHP/4.0b2
> I followed those instructions.... this is what I got...
>
>
gcc -g -O2 -g -O2 -I. -I. -I./libzend -I./TSRM -I./libzend -I./TSRM -I/usr
>
/src/php-4.0b2/../apache_1.3.6/src/include -I/usr/src/php-4.0b2/../apache_1.
>
6/src/os/unix -I/usr/local/mysql/include -I/opt/sybase/include -g -c
> main.c -o main.o
>
gcc -g -O2 -g -O2 -I. -I. -I./libzend -I./TSRM -I./libzend -I./TSRM -I/usr
>
/src/php-4.0b2/../apache_1.3.6/src/include -I/usr/src/php-4.0b2/../apache_1.
>
6/src/os/unix -I/usr/local/mysql/include -I/opt/sybase/include -g -c
> internal_functions.c -o internal_functions.o
> internal_functions.c:87: `phpext_sybct_ptr' undeclared here (not in a
> function)
> internal_functions.c:87: initializer element for
`php3_builtin_modules[13]'
> is not constant
> make: *** [internal_functions.o] Error 1
>
> Thanks a bunch for your help... I'm afraid my C isn't where is should be
to
> go much farther myself... any ideas on this one?
>
> Greg Waugh
>
> ----- Original Message -----
> From: Chad Kitching <kitchingc@mail.techplus.com>
> To: <php4beta@lists.php.net>
> Sent: Wednesday, August 18, 1999 8:06 PM
> Subject: Re: [PHP4BETA] sybase-ct support not working on PHP/4.0b2
>
>
> The configure/makefiles are severely broken for sybase-ct support -- they
> don't update the internal_functions.c file properly. dblib sybase support
> seems fine. I tried modifying this manually after running ./configure,
> except on my system, during linking of apache, ld segfaults, and dumps
core.
> It's fairly simple to do this yourself, all you have to do is add two
lines
> to the file:
> In the includes section, add:
> #include "ext/sybase/php3_sybase-ct.h"
>
> And in the declaration of the php3_builtin_modules[] variable, add the
> following line somewhere in the list:
> phpext_sybct_ptr,
>
> I think that's all that's required, but I may be wrong. since I can't even
> get sybase-ct working with php3 without segfaults with ld if I use the
> version on www.php.net. If I use the version on ftp.sybase.com, I get
> unresolved externals, because all functions (and function calls, including
> libc calls) in it are preceded by underscores (DOS/Win style). Maybe
you'll
> have better luck than me with this.
>
>
>
>
> --
> PHP 4 Beta
>
>
--
PHP 4 Beta