Skip to Content.
Sympa Menu

freetds - Re: PHP/tds issue - partial

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: PHP/tds issue - partial
  • Date: Sun, 17 Sep 2000 15:57:32 -0400 (EDT)



Ok, I did a ./configure --with-sybase=/usr/local/freetds --enable-debug
then a make, and in the php directory did
$ gdb ./php
(gdb) break dbopen
(gdb) run ~/test.php
Starting program: /home/brian/src/php-4.0.1pl2/php ~/test.php
Breakpoint 1 at 0x4003014e: file dblib.c, line 426.
X-Powered-By: PHP/4.0.1pl2
Content-type: text/html

<html>
<body bgcolor=white>

Breakpoint 1, dbopen (login=0x816b608, server=0x814bdd4 "bcnos") at
dblib.c:426
426 dblib.c: No such file or directory.
(gdb) where
#0 dbopen (login=0x816b608, server=0x814bdd4 "bcnos") at dblib.c:426
#1 0x80c02bc in php_sybase_do_connect (ht=3, return_value=0x817052c,
this_ptr=0x0, return_value_used=1, persistent=0) at sybase.c:443
#2 0x80c0403 in php_if_sybase_connect (ht=3, return_value=0x817052c,
this_ptr=0x0, return_value_used=1) at sybase.c:490
#3 0x8104d66 in execute (op_array=0x81507b4) at ./zend_execute.c:1558
#4 0x8060767 in php_execute_script (primary_file=0xbffffb64) at main.c:1157
#5 0x805ed09 in main (argc=2, argv=0xbffffbc4) at cgi_main.c:661
(gdb)

So, it builds ok...must be some strangeness going on on your side. Remember
you can't do a 'make install', you need to copy the binary from the source
directory.

On Thu, 14 Sep 2000, Michael Kimsal wrote:

> I feel really ridiculous about this - rasmus AND brian giving me directions,
> and I still can't get it to work.
>
> I've done a make clean on both php and freetds
>
> freetds I did
> ./configure --enable-msdblib --with-tdsver=4.2
> make
> make install
>
> php I did
> ./configure --enable-debug --with-sybase=/usr/local/freetds --with-gd
> (extra misc
> things)
> make
> Then copy the php binary to /usr/local/bin/php
>
> I run my php from command line, and get it to hang part way thru.
> ps ax | grep sock.php
> Get the PID
>
> gdb program PID
>
> I get in, type "where full"
> and I get what I posted before - a bunch on lines saying 'no symbol table'.
>
> Is there a step or flag I'm missing someplace?
>
>
>
> Brian Bruns wrote:
>
> > Ok, just checked, the proper way is to do ./configure --enable-debug ...
> >
> > Brian
> >
> > On Thu, 14 Sep 2000, Michael Kimsal wrote:
> >
> > > Ugh...
> > >
> > > I did a make clean of PHP 4 and recompiled with exporting CFLAGS=-g
> > > No luck. Does anyone else know how to get PHP to use the symbol table?
> > > (or whatever the terminology should be?!) ;)
> > >
> > >
> > >
> >
>
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page