develooper Front page | perl.perl5.porters | Postings from July 2008

[PATCH] Re: [perl #56826] Perl-5.8.8 compilation on AIX 5.1

Thread Previous
From:
Andy Dougherty
Date:
July 11, 2008 08:27
Subject:
[PATCH] Re: [perl #56826] Perl-5.8.8 compilation on AIX 5.1
Message ID:
Pine.LNX.4.64.0807111112440.1349@fractal.phys.lafayette.edu
On Fri, 11 Jul 2008, kawaljeet kaur wrote:

> # New Ticket Created by  "kawaljeet kaur" 
> # Please include the string:  [perl #56826]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56826 >
> 

> I got the following messages while running make for compiling Perl-5.8.8 on
> AIX 5.1 using gcc-4.0.0:
> 
> 
>  Making NDBM_File (dynamic)
> Note (probably harmless): No library found for -lndbm
> Note (probably harmless): No library found for -lucb

>  Making ODBM_File (dynamic)
> Note (probably harmless): No library found for -lucb

>         Making POSIX (dynamic)
> Note (probably harmless): No library found for -lposix
> Note (probably harmless): No library found for -lcposix

These are almost certinaly harmless.  It's perfectly legitimate for a 
system to include all of the POSIX functions in the regular C library and 
to not need any extra libraries at all.  

> I have read in the Perl INSTALL file present in the source directory that
> 
> "
> Note (probably harmless): No library found for -lsomething
> If you see such a message during the building of an extension, but the
> extension passes its tests anyway (see "make test" below), then don't worry
> about the warning message. The extension Makefile.PL goes looking for
> various libraries needed on various systems; few systems will need all the
> possible libraries listed. For example, a system may have -lcposix or
> -lposix, but it's unlikely to have both, so most users will see warnings for
> the one they don't have. The phrase 'probably harmless' is intended to
> reassure you that nothing unusual is happening, and the build process is
> continuing.

> 
> >From the notes it seemed that either -lposix or -lcposix should be present ,
> but as pasted above , in my case none of them were present and still make
> proceeded to end with a small ignorable error

The note should perhaps say something more like:

    For example, a system may require nothing, or -lcposix, or -lposix, but
    it's unlikely to need both -lcposix and -lposix, so most users will see 
    warnings for at least one of those libraries.

Or  perhaps just delete that example entirely, since the explanation is
getting so long.

I propose the following patch to INSTALL

--- perl-current/INSTALL	2008-05-17 09:52:44.000000000 -0400
+++ perl-andy/INSTALL	2008-07-11 11:25:01.000000000 -0400
@@ -1534,11 +1534,9 @@
 then don't worry about the warning message.  The extension
 Makefile.PL goes looking for various libraries needed on various
 systems; few systems will need all the possible libraries listed.
-For example, a system may have -lcposix or -lposix, but it's
-unlikely to have both, so most users will see warnings for the one
-they don't have.  The phrase 'probably harmless' is intended to
-reassure you that nothing unusual is happening, and the build
-process is continuing.
+Most users will see warnings for the ones they don't have.  The
+phrase 'probably harmless' is intended to reassure you that nothing
+unusual is happening, and the build process is continuing.
 
 On the other hand, if you are building GDBM_File and you get the
 message




> make[1]: Leaving directory `/tmp/kawal/newtest/perl-5.8.8/ext/Errno'
> make: [extras.make] Error 1 (ignored)
> 
>         Everything is up to date. Type 'make test' to run test suite.
> 
> Again on running make test , i get "Failed 2 test scripts out of 929, 99.78%
> okay." at the end.
> 
> Please guide me whether this build is ok or there is something that i am
> missing.

Without knowing which specific tests failed, it's impossible to guess.
However, it's almost certainly unrelated to the "probably harmless"
messages.

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About