Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion perl DBI failed compilation

Received: by 10.68.238.65 with SMTP id vi1mr2524523pbc.7.1338352258073;
        Tue, 29 May 2012 21:30:58 -0700 (PDT)
Path: pr3ni64705pbb.0!nntp.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 29 May 2012 23:30:57 -0500
Date: Tue, 29 May 2012 21:30:54 -0700
From: Jonathan Leffler <jleff...@earthlink.net>
Organization: Chaotic Sputterings
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
Newsgroups: comp.lang.perl.modules
Subject: Re: perl DBI failed compilation
References: <bbebd453-4141-4c0c-940b-1dd993b17666@b21g2000yqn.googlegroups.com>
In-Reply-To: <bbebd453-4141-4c0c-940b-1dd993b17666@b21g2000yqn.googlegroups.com>
Message-ID: <Jc-dnVztD_IcP1jSnZ2dnUVZ_qadnZ2d@earthlink.com>
Lines: 37
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 64.41.17.212
X-Trace: sv3-BDBm0fooevDc6DtPSBSWSLFicjErQYMN0yUWUaGTdEzsTI6Xmahx5Dx//hU8mvSTRXAqWKpDwaboNIS!/LpXk1b2bUsXTMlQRE1lOxywMiphVDPnodSFvx8dtAtOEY15wyyJOfPPov8pzygK+ZF6L9S/YBys!m/pvLDeDOQ0jmyhxqD8zXNzZaWVVy4/W
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2711
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On 5/29/12 4:33 PM, bluethundr wrote:

>  I am attempting to use the perl DBI on a solaris 10 sparc machine.
> configure runs fine but I get an error on make.
> 
> This is the error I am seeing:
> 
> cc: DBI.o: No such file or directory
> cc: no input files
> *** Error code 1
> make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.s

...

> cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ER
> +RNO -xO3 -xspace -xildoff    -DVERSION=\"1.618\"  -DXS_VERSION=\"1.61
> +8\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"  -DDBI_NO_
> +THREADS Perl.c
> cc: unrecognized option `-KPIC'
> cc: language ildoff not recognized
> cc: Perl.c: linker input file unused because linking not done

Your problem is that you're not using the same C compiler that was used
to build Perl.

You need to use a compiler that is substantially the same as the one
used to build Perl, so that all compiler options are accepted.  Trying
to do otherwise leads to baldness as you tear your hair out over errors.
 Don't bother trying; it is really hard work.  Either get the right
compiler, or build your own Perl with the compiler you have (but don't
remove or damage the system-provided Perl unless you're a braver person
than I am).

-- 
Jonathan Leffler                   #include <disclaimer.h>
Email: jleff...@earthlink.net, jleff...@us.ibm.com
Guardian of DBD::Informix v2011.0612 -- http://dbi.perl.org/