freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Debian 2.0/freetds .40/php 3.0.5 segmentation fault
- From: "Martin Herbener" <mherbene AT kde.state.ky.us>
- To: freetds
- Subject: Debian 2.0/freetds .40/php 3.0.5 segmentation fault
- Date: Tue, 8 Dec 1998 12:58:46
Ok, I've gotten farther in some ways. I was able to make Apache without
errors, but when I try to run a PHP script that uses sybase_connect() I get
a segmentation fault. I re-built a PHP standalone and ran the script that
way with the same results. Here are the steps I followed for the php
standalone, hope this means something to someone.
freetds was untarred to /usr/lib/freetds
php was untarred to /usr/local/php/php-3.0.5
edited /etc/profile to contain:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:usr/games
PS1="\\$ "
SYBASE="/usr/lib/freetds"
LD_LIBRARY_PATH="/usr/lib/freetds/lib"
export PATH PS1 SYBASE LD_LIBRARY_PATH
cd /usr/lib/freetds
make distclean - no errors
./configure --prefix=/usr/lib/freetds --with-tdsver=4.2
no errors
make - no errors
make check - no errors
make install -
when it gets to /usr/lib/freetds/include, throws warnings like
/usr/bin/install: 'cspublic.h' and
'/usr/lib/freetds/include/cspublic.h'
are the same file
for several files:
cspublic.h
ctpublic.h
sybdb.h
sybfront.h
tdsutil.h
bkpublic.h
cstypes.h
dblib.h
syberror.h
finishes with
make[1]: *** [install-includeHEADERS] Error 1
cd /usr/local/php/php-3.0.5
make distclean - no errors
./configure --with-sybase=/usr/lib/freetds --enable-track-vars=yes
--enable-magic-quotes=yes --enable-memory-limit=yes
--bindir=/usr/local/php/phpexe
make - no errors
php testsql.php3 (see below) - get Content-type header, then
segmentation fault.
testsql.php:
--less-than-quark--
echo 'Hello, World';
$kdewebn2_connect = sybase_connect("kdewebn2", "sa", "ECN2435");
if ($kdewebn2_connect)
{
echo 'success' ;
kdewebn2_connect = sybase_close(kdewebn2_connect);
}
else
{
echo 'failure';
}
quark-greater-than
-
Debian 2.0/freetds .40/php 3.0.5 segmentation fault,
Martin Herbener, 12/08/1998
- <Possible follow-up(s)>
- Re: Debian 2.0/freetds .40/php 3.0.5 segmentation fault, Brian Bruns, 12/09/1998
- Re: Debian 2.0/freetds .40/php 3.0.5 segmentation fault, Martin Herbener, 12/10/1998
- Re: Debian 2.0/freetds .40/php 3.0.5 segmentation fault, Craig Spannring, 12/12/1998
Archive powered by MHonArc 2.6.24.