DBD module for Microsoft SQLServer!!!

2000-11-21 Thread Edmar Edilton da Silva

  Hi all,

  I am trying to install the DBD module for Microsoft SQLServer (DBD-FreeTDS-0.02),

and I get many error message when the command "make" is executed. I have installed

the perl 5.005, mod_perl 1.21, DBI 1.14, and Apache::DBI 0.87. The following commands

are used to install the DBD module:

perl Makefile.PL

make

make test

make install

Can anyone tell me what is wrong in the installation process? Is There another

DBD module to access the MS SQLServer Database?

Thanks, any help!!!


Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP






Re: DBD module for Microsoft SQLServer!!!

2000-11-21 Thread Edmar Edilton da Silva
/intrpvar.h:43: warning: type defaults to `int' 
in
declaration of `PL_sawvec'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:43: warning: data definition has no 
type
or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:44: parse error before `PL_unsafe'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:44: warning: type defaults to `int' 
in
declaration of `PL_unsafe'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:44: warning: data definition has no 
type
or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:120: parse error before `PL_tainting'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:120: warning: type defaults to `int' 
in
declaration of `PL_tainting'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:120: warning: data definition has no
type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:152: parse error before 
`PL_preambled'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:152: warning: type defaults to `int' 
in
declaration of `PL_preambled'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:152: warning: data definition has no
type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:192: parse error before
`PL_in_clean_objs'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:192: warning: type defaults to `int' 
in
declaration of `PL_in_clean_objs'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:192: warning: data definition has no
type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:193: parse error before
`PL_in_clean_all'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:193: warning: type defaults to `int' 
in
declaration of `PL_in_clean_all'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:193: warning: data definition has no
type or storage class
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2140,
 from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBI/DBIXS.h:19,
 from FreeTDS.h:45,
 from FreeTDS.xs:35:
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:67: parse error before `PL_tainted'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:67: warning: type defaults to `int' in
declaration of `PL_tainted'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:67: warning: data definition has no 
type
or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:88: parse error before `PL_dirty'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:88: warning: type defaults to `int' in
declaration of `PL_dirty'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:88: warning: data definition has no 
type
or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/patchlevel.h:41: warning: `local_patches' 
defined
but not used
make: *** [FreeTDS.o] Error 1

I do not know how to resolve this problem. Can anybody help me?

Dave DeMaagd wrote:

 Edmar Edilton da Silva [EMAIL PROTECTED] wrote:
Hi all,
 
I am trying to install the DBD module for Microsoft SQLServer (DBD-FreeTDS-0.02),
 
  and I get many error message when the command "make" is executed. I have installed
 
  the perl 5.005, mod_perl 1.21, DBI 1.14, and Apache::DBI 0.87. The following 
commands
 
  are used to install the DBD module:
 
  perl Makefile.PL
 
  make
 
  make test
 
  make install
 
  Can anyone tell me what is wrong in the installation process? Is There another
 
  DBD module to access the MS SQLServer Database?
 
 
 Would probably be able to help a /lot/ more if you were to include the error
 message.

 --
 Dave DeMaagd - [EMAIL PROTECTED]  - http://www.spinynorm.net
 Get plenty of calcuim.  Don't eat it, just hoard it. -- TDTiaB
 GPG key: http://www.spinynorm.net/gpg_key.txt

--

Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP






Installing the DBD module for Microsoft SQLServer!!!

2000-11-21 Thread Edmar Edilton da Silva

Hi all,

Now, I have another problem. When I runned the "perl Makefile.PL" and "make"

commands they work very well. But, when I runned "make test" is returned the

following message:

 "Writing "Makefile.aperl" for this perl
Using DBI 1.14 installed in /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBI
Writing Makefile.aperl for DBD::FreeTDS
make -f Makefile.aperl perl
make[1]: Entering directory `/root/freetds_dbd/freetds_dbd'
Writing perlmain.c
cd .  gcc -c  -I/usr/lib/perl5/5.00503/i386-linux/CORE  -Dbool=char -DHAS_BOOL 
-I/usr/local/include -Wall -Wmissing-prototypes  -ggdb 
-static   -DTRACE_ALLOCMEMORY_LEAKS  -ggdb  \
   -DVERSION=\"0.03a\" \
-DXS_VERSION=\"0.03a\" -I/usr/lib/perl5/5.00503/i386-linux/CORE perlmain.c
cat /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/extralibs.ld  
blib/arch/auto/DBD/FreeTDS/extralibs.all
cat blib/arch/auto/DBD/FreeTDS/extralibs.ld  blib/arch/auto/DBD/FreeTDS/extralibs.all
gcc -L/usr/local/lib -rdynamic -o perl -ggdb  ./perlmain.o  
blib/arch/auto/DBD/FreeTDS/FreeTDS.a 
/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a 
/usr/lib/perl5/5.00503/i386-linux/CORE/libperl.a `cat 
blib/arch/auto/DBD/FreeTDS/extralibs.all` -lnsl -ldl -lm -lc -lposix -lcrypt
To install the new "perl" binary, call
make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
make -f Makefile.aperl map_clean
make[1]: Leaving directory `/root/freetds_dbd/freetds_dbd'
PERL_DL_NONLAZY=1 ./perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux 
-I/usr/lib/perl5/5.00503 -e 'use Test::Harness qw(runtests $verbose); $verbose=0; 
runtests @ARGV;' t/*.t
t/01loadok
t/02connect.database is jdbctest
server is testms
port name is 1433
port num is 1433
uid is testuser
password is password
DBI-connect(database=jdbctest;host=testms;port=1433;) failed: Couldn't find host 
testms at t/./TestCommon.pm line 17
Can't call method "disconnect" on an undefined value at t/02connect.t line 26.
tdslayer.c:2952: Didn't free block at 0x823f47c
dbdimp.c:387: Didn't free block at 0x8230cec
dbdimp.c:378: Didn't free block at 0x8235d5c
dubious

Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine Test::Harness::WCOREDUMP called at 
/usr/lib/perl5/5.00503/Test/Harness.pm line 288.
make: *** [test_static] Error 255"

Same with it error in the "make test" command, when I runned "make install" the System 
don't return any error message ( it's OK ).

Now, when I try to run one perl script, it doesn't work and the following message

is showed:

 "install_driver(FreeTDS) failed: Can't locate loadable object for module DBD::FreeTDS 
in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at (eval 
1) line 3
Perhaps a module that DBD::FreeTDS requires hasn't been fully installed
 at Tempo_Resposta_MS_Perl.pl line 28"

I don't know what to do to resolve this problem anymore.

Can anyone tell me how I can resolve it?

Thanks,


Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP