DBD-Oracle
view release on metacpan or search on metacpan
hints/svr4.pl view on Meta::CPAN
my $archname = $Config::Config{archname} || die;
$att{LIBS} ||= [];
$att{LIBS}->[0] ||= '';
# Some SVR4 systems may need to link against -lc to pick up things like
# fpsetmask, sys_nerr and ecvt.
my @libs = qw(-lsocket -lnsl -lm -ldl); # general svr4 default
# modified by Davide Migliavacca <davide.migliavacca@inferentia.it>
if ($archname eq 'RM400-svr4') {
@libs = qw(-lucb);
}
push @libs, '-lc';
warn "$^O LIBS attribute defaulted to '$att{LIBS}->[0]' for '$archname'";
$att{LIBS}->[0] .= " ".join(" ", @libs); # append libs
warn "$^O LIBS attribute updated to '$att{LIBS}->[0]'";
__END__
From doughera@lafcol.lafayette.edu Mon Aug 21 07:01:51 1995
Date: Fri, 18 Aug 1995 15:33:22 -0400 (EDT)
From: Andy Dougherty <doughera@lafcol.lafayette.edu>
Subject: Re: [MM] Re: hints file for Oracle
To: Tim Bunce <Tim.Bunce@ig.co.uk>
In-Reply-To: <9508181853.ab12333@post.demon.co.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 18 Aug 1995, Tim Bunce wrote:
> > From: Alan Burlison <aburlison@cix.compulink.co.uk>
> >
> > Tim,
> >
> > The following hints file is required for DBD::Oracle on svr4, you might
> > like to add it to the next release :-)
> >
> > File: Oracle/hints/svr4.pl
> >
> > # Some SVR4 systems may need to link against -lc to pick up things like
> > $att{LIBS} = [ '-lsocket -lnsl -lm -ldl -lc' ];
>
> Umm, 'some', 'may', 'things like'. Care to clarify?
>
> Why _exactly_ is this needed, and why doesn't MakeMaker do this already?
> (CC'd to the MakeMaker mailing list.)
That looks like a bad editing of the ODBM_File/hints/svr4.pl:
########################## hints/svr4.pl #########################
# Some SVR4 systems may need to link against routines in -lucb for
# odbm. Some may also need to link against -lc to pick up things like
# ecvt.
$att{LIBS} = ['-ldbm -lucb -lc'];
###################################################################
"Some" includes Unisys 6000 (or something like that). I don't know
if it includes anything else. It doesn't include Unixware 2.1, but it
might include Esix. It's *really* hard to get accurate info.
"May" because some do and some don't, and any listing gets out of date
quickly as vendors issue different versions, and probably more than
half the info you *do* get about specific versions is wrong. Hence all
the vague weasel-words.
( run in 1.868 second using v1.01-cache-2.11-cpan-39bf76dae61 )