freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: Debian 2.0/freetds .40/php 3.0.5 segmentation fault
- From: Brian Bruns <camber AT umcc.ais.org>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: Debian 2.0/freetds .40/php 3.0.5 segmentation fault
- Date: Wed, 9 Dec 1998 22:47:59 -0500 (EST)
Hmmm...ok I've recompiled with TDS 4.2 and everything still appears to
work. (Although the latest sources in CVS are indeed broke, but the simple
connect should work. I'll hopefully fix the newer stuff by this weekend).
Anyway, two thoughts: what does your interfaces file look like? and have
you tried against a Sybase server instead of MS-SQL? (There is one listed
under JDBC in the sample interfaces that is accessible on the net.)
Brian
On Tue, 8 Dec 1998, Martin Herbener wrote:
> 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
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>
-
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.