This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DBD-ODBC Perl module fails to compile


Hallo Julien,

2001-10-23 12:39:08, du schreibst:

...
> ...a lot of same parse error.

Me too and before make starts I get this, so it seems it isn't working
with Cygwin and ODBC (see below for more infos):

...
Configuring DBD::ODBC ...

>>>     Remember to actually *READ* the README file!
        And re-read it if you have any problems.
...

> I read the README.cygwin, but it seems to be rather old, speaking
> about Windows ODBC headers and import libraries, but the http link is
> broken. Don't know if it's related to my problem.

I am sure that it is related to this problem.  I read the following:

=item Windows ODBC headers and import libraries

A rather complete set of headers and import libraries for windows
including those for ODBC by Anders Norlander can be found at
http://www.acc.umu.se/~anorland/gnu-win32/ I used version 0.1.5.

So where are the headers, without them there would be no chance.
I didn't found them, but I found this patch:
http://sources.redhat.com/ml/cygwin/2000-08/msg00464/DBD-ODBC.patch

I did a search at google with the Keywords 'Anders Norlander ODBC'
and the second match was the patch, you should be able to find it, too!!!

After applying the patch, the build works fine.  Great job, who did it?

Ah, Eric, I should have known this:
http://sources.redhat.com/ml/cygwin/2000-08/msg00464.html

$ make
gcc -c -I. -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE  ODBC.c
gcc -c -I. -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE  dbdimp.c
Running Mkbootstrap for DBD::ODBC ()
chmod 644 ODBC.bs
rm -f blib/arch/auto/DBD/ODBC/ODBC.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib ODBC.o dbdimp.o -lodbc32 -o blib/arch/auto/DBD/ODBC/ODBC.dll  /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a   
dllwrap --dllname ODBC.dll --driver-name gcc --dlltool dlltool --export-all-symbols --as as --output-def libODBC.def --output-lib libODBC.a \
-s -L/usr/local/lib ODBC.o dbdimp.o -lodbc32  /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
mv ODBC.dll libODBC.a blib/arch/auto/DBD/ODBC/
chmod 755 blib/arch/auto/DBD/ODBC/ODBC.dll
cp ODBC.bs blib/arch/auto/DBD/ODBC/ODBC.bs
chmod 644 blib/arch/auto/DBD/ODBC/ODBC.bs
Manifying blib/man3/DBD.ODBC.3

Gerrit@ISMENE ~/.cpan/build/DBD-ODBC-0.28 
$ make test
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01base............ok                                                       
t/02simple..........ok 1/14Can't connect(), no database driver specified and DBI_DSN env var not set at t/02simple.t line 16
t/02simple..........dubious                                                  
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-14
        Failed 13/14 tests, 7.14% okay
t/03dbatt...........ok 1/6Can't connect(), no database driver specified and DBI_DSN env var not set at t/03dbatt.t line 12
t/03dbatt...........dubious                                                  
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
        Failed 5/6 tests, 16.67% okay
t/05meth............ok 1/6Can't connect(), no database driver specified and DBI_DSN env var not set at t/05meth.t line 13
t/05meth............dubious                                                  
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
        Failed 5/6 tests, 16.67% okay
t/09bind............ok 1/9Can't connect(), no database driver specified and DBI_DSN env var not set at t/09bind.t line 11
t/09bind............dubious                                                  
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
        Failed 8/9 tests, 11.11% okay
Failed Test  Status Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------------------------
t/02simple.t     255 65280    14   13  92.86%  2-14
t/03dbatt.t      255 65280     6    5  83.33%  2-6
t/05meth.t       255 65280     6    5  83.33%  2-6
t/09bind.t       255 65280     9    8  88.89%  2-9
Failed 4/5 test scripts, 20.00% okay. 31/40 subtests failed, 22.50% okay.
make: *** [test_dynamic] Error 2

Gerrit
-- 
convey Information Systems GmbH                 http://www.convey.de/
                                                Vitalisstraße 326-328
Gerrit P. Haase                                 D-50933 Köln
gerrit.haase@convey.de                          Fon: ++49 221 6903922


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]