Installing DBI-1.53 on Solaris

Installing DBI-1.53 on Solaris

am 29.11.2006 12:16:47 von sly

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@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
@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.

Re: Installing DBI-1.53 on Solaris

am 29.11.2006 14:50:54 von sly

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?

Re: Installing DBI-1.53 on Solaris

am 29.11.2006 17:09:31 von Sherm Pendley

"sly" 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:



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

Re: Installing DBI-1.53 on Solaris

am 29.11.2006 18:03:15 von boyd

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

Re: Installing DBI-1.53 on Solaris

am 30.11.2006 00:17:18 von boyd

In article <1164808254.892697.36080@j44g2000cwa.googlegroups.com>,
"sly" 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

Re: Installing DBI-1.53 on Solaris

am 30.11.2006 00:31:53 von Sherm Pendley

boyd writes:

> In article <1164808254.892697.36080@j44g2000cwa.googlegroups.com>,
> "sly" 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

Re: Installing DBI-1.53 on Solaris

am 30.11.2006 10:07:38 von sly

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