delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/31/21:45:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Jeff Urlwin" <jurlwin AT bellatlantic DOT net>
To: "Paul A. Chernoch" <paul DOT chernoch AT zeborg DOT com>, <cygwin AT cygwin DOT com>,
<dbi-users AT perl DOT org>
Subject: RE: Perl module DBD::ODBC 0.39 wont compile on CYGWIN
Date: Sun, 31 Mar 2002 21:44:36 -0500
Message-ID: <OEEMJFLOJPABMFADAPIKCEOMDDAA.jurlwin@bellatlantic.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Importance: Normal
In-Reply-To: <4.3.2.7.2.20020325171900.00b4e110@zmail.zeborg.com>

Try the following, which was sent to me recently:

FWIW, I was not able to make without adding the following line to
Makefile.PL under cygwin (1.3.9):

line 106 of Makefile.PL (DBD-ODBC-0.39)
+    $opts{INC}  .= " -I/usr/include/w32api" if $^O eq 'cygwin';

> -----Original Message-----
> From: Paul A. Chernoch [mailto:paul DOT chernoch AT zeborg DOT com]
> Sent: Monday, March 25, 2002 5:34 PM
> To: cygwin AT cygwin DOT com; dbi-users AT perl DOT org
> Subject: Perl module DBD::ODBC 0.39 wont compile on CYGWIN
>
>
> DBD::ODBC Version 0.38 builds and passes the tests, but 0.39 wont even
> compile. Here are the error messages:
>
> $ make
> cp ODBC.pm blib/lib/DBD/ODBC.pm
> /usr/bin/perl -p -e "s/~DRIVER~/ODBC/g" <
> /usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI/Driver.xst > ODBC.xsi
> /usr/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1
> /usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap
> /usr/lib/perl5/5.6.1/ExtUtils/typemap ODBC.xs > ODBC.xsc && mv
> ODBC.xsc 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.39\"
> -DXS_VERSION=\"0.39\"  -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.39\"
> -DXS_VERSION=\"0.39\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE  dbdimp.c
> dbdimp.c: In function `odbc_db_login6':
> dbdimp.c:211: `SQL_ATTR_ODBC_VERSION' undeclared (first use in
> this function)
> dbdimp.c:211: (Each undeclared identifier is reported only once
> dbdimp.c:211: for each function it appears in.)
> dbdimp.c:211: `SQL_IS_INTEGER' undeclared (first use in this function)
> dbdimp.c: At top level:
> dbdimp.c:1644: warning: `_dbd_rebind_ph' was declared implicitly `extern'
> and later `static'
> dbdimp.c:1190: warning: previous declaration of `_dbd_rebind_ph'
> make: *** [dbdimp.o] Error 1
>
>
> When I look, the undeclared symbols are really, truly undefined.
> SQL_ATTR_ODBC_VERSION does not even appear to exist in version 0.38.
>
> (BTW, as far as I can tell, the patch file used some time ago by CYGWIN
> users to fix the Makefile.pl has been fully incorporated into more recent
> builds, so I know that is not the problem.)
>
> I just upgraded today to the latest version of CYGWIN, and with it comes
> perl v5.6.1.
>
>    - Paul
> .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>
> Paul Anton Chernoch
> Zeborg, Inc.
> 500 West Cummings Park
> Woburn, MA 01801
>
> t: 781.759.0105
> f: 781.935.5090
> c: 781.606.7382
>
> http://www.zeborg.com
> This message is a personal and confidential communication. If you are not
> the intended recipient, please do not read, copy, or use it, and do not
> disclose it to others. Please notify the sender of the delivery error by
> replying to this message, and then delete it from your system. Thank you.
>
> .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>
>
>



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019