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

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 27 Oct 2016 04:41:48 PM UTC
   
 
Category:  Installation Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  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>
Group administrator
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>
Group administrator
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:


./configure ac_cv_func_malloc_0_nonnull=yes


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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-28 makhlaghi StatusConfirmed Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code