Subject: | Miscellaneous compile warnings |
Hi Martin,
Tested latest DBD::ODBC, seems to work great. However a number of
warnings scrolled by at compilation time. The 'duplicate function
definition' one is particularly ominous.
Cheers
cc -c -I/usr/include -I.
-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/site_perl/5.17.8/x86_64-linux-thread-multi-64int-ld/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.42_5\" -DXS_VERSION=\"1.42_5\" -fPIC
"-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/5.17.8/x86_64-linux-thread-multi-64int-ld/CORE"
-I/usr/include ConvertUTF.c
/home/rabbit/perl5/perlbrew/perls/5.17.8/bin/perl5.17.8 -p -e
"s/~DRIVER~/ODBC/g"
/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/site_perl/5.17.8/x86_64-linux-thread-multi-64int-ld/auto/DBI/Driver.xst
Show quoted text
> ODBC.xsi
/home/rabbit/perl5/perlbrew/perls/5.17.8/bin/perl5.17.8
/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/5.17.8/ExtUtils/xsubpp
-typemap
/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/5.17.8/ExtUtils/typemap
ODBC.xs > ODBC.xsc && mv ODBC.xsc ODBC.c
Warning: duplicate function definition 'data_sources' detected in
ODBC.xs, line 482
cc -c -I/usr/include -I.
-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/site_perl/5.17.8/x86_64-linux-thread-multi-64int-ld/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.42_5\" -DXS_VERSION=\"1.42_5\" -fPIC
"-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/5.17.8/x86_64-linux-thread-multi-64int-ld/CORE"
-I/usr/include ODBC.c
cc -c -I/usr/include -I.
-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/site_perl/5.17.8/x86_64-linux-thread-multi-64int-ld/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.42_5\" -DXS_VERSION=\"1.42_5\" -fPIC
"-I/home/rabbit/perl5/perlbrew/perls/5.17.8/lib/5.17.8/x86_64-linux-thread-multi-64int-ld/CORE"
-I/usr/include dbdimp.c
dbdimp.c: In function ‘odbc_set_query_timeout’:
dbdimp.c:197:24: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
dbdimp.c: In function ‘odbc_db_STORE_attrib’:
dbdimp.c:4660:18: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
dbdimp.c: In function ‘set_odbc_version’:
dbdimp.c:6400:28: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
dbdimp.c: In function ‘post_connect’:
dbdimp.c:6671:36: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
dbdimp.c: In function ‘odbc_st_execute_for_fetch’:
dbdimp.c:7164:25: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]