Thread

Posted on Mon Dec 26 16:40:04 2005 by rui
problems doing the make
Hi, I am trying to install BDI in a solaris 8 server. ** The perl Makefile.PL ends fine.. Checking if your kit is complete... Looks good 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. Writing Makefile for DBI ** But it fails in the make. /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=64 -O -DVERSION=\"1.50\" -DXS_VERSION=\"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 ** Does anyone have an idea about what's happening? Thanks a lot, Rui
Direct Responses: 1526 | Write a response
Posted on Wed Dec 28 18:51:46 2005 by timbunce in response to 1513
Re: problems doing the make
What version of gcc are you using? (Please post the output of "perl -V" (that's a capital V)) Meanwhile, just delete the options it's complaining about from the generated "Makefile" then rerun make. Finally, why post this to cpanforum (where reletively few people see it) and not to the dbi-users@perl.org mailing list (where thousands will see it)? Tim.
Direct Responses: 1530 | Write a response
Posted on Thu Dec 29 12:56:27 2005 by rui in response to 1526
Re: problems doing the make
Hi Tim, Thanks for checking this. I am new on this and I did not know about the mailling list, I will post my problem there. I checked the Makefile.PL and the optios bellow are not there cc1: Invalid option `-Wdisabled-optimization' cc1: Invalid option `-Wno-unused-parameter' The output of the perl -V is: >perl -V Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos solaris 5.8 generic_108528-11 sun4u sparc sunw,ultra-5_10 ' config_args='-Dcc=gcc -B/usr/ccs/bin/' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFIL +E_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.3.2', gccosandvers='solaris2.8' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Dec 2 2005 01:34:16 @INC: /usr/local/lib/perl5/5.8.7/sun4-solaris /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl . Thanks again. Rui
Direct Responses: 1531 | Write a response
Posted on Thu Dec 29 16:49:35 2005 by rui in response to 1530
Re: problems doing the make
Hi, I was not checking the correct Makefile. I have removed now in the line bellow the arguments "-Wdisabled-optimization" and "-Wno-unused-aram +eter" DEFINE = -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qua +l -Wdisabled-optimization -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS And I was able to do the make, the make test and the make install. Not sure yet if it works, I have + to wait for the next week for the guy that is going to test it. Do you know what are the implications of removing these arguments? Tim, thanks a lot. Rui
Write a response