bugGNU Mailutils - Bugs: bug #21038, MU_CHECK_LIB doesn't find...

 
 

bug #21038: MU_CHECK_LIB doesn't find libraries in other than first directory passed to it

Submitted by:  Lubomir Rintel <lkundrak>
Submitted on:  Tue 11 Sep 2007 04:58:42 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Sergey Poznyakoff <gray>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 11 Sep 2007 04:58:42 PM UTC, original submission:

This comes from m4/lib.m4. See what it does? Calls AC_CHECK_LIBS with the very same parameters multiple times, while using LIBS variable as a temporary variable. Bad.

13 for path in $6
14 do
15 LIBS="$save_LIBS -L$path"
16 AC_CHECK_LIB($1, $2,
17 [mu_cv_lib_$1="$3 -L$path -l$1"
18 break],
19 [mu_cv_lib_$1=no],$3)
20 done

The effect is that the results of the first call will get cached and if it was unsuccessful, all further calls in the cycle will not succeed regardless the contents of the LIBS variable. This renders MU_CHECK_LIB macro effectively useless.

Lubomir Rintel <lkundrak>

 

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

Attach File(s):
   
   
Comment:
   

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 gray (Updated the item)
  • -unavailable- added by lkundrak
  • -unavailable- added by lkundrak (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Sep 2009 09:23:08 AM UTCgrayStatusNone=>Fixed
      Assigned toNone=>gray
      Open/ClosedOpen=>Closed
    Tue 11 Sep 2007 04:58:42 PM UTClkundrakCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1