DBI - make problems

DBI - make problems

am 29.12.2005 12:01:27 von rui.sampaio.whatevernet

------_=_NextPart_001_01C60C67.37318714
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

I am trying to install BDI in a solaris 8 server.

=20

** The perl Makefile.PL ends fine..

=20

=20

Checking if your kit is complete...

Looks good

=20

I see you're using perl 5.008007 on sun4-solaris, okay.

Remember to actually *read* the README file!

Use 'make' to build the software (dmake or nmake on Windows).

Then 'make test' to execute self tests.

Then 'make install' to install the DBI and then delete this working

directory before unpacking and building any DBD::* drivers.

=20

Writing Makefile for DBI

=20

=20

=20

** But it fails in the make.

=20

/usr/local/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI

rm -f blib/lib/DBI/Changes.pm

cp Changes blib/lib/DBI/Changes.pm

/usr/local/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI

rm -f blib/lib/DBI/Roadmap.pm

cp Roadmap.pod blib/lib/DBI/Roadmap.pm

cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h

cp dbivport.h blib/arch/auto/DBI/dbivport.h

cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm

cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h

cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm

cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm

cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm

cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm

cp DBI.pm blib/lib/DBI.pm

cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm

cp DBIXS.h blib/arch/auto/DBI/DBIXS.h

cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm

cp Roadmap.pod blib/lib/Roadmap.pod

cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm

cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm

cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm

cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm

cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm

cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm

cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm

cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm

cp lib/DBD/File.pm blib/lib/DBD/File.pm

cp Driver.xst blib/arch/auto/DBI/Driver.xst

cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm

cp dbipport.h blib/arch/auto/DBI/dbipport.h

cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm

cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm

cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm

cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm

cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm

cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h

cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm

/usr/local/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi

/usr/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.7

+/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc
Perl.c

gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FIL

+E_OFFSET_BITS=3D64 -O -DVERSION=3D\"1.50\" -DXS_VERSION=3D\"1.50\" =
-fPIC
"-I/usr/local/lib/perl5/5.8.7

+/sun4-solaris/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -

+Wno-cast-qual -Wdisabled-optimization -Wmissing-noreturn
-Wno-unused-parameter -DDBI_NO_THREADS Pe

+rl.c

cc1: Invalid option `-Wdisabled-optimization'

cc1: Invalid option `-Wno-unused-parameter'

Perl.xs: In function `dbd_st_rows':

Perl.xs:39: warning: unused parameter `h'

Perl.c: In function `XS_DBD__Perl__dr_data_sources':

Perl.c:86: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db__login':

Perl.c:122: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_selectall_arrayref':

Perl.c:157: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_do':

Perl.c:280: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_last_insert_id':

Perl.c:318: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_commit':

Perl.c:348: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_rollback':

Perl.c:366: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_disconnect':

Perl.c:384: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_STORE':

Perl.c:418: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_FETCH':

Perl.c:441: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_DESTROY':

Perl.c:461: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__db_take_imp_data':

Perl.c:521: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st__prepare':

Perl.c:585: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_bind_col':

Perl.c:639: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_bind_param':

Perl.c:691: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':

Perl.c:734: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_execute':

Perl.c:783: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_execute_for_fetch':

Perl.c:818: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_fetchall_arrayref':

Perl.c:894: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_finish':

Perl.c:928: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_blob_read':

Perl.c:959: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_STORE':

Perl.c:998: warning: unused parameter `cv'

Perl.c: In function `XS_DBD__Perl__st_DESTROY':

Perl.c:1044: warning: unused parameter `cv'

Perl.c: In function `boot_DBD__Perl':

Perl.c:1096: warning: unused parameter `cv'

make: *** [Perl.o] Error

=20

=20

=20

** Does anyone have an idea about what's happening?

Thanks a lot,

=20

Rui



AVISO

Esta mensagem e quaisquer anexos seus podem conter informacao =
confidencial para uso exclusivo do destinatario. Cabe ao destinatario =
assegurar a verificacao de virus e outras medidas que assegurem que esta =
mensagem nao afecta os seus sistemas. Se nao for o destinatario, nao =
devera usar, distribuir ou copiar este e-mail, devendo proceder a sua =
eliminacao e informar o emissor. E estritamente proibido o uso, a =
distribuicao, a copia ou qualquer forma de disseminacao nao autorizada =
deste e-mail e seus anexos. Obrigado.

DISCLAIMER
This e-mail and its attachments may contain confidential information for =
exclusive use of its recipient. It is your responsibility to carry out =
appropriate virus and other checks to ensure that this message and any =
attachments do not affect your systems / data. If you are not the =
intended recipient you must not use, distribute or reproduce this e-mail =
and you must notify the sender and delete the entire email. Any =
unauthorized use, dissemination, distribution or copying of this message =
and its attachments is strictly prohibited. Thank You.

------_=_NextPart_001_01C60C67.37318714--

Re: DBI 1.50 - make problems (cc1: Invalid option)

am 29.12.2005 18:38:42 von Tim.Bunce

On Thu, Dec 29, 2005 at 11:01:27AM -0000, Rui Sampaio (Whatevernet) wrote:
>
> cc1: Invalid option `-Wdisabled-optimization'
> cc1: Invalid option `-Wno-unused-parameter'

After running 'perl Makefile.PL' edit the generated 'Makefile' and
remove those two options.

> ** Does anyone have an idea about what's happening?

The Makefile.PL only adds the options for GCC versions >= 3, but it
turns out that those options were only added in later versions.

What do
perl -V:gccversion
and
gcc --version
say?

Tim.