[freetds] PHP-4.3.0 MSSQL and FreeTDS

Aliet Santiesteban Sifontes alietss at yahoo.com
Mon Jan 6 15:18:30 EST 2003


Hi James:
I'm using the new mssql support to unix using freetds
in PHP-4.3.0, I mean now you can build the mssql
extension from it's own extension mssql
This is my configure line...

'./configure' '--host=i686-pc-linux-gnu'
'--build=i686-pc-linux-gnu'
'--target=i686-redhat-linux-gnu' '--program-prefix='
'--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--cache-file=../config.cache'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug'
'--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2'
'--with-db3' '--with-curl' '--with-dom=/usr'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm'
'--with-gettext' '--with-pdflib=shared'
'--with-tiff-dir=/usr' '--with-ncurses' '--with-gmp'
'--with-iconv' '--enable-xslt=shared'
'--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-regex=system' '--with-xml'
'--with-expat-dir=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-bcmath' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--without-oci8' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mcal=shared,/usr' '--with-mcrypt=shared,/usr'
'--with-mhash=shared,/usr' '--with-mssql=shared,/usr'
'--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared'
'--with-xslt-sablot=shared,/usr'
'--with-sablot-js=shared,/usr'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning'
'--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--with-apxs2=/usr/sbin/apxs'
                                                      
                    Aliet
--- "Lowden, James K" <LowdenJK at bernstein.com> wrote:
> > From: Aliet Santiesteban Sifontes
> [mailto:alietss at yahoo.com]
> > Sent: January 6, 2003 10:54 AM
> > 
> > Hi Lowden
> 
> ("James", please.)
> 
> > and thanks for answer, this is the output
> > of the ldd command...
> > 
> > [root at ecodevel root]# ldd /usr/lib/php4/mssql.so
> >         libc.so.6 => /lib/i686/libc.so.6
> (0x42000000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2
> 
> We can stop there.  mssql.so will not try to load
> any FreeTDS library; we
> know that because "ldd" doesn't mention one.  
> 
> I should mention, I don't have php installed and
> don't use it.  I'm
> addressing your question at the OS level.  It was
> clear from your earlier
> message that php was failing to load the FreeTDS
> libraries.  
> 
> Some part of php has to load libsybdb or libctl
> (depending on how it was
> configured).  On another thread, I saw this:  
> 
> > then I execute phpinfo() , it say included :
> > --with-mysql=shared,/usr'
> '--with-unixODBC=shared,/usr' 
> > '--with-recode=shared,/usr' '--enable-xslt' 
> > '--with-xslt-sablot=shared,/usr' 
> > '--with-snmp=shared' '--enable-ucd-snmp-hack' 
> > '--with-sybase-ct=shared,/usr' 
> 
> Can you invoke the same function to get the same
> report?  
> 
> It occurs to me that your PHP RPM might be linking
> in ct-lib instead of
> db-lib.  That would be a problem, because you're
> requesting a db-lib
> function (dbinit).  The db-lib library is
> "libsybdb".  
> 
> Regards, 
> 
> --jkl
> 
> 
> 
> 
> The information contained in this transmission may
> contain privileged and
> confidential information and is intended only for
> the use of the person(s)
> named above.  If you are not the intended recipient,
> or an employee or agent
> responsible for delivering this message to the
> intended recipient, any
> review, dissemination, distribution or duplication
> of this communication is
> strictly prohibited. If you are not the intended
> recipient, please contact
> the sender immediately by reply e-mail and destroy
> all copies of the
> original message. Please note that we do not accept
> account orders and/or
> instructions by e-mail, and therefore will not be
> responsible for carrying
> out such orders and/or instructions.
> 
> 
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the FreeTDS mailing list