Installing DBI-1.53 on Solaris

Hello

I am having problems installing DBI.

# perl Makefile.PL runs ok but the when I enter # make I get the
following:

gcc -c -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.53\"
-DXS_VERSION=\"1.53\" -fPIC
"-I/usr/local/ActivePerl-5.8/lib/5.8.0/sun4-solaris-thread-m ulti/CORE"
-W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment
-Wno-sign-compare -Wno-cast-qual Perl.c
cc1: Invalid option `-fno-strict-aliasing'
Perl.c: In function `XS_DBD__Perl__dr_data_sources':
Perl.c:89: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db__login':
Perl.c:125: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_selectall_arrayref':
Perl.c:160: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_do':
Perl.c:283: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_last_insert_id':
Perl.c:321: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_commit':
Perl.c:351: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_rollback':
Perl.c:369: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_disconnect':
Perl.c:387: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_STORE':
Perl.c:421: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_FETCH':
Perl.c:444: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_DESTROY':
Perl.c:464: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_take_imp_data':
Perl.c:531: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st__prepare':
Perl.c:595: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_col':
Perl.c:649: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_param':
Perl.c:701: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':
Perl.c:744: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_execute':
Perl.c:793: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_execute_for_fetch':
Perl.c:828: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_fetchall_arrayref':
Perl.c:904: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_finish':
Perl.c:938: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_blob_read':
Perl.c:969: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_STORE':
Perl.c:1008: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_DESTROY':
Perl.c:1054: warning: unused parameter `cv'
Perl.c: In function `boot_DBD__Perl':
Perl.c:1106: warning: unused parameter `cv'
*** Error code 1
make: Fatal error: Command failed for target `Perl.o'

Have checked the complier that installed Perl and it is gcc which I am
using above, here is the output:

# perl -V
Summary of my perl5 (revision 5.0
version 8 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi
uname='sunos sparky 5.6 generic_105181-26 sun4u sparc
sunw,ultra-5_10 '
config_args='-des -Dcc=gcc -Dcf_by=ActiveState
-Dcf_email=ActivePerl [at] ActiveState.com -Uinstallusrbinperl -Ud_sigsetjmp
-Dusethreads -Duseithreads -Ulocincpth= -Uloclibpth=
-Dprefix=/usr/local/ActivePerl-5.8 -Duselargefiles'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing'
ccversion='', gccversion='2.95.2 19991024 (release)',
gccosandvers='solaris2.6'
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', ldflags =' '
libpth=/usr/lib /usr/ccs/lib /usr/local/lib
libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -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'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
ActivePerl Build 806
Built under solaris
Compiled at Mar 31 2003 00:43:00
[at] INC:
/usr/local/ActivePerl-5.8/lib/5.8.0/sun4-solaris-thread-mult i
/usr/local/ActivePerl-5.8/lib/5.8.0

/usr/local/ActivePerl-5.8/lib/site_perl/5.8.0/sun4-solaris-t hread-multi
/usr/local/ActivePerl-5.8/lib/site_perl/5.8.0
/usr/local/ActivePerl-5.8/lib/site_perl

Can anyone suggest where I might be going wrong or what I can try?
Can't seem to use the CPAN module either as I am on a network!

Thanks

p.s sorry for the long details of the message but thought it was better
to include them from the off.
sly [ Mi, 29 November 2006 12:16 ] [ ID #1552068 ]

Re: Installing DBI-1.53 on Solaris

This is where is seems to fail:

cc1: Invalid option `-fno-strict-aliasing'

I am using gcc version 2.8.1 should I get the latest gcc and if so will
I have to re-install perl?
sly [ Mi, 29 November 2006 14:50 ] [ ID #1552069 ]

Re: Installing DBI-1.53 on Solaris

"sly" <simon.chesterman [at] orange.net> writes:

> cc1: Invalid option `-fno-strict-aliasing'

....

> Have checked the complier that installed Perl and it is gcc which I am
> using above, here is the output:

In your followup, you said you're using GCC 2.8, but Perl was built with
2.95.2, as shown here:

> ccversion='', gccversion='2.95.2 19991024 (release)',

You should use the same compiler to build modules that was used to build
Perl itself. You can get GCC 2.95.2 as a binary package here:

<http://www.ibiblio.org/pub/packages/solaris/sparc/>

Didn't ActiveState include PPM with ActivePerl/Solaris? If they did, you
could use it to fetch and install a prebuilt binary.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Sherm Pendley [ Mi, 29 November 2006 17:09 ] [ ID #1552070 ]

Re: Installing DBI-1.53 on Solaris

I have recently updated DBI on Solaris 8 and 9 without problems, but I
have gcc 2.95.3, and I think I saw in the documentation it needs to
have at least 2.95.x version of gcc.

Boyd
boyd [ Mi, 29 November 2006 18:03 ] [ ID #1552071 ]

Re: Installing DBI-1.53 on Solaris

In article <1164808254.892697.36080 [at] j44g2000cwa.googlegroups.com>,
"sly" <simon.chesterman [at] orange.net> wrote:

> This is where is seems to fail:
>
> cc1: Invalid option `-fno-strict-aliasing'
>
> I am using gcc version 2.8.1 should I get the latest gcc and if so will
> I have to re-install perl?

Actually, after searching this question, I'm not sure what you need.
Have you posted this on perl.dbi.users ? Tim Bunce hangs out there and
he knows all about these issues.

Boyd
boyd [ Do, 30 November 2006 00:17 ] [ ID #1552073 ]

Re: Installing DBI-1.53 on Solaris

boyd <tbmoore9 [at] verizon.net> writes:

> In article <1164808254.892697.36080 [at] j44g2000cwa.googlegroups.com>,
> "sly" <simon.chesterman [at] orange.net> wrote:
>
>> This is where is seems to fail:
>>
>> cc1: Invalid option `-fno-strict-aliasing'
>>
>> I am using gcc version 2.8.1 should I get the latest gcc and if so will
>> I have to re-install perl?
>
> Actually, after searching this question, I'm not sure what you need.
> Have you posted this on perl.dbi.users ? Tim Bunce hangs out there and
> he knows all about these issues.

Did you actually *read* the "perl -V" dump that sly posted? The option that
GCC is complaining about is part of Perl's configuration, and will be used
when building *any* XS module. It's not coming from DBI's Makefile.PL.

Sly is using an earlier version (2.8.1) of GCC than what was used to build
his Perl (2.95.1). That being the case, Perl is trying to pass an option that
the earlier GCC does not understand.

This is one of many reasons why it's a good idea - and in many cases is a
requirement - to build your modules using the same compiler your Perl was
built with.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Sherm Pendley [ Do, 30 November 2006 00:31 ] [ ID #1552074 ]

Re: Installing DBI-1.53 on Solaris

Thanks for all the help.. am going it install the gcc version 2.95.2
that was used to install Perl.
If that still dosn't work will try the perl.dbi.users forum.

Thanks again
sly [ Do, 30 November 2006 10:07 ] [ ID #1553357 ]
Perl » comp.lang.perl.modules » Installing DBI-1.53 on Solaris

Vorheriges Thema: Getting started with Berkeley DB XML
Nächstes Thema: make test failing on Berkeley DB 4.5/perl 5.8 (and 5.6) on BSD6/AMD64