On Tue, Jan 29, 2002 at 09:29:51AM -0500, Michael Harper wrote: > Tim, > > Thank you for responding. > > The READMEs all warn against using the GNU 'as' program. Not sure why that > is, but if I understand you correctly it sounds like I may have to use them > or get the Solaris compiler.
The advise is slightly dated now. Recent gcc's do need the gnu as. I'll update the docs. Thanks. Tim. > Thanks again. > > Michael > > >From: Tim Bunce <[EMAIL PROTECTED]> > >To: "Michael R. Harper" <[EMAIL PROTECTED]> > >CC: [EMAIL PROTECTED] > >Subject: Re: /usr/ccs/bin/as errors when compiling DBI module > >Date: Tue, 29 Jan 2002 11:57:05 +0000 > > > >Your GCC may be expecting to use the GNU as etc instead of the Solaris > >ones. > > > >Tim. > > > >On Tue, Jan 29, 2002 at 05:30:21AM -0500, Michael R. Harper wrote: > > > DBI Users, > > > > > > I am getting errors from /usr/ccs/bin/as when I run make (see the very > >end). > > > > > > Anyone else encounter this? Do I need a patch for Solaris? > > > > > > Michael > > > > > > bash-2.03# /usr/local/bin/perl -V > > > Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: > > > Platform: > > > osname=solaris, osvers=2.8, archname=sun4-solaris > > > uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 ' > > > config_args='-Dcc=gcc -de' > > > hint=recommended, useposix=true, d_sigaction=define > > > usethreads=undef use5005threads=undef useithreads=undef > > > usemultiplicity=undef > > > useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef > > > use64bitint=undef use64bitall=undef uselongdouble=undef > > > Compiler: > > > cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include > > > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > > > optimize='-O', > > > cppflags='-fno-strict-aliasing -I/usr/local/include' > > > ccversion='', gccversion='2.95.3 20010315 (release)', > > > 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, usemymalloc=y, prototype=define > > > Linker and Libraries: > > > ld='gcc', ldflags =' -L/usr/local/lib ' > > > libpth=/usr/local/lib /usr/lib /usr/ccs/lib > > > libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc > > > perllibs=-lsocket -lnsl -ldl -lm -lc > > > libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a > > > 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 Apr 26 2001 04:07:49 > > > @INC: > > > /usr/local/lib/perl5/5.6.1/sun4-solaris > > > /usr/local/lib/perl5/5.6.1 > > > /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris > > > /usr/local/lib/perl5/site_perl/5.6.1 > > > /usr/local/lib/perl5/site_perl > > > . > > > > > > bash-2.03# /usr/local/bin/perl Makefile.PL > > > *** Note: > > > The optional PlRPC-modules (RPC::PlServer etc) are not installed. > > > If you want to use the DBD::Proxy driver and DBI::ProxyServer > > > modules, then you'll need to install the RPC::PlServer, > >RPC::PlClient, > > > Storable and Net::Daemon modules. The CPAN Bundle::DBI may help > >you. > > > You can install them any time after installing the DBI. > > > You do *not* need these modules for typical DBI usage. > > > > > > Optional modules are available from any CPAN mirror, in particular > > > http://www.perl.com/CPAN/modules/by-module > > > http://www.perl.org/CPAN/modules/by-module > > > ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module > > > > > > Checking if your kit is complete... > > > Looks good > > > Writing Makefile for DBI > > > > > > 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. > > > > > > bash-2.03# make > > > cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm > > > cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm > > > cp DBIXS.h blib/arch/auto/DBI/DBIXS.h > > > cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h > > > cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm > > > cp dbipport.h blib/arch/auto/DBI/dbipport.h > > > cp lib/DBI/Format.pm blib/lib/DBI/Format.pm > > > cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h > > > cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm > > > cp DBI.pm blib/lib/DBI.pm > > > cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm > > > cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm > > > cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm > > > cp Driver.xst blib/arch/auto/DBI/Driver.xst > > > cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm > > > cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm > > > cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm > > > cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm > > > /usr/local/bin/perl -p -e "s/~DRIVER~/Perl/g" < > > > blib/arch/auto/DBI/Driver.xst > Perl.xsi > > > /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris > > > -I/usr/local/lib/perl5/5.6.1 > > > /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap > > > /usr/local/lib/perl5/5.6.1/ExtUtils/typemap Perl.xs > Perl.xsc && mv > > > Perl.xsc Perl.c > > > gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > > > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.201\" -DXS_VERSION=\"1.201\" > > > -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -Wall -Wno-comment > > > -DDBI_NO_THREADS Perl.c > > > Perl.xsi: In function `XS_DBD__Perl__st__prepare': > > > Perl.xsi:197: warning: operation on `PL_na' may be undefined > > > Perl.xsi: In function `XS_DBD__Perl__st_bind_param': > > > Perl.xsi:233: warning: operation on `PL_na' may be undefined > > > Perl.xsi: In function `XS_DBD__Perl__st_bind_param_inout': > > > Perl.xsi:269: warning: operation on `PL_na' may be undefined > > > /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris > > > -I/usr/local/lib/perl5/5.6.1 > > > /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap > > > /usr/local/lib/perl5/5.6.1/ExtUtils/typemap DBI.xs > DBI.xsc && mv > >DBI.xsc > > > DBI.c > > > gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > > > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.201\" -DXS_VERSION=\"1.201\" > > > -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -Wall -Wno-comment > > > -DDBI_NO_THREADS DBI.c > > > DBI.xs: In function `dbih_clearcom': > > > DBI.xs:910: warning: unused variable `Perl___notused' > > > DBI.xs: In function `dbih_get_fbav': > > > DBI.xs:1048: warning: unused variable `Perl___notused' > > > DBI.xs: In function `dbih_set_attr_k': > > > DBI.xs:1140: warning: unused variable `Perl___notused' > > > DBI.xs: In function `log_where': > > > DBI.xs:1677: warning: unused variable `Perl___notused' > > > DBI.xs: In function `XS_DBI_dispatch': > > > DBI.xs:2179: warning: unused variable `Perl___notused' > > > DBI.xs: In function `XS_DBD_____st_bind_col': > > > DBI.xs:2902: warning: operation on `PL_na' may be undefined > > > DBI.xs: In function `XS_DBD_____st_bind_columns': > > > DBI.xs:2923: warning: operation on `PL_na' may be undefined > > > /usr/ccs/bin/as: "/var/tmp/cc2qeFoL.s", line 3189: error: unknown opcode > > > ".subsection" > > > /usr/ccs/bin/as: "/var/tmp/cc2qeFoL.s", line 3189: error: statement > >syntax > > > /usr/ccs/bin/as: "/var/tmp/cc2qeFoL.s", line 3207: error: unknown opcode > > > ".previous" > > > /usr/ccs/bin/as: "/var/tmp/cc2qeFoL.s", line 3207: error: statement > >syntax > > > make: *** [DBI.o] Error 1 > > > > > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com >
