CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Advantage DBI Driver (for Perl)

 



ogit2
Novice

Sep 5, 2017, 6:33 AM

Post #1 of 6 (2146 views)
Advantage DBI Driver (for Perl) Can't Post

Hi

We need to connect to Advantage database tables which seem to be individual .ADT and .ADI in a directory (seems similar to dBase/FoxPro). We cannot seem to find any reference apart from below repeated in several web pages.


Quote
http://devzone.advantagedatabase.com/dz/webhelp/advantage9.1/mergedprojects/devguide/adsbook/accessing_data_using_the_advantage_dbi_driver_for_perl_.htm


Using DBI, we get the following error.


Quote
D:\Transoft\TRANSPORT IMPORT FILES\TRANSLATIONS>perl ors_advantageconnect.pl
install_driver(Advantage) failed: Can't locate DBD/Advantage.pm in @INC (you may
need to install the DBD::Advantage module) (@INC contains: C:/Perl/site/lib C:/
Perl/lib .) at (eval 7) line 3.
Perhaps the DBD::Advantage perl module hasn't been fully installed,
or perhaps the capitalisation of 'Advantage' isn't right.
Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Pg, Proxy, SQL
ite, Sponge.
at ors_advantageconnect.pl line 53.


However attempting to download DBD::Advantage, we get the following


Quote
C:\Perl\bin>cpan DBD::Advantage
CPAN: Term::ANSIColor loaded ok (v4.02)
CPAN: Storable loaded ok (v2.45)
Reading 'C:\Perl\cpan\Metadata'
Database was generated on Tue, 15 Aug 2017 04:17:02 GMT
CPAN: LWP::UserAgent loaded ok (v6.05)
CPAN: Time::HiRes loaded ok (v1.9726)
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
CPAN: YAML::XS loaded ok (v0.41)
Reading 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.063)
............................................................................DONE

Fetching with LWP:
http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz
Reading 'C:\Perl\cpan\sources\modules\02packages.details.txt.gz'
Database was generated on Tue, 05 Sep 2017 05:53:53 GMT

Fetching with LWP:
http://ppm.activestate.com/CPAN/modules/03modlist.data.gz
Reading 'C:\Perl\cpan\sources\modules\03modlist.data.gz'
DONE
Writing C:\Perl\cpan\Metadata
Warning: Cannot install DBD::Advantage, don't know what it is.
Try the command

i /DBD::Advantage/

to find objects with matching identifiers.

C:\Perl\bin>


Can we get some simple guidance on what we need to do to enable us to connect and access the data?

Thank you


FishMonger
Veteran / Moderator

Sep 5, 2017, 9:44 AM

Post #2 of 6 (2139 views)
Re: [ogit2] Advantage DBI Driver (for Perl) [In reply to] Can't Post

That's a custom driver which you need to download from the Advantage site. I poked around a bit and found the download pages. You didn't specify which version you need to work with so follow the links for the one you need.

http://devzone.advantagedatabase.com/dz/content.aspx?Key=20


ogit2
Novice

Sep 6, 2017, 7:29 AM

Post #3 of 6 (2130 views)
Re: [ogit2] Advantage DBI Driver (for Perl) [In reply to] Can't Post

Hi

Thank you for this. We have never installed a Perl module this way before. We ran Perl Makefile.pl as per instructions. It has created some make files and we are not sure what to do next?


Quote
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Using DBI 1.63 (for perl 5.018002 on MSWin32-x86-multi-thread-64int) installed in C:/Perl/lib/auto/DBI/
Generating a dmake-style Makefile
Writing Makefile for DBD::Advantage
Writing MYMETA.yml and MYMETA.json

The DBD::Advantage tests will use these values for the database connection:
DBI_DSN= e.g. dbi:Advantage:DataDirectory=/tmp/;
DBI_USER=
DBI_PASS=
Warning: not all required environment variables are set.



FishMonger
Veteran / Moderator

Sep 6, 2017, 8:53 AM

Post #4 of 6 (2124 views)
Re: [ogit2] Advantage DBI Driver (for Perl) [In reply to] Can't Post

The warning message is clear and is telling you that you forgot to set the environment variables specified in the README file.

I don't have the Advantage database, so I can't troubleshoot the install.


ogit2
Novice

Sep 6, 2017, 9:11 AM

Post #5 of 6 (2122 views)
Re: [ogit2] Advantage DBI Driver (for Perl) [In reply to] Can't Post

Hi

Thank you for your help. We were unsure of next steps (env variables were warning and we did set in some tests)

We did get a little further by running C:\mingw64\bin\dmake and got a lot of errors (below). The readme file refers to 'make' but we finally realised it was dmake on Windows.

I think this may be too complex for us to solve. If any idea's, they would be appreciated. However I will post in the advantage forum and see if I make progress. We just want to be in a position to run a perl script without errors.


Quote
C:\Advantage>dmake
gcc -c -IC:\Perl\lib\auto\DBI -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"11.10\" -DXS_VERSION=\"11.10\" "-IC:\Perl\lib\CORE" dbdimp.c
In file included from C:\Perl\lib\CORE/hv.h:593:0,
from C:\Perl\lib\CORE/perl.h:3480,
from C:\Perl\lib\auto\DBI/DBIXS.h:23,
from Advantage.h:15,
from dbdimp.c:12:
C:\Perl\lib\CORE/hv_func.h: In function 'S_perl_hash_murmur3':
C:\Perl\lib\CORE/hv_func.h:391:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dbdimp.c: In function 'build_results':
dbdimp.c:43:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:65:4: warning: passing argument 2 of 'SQLRowCount' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:550:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c: In function 'dbd_discon_all':
dbdimp.c:84:10: error: 'dirty' undeclared (first use in this function)
dbdimp.c:84:10: note: each undeclared identifier is reported only once for each function it appears in
dbdimp.c: In function 'ads_db_login':
dbdimp.c:157:7: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:202:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:206:10: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_error':
dbdimp.c:395:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:425:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:431:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:461:32: error: 'na' undeclared (first use in this function)
dbdimp.c:461:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'dbd_preparse':
dbdimp.c:501:18: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c:584:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'dbd_st_tables':
dbdimp.c:628:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_st_prepare':
dbdimp.c:684:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_describe':
dbdimp.c:812:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:819:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:838:27: warning: passing argument 7 of 'SQLDescribeCol' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:508:21: note: expected 'SQLULEN *' but argument is of type 'UDWORD *'
dbdimp.c:851:29: warning: passing argument 7 of 'SQLColAttributes' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sqlext.h:1427:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:865:29: warning: passing argument 7 of 'SQLColAttributes' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sqlext.h:1427:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:914:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:951:26: warning: passing argument 7 of 'SQLDescribeCol' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:508:21: note: expected 'SQLULEN *' but argument is of type 'UDWORD *'
dbdimp.c:969:23: warning: passing argument 6 of 'SQLBindCol' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:489:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:976:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_st_execute':
dbdimp.c:1009:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1044:4: warning: passing argument 2 of 'SQLRowCount' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:550:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:1070:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_st_fetch':
dbdimp.c:1124:7: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1136:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1220:7: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1231:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_st_destroy':
dbdimp.c:1366:22: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c: In function '_dbd_rebind_ph':
dbdimp.c:1409:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1419:16: error: 'no_modify' undeclared (first use in this function)
dbdimp.c:1452:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1474:28: warning: passing argument 4 of 'SQLDescribeParam' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sqlext.h:1429:21: note: expected 'SQLULEN *' but argument is of type 'UDWORD *'
dbdimp.c:1483:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1563:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1593:26: warning: passing argument 10 of 'SQLBindParameter' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sqlext.h:1442:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c: In function 'ads_bind_ph':
dbdimp.c:1644:21: error: 'na' undeclared (first use in this function)
dbdimp.c:1644:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1651:21: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c: In function 'ads_st_blob_read':
dbdimp.c:1724:19: warning: passing argument 6 of 'SQLGetData' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:531:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:1728:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1758:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_db_STORE_attrib':
dbdimp.c:1835:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dbdimp.c: In function 'ads_db_FETCH_attrib':
dbdimp.c:1901:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:1911:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
dbdimp.c: In function 'ads_st_FETCH_attrib':
dbdimp.c:1989:13: error: 'na' undeclared (first use in this function)
dbdimp.c:2013:13: error: 'sv_no' undeclared (first use in this function)
dbdimp.c:2013:13: error: 'sv_yes' undeclared (first use in this function)
dbdimp.c: In function 'ads_get_info':
dbdimp.c:2147:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_describe_col':
dbdimp.c:2325:24: warning: passing argument 7 of 'SQLDescribeCol' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sql.h:508:21: note: expected 'SQLULEN *' but argument is of type 'U32 *'
dbdimp.c: In function 'ads_col_attributes':
dbdimp.c:2441:26: warning: passing argument 7 of 'SQLColAttributes' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/sqlext.h:1427:21: note: expected 'SQLLEN *' but argument is of type 'SDWORD *'
dbdimp.c:2453:14: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:2459:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c:2460:7: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_db_columns':
dbdimp.c:2532:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [enabled by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.4/../../../../x86_64-w64-mingw32/include/stdio.h:348:15: note: expected 'struct FILE * __restrict__' but argument is of type 'struct PerlIOl **'
dbdimp.c: In function 'ads_db_FETCH_attrib':
dbdimp.c:1908:10: warning: ignoring return value of 'Perl_newSViv', declared with attribute warn_unused_result [-Wunused-result]
dmake: Error code 129, while making 'dbdimp.o'



FishMonger
Veteran / Moderator

Sep 6, 2017, 10:02 AM

Post #6 of 6 (2118 views)
Re: [ogit2] Advantage DBI Driver (for Perl) [In reply to] Can't Post

I'm not sure but I think the problem might be that you're using a 64bit compiler to build a 32bit module and the two are not compatible.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives