Re: PHP 4.0 Bug #3642: can't compile with sybase support
| From: | Pavel Kolesnikov | Date: | Sun, 27 Feb 2000 16:58:32 +0000 |
| Subject: | Re: PHP 4.0 Bug #3642: can't compile with sybase support | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-16076@lists.php.net to get a copy of this message | ||
On Sun, 27 Feb 2000, Zeev Suraski wrote:
> This should be fixed in the latest CVS. Please try it out
> (http://www.php.net/version4/cvs.php).
php compiles ok, but apache compilation crashes with:
gcc -DLINUX=2 -I/usr/local/people/koles/local/src/cvs/php4
-I/usr/local/people/koles/local/src/cvs/php4/Zend
-I/usr/local/people/koles/local/src/cvs/php4/Zend
-I/usr/local/people/koles/local/src/cvs/php4 -DUSE_EXPAT
-I./lib/expat-lite
./apaci -rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -Wl,-rpath,/opt/sybase//lib -rdynamic
-L/opt/sybase//lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4 -lgdbm -lpam -ldl -lsybdb -ldl -lgd -lresolv -lm -lcrypt
-lnsl -lresolv -lm -lcrypt -ldl
modules/php4/libphp4.a(sybase.o): In function
`php_if_sybase_fetch_object':
/usr/local/people/koles/local/src/cvs/php4/ext/sybase/sybase.c:950:
undefined reference to `php_sybase_fetch_hash'
modules/php4/libphp4.a(sybase.o): In function `php_if_sybase_fetch_array':
/usr/local/people/koles/local/src/cvs/php4/ext/sybase/sybase.c:961:
undefined reference to `php_sybase_fetch_hash'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory
`/usr/local/people/koles/local/src/apache_1.3.11/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory
`/usr/local/people/koles/local/src/apache_1.3.11'
i tried to call php_if_sybase_fetch_hash instead of
php_sybase_fetch_hash (i hope i understand your #defines
well :) and then it compiled ok and seems to work ok
as well.
pavel