Click here to get back home

Installing DBI-1.53 on Solaris

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Installing DBI-1.53 on Solaris sly 11-29-2006
Get Chitika Premium
Posted by sly on November 29, 2006, 6:16 am
Please log in for more thread options


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-multi/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-multi
/usr/local/ActivePerl-5.8/lib/5.8.0

/usr/local/ActivePerl-5.8/lib/site_perl/5.8.0/sun4-solaris-thread-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.


Posted by sly on November 29, 2006, 8:50 am
Please log in for more thread options



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?


Posted by boyd on November 29, 2006, 6:17 pm
Please log in for more thread options



> 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

Posted by Sherm Pendley on November 29, 2006, 6:31 pm
Please log in for more thread options



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

Posted by sly on November 30, 2006, 4:07 am
Please log in for more thread options


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


Similar ThreadsPosted
fault installing DBD::mysql in solaris 9 January 30, 2005, 7:02 am
Problems installing DBD::mysql on Solaris 10 November 2, 2005, 8:43 am
Errors installing XML::Parser from CPAN on Solaris 9 September 7, 2005, 10:29 am
GD module on Solaris 9 September 3, 2004, 11:10 am
How can I install the DBI on Solaris February 24, 2005, 4:16 pm
Net::SSH:Perl on Solaris and passwd September 28, 2004, 11:24 pm
DBI compilation error on Solaris February 24, 2005, 6:04 pm
Sybperl errors on Solaris 2.9 March 2, 2005, 8:52 am
File::Find on Solaris v8-10 August 1, 2005, 11:06 am
Des::Crypt Will not Compile On Solaris 8 Using GCC December 7, 2005, 2:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap