Connect to Sybase ASE ?
cameron at stl.dec.com
Thu Oct 18 00:24:22 EDT 2001
Aha! I've figured out Norman's problem with dbopen.
Norman Palardy wrote:
> ./configure --prefix=/usr/local/freetds --with-tdsver=4.2
> --enable-dbmfix --enable-shared --enable-static
Note the --enable-dbmfix.
> But, the following ALWAYS says the connection failed regardless.
> dbproc = dbopen( login , argv ) ;
Change this to tdsdbopen() and give it another go.
dbopen() will have been satisfied by the linker from the dbm library.
>From the FreeTDS User Guide:
"--enable-dbmfix Force the function dbopen() in the dblib API to be
renamed tdsdbopen(). This option is used to avoid a conflict with
programs that link in both dblib and some flavor of DBM (ndbm, gdbm,
etc...). Note the application will have to be modified to call
tdsdbopen() instead, see the PHP Section for information on fixing this
More information about the FreeTDS