bugGNU Astronomy Utilities - Bugs: bug #49459, rpl_malloc: make check fails when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49459: rpl_malloc: make check fails when linking with library

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Thu 27 Oct 2016 04:41:48 PM UTC  
 
Category: InstallationSeverity: 3 - Normal
Item Group: CrashStatus: Fixed
Privacy: PublicAssigned to: Mohammad Akhlaghi <makhlaghi>
Open/Closed: Closed

Fri 28 Oct 2016 08:21:17 AM UTC, comment #2:

The problem is now fixed and pushed to the main repo. The problem was that I thought `AC_FUNC_MALLOC' is included by Gnulib, so after a check, I saw it isn't and we have to call it ourselves.

Mohammad Akhlaghi <makhlaghi>
Project AdministratorIn charge of this item.
Thu 27 Oct 2016 05:02:25 PM UTC, comment #1:

Sorry, on re-reading the text of this bug-report, I noticed that I forgot to explain the problem completely.

Since this `rpl_malloc' function is called but not found, the library tests in `make check' fail to link and so `make check' isn't successful. You can see the output in bug #49460.

Mohammad Akhlaghi <makhlaghi>
Project AdministratorIn charge of this item.
Thu 27 Oct 2016 04:41:48 PM UTC, original submission:

Autoconf's test of `malloc' can fail some times. So it will call a function called `rpl_malloc' instead. The situation is described described in the autoconf manual (under the `AC_FUNC_MALLOC' macro).

This problem was reported by Alan Lefor and Antonio Diaz Diaz. Since I didn't have time to implement it immediately, a temporary fix was found by Alan to be run at configure time and explained in the Known issues section of the manual. In short, if the configure script is run like the following the problem will go:

But the better solution is to do what Autoconf has suggested (to actually make this function available in the library). I find this puzzling however, because `rpl_malloc' is included in Gnuastro as part of Gnulib (in `bootstrapped/lib/malloc.c').

Mohammad Akhlaghi <makhlaghi>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by makhlaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Oct 2016 08:21:17 AM UTCmakhlaghiStatusConfirmed=>Fixed
      Assigned toNone=>makhlaghi
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1