buggrep - Bugs: bug #35518, Correct gettext/iconv linking

 
 

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

bug #35518: Correct gettext/iconv linking

Submitter:  Brad Smith <brad0>
Submitted:  Sun 12 Feb 2012 09:14:07 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

Wed 29 Feb 2012 05:39:19 PM UTC, comment #2: 

No response for a while, so I'm marking this bug "Need Info".

Paul Eggert <eggert>
Group Member
Sun 12 Feb 2012 10:25:56 PM UTC, comment #1: 

I don't see why the patch is needed, or
how the patch can work in general.
Grep doesn't use libtool, and surely LTLIBINTL and
LTLIBICONV aren't reliable in the absence of libtool.

Paul Eggert <eggert>
Group Member
Sun 12 Feb 2012 09:14:07 PM UTC, original submission:  

The attached patch corrects the automake files to use LTLIBINTL and LTLIBICONV as appropriate. Currently the Makefile's are using LIBINTL and LIBICONV which provide relative paths to the libraries instead of linking with -lfoo as it should be.


cc -std=gnu99   -O2 -pipe  -L/usr/local/lib -o egrep egrep.o libgrep.a  ../lib/libgreputils.a /usr/local/lib/libintl.so.5.0 /usr/local/lib/libiconv.so.6.0 ../lib/libgreputils.a /usr/local/lib/libiconv.so.6.0

$ objdump -p gegrep
...
Dynamic Section:
  NEEDED      /usr/local/lib/libintl.so.5.0
  NEEDED      /usr/local/lib/libiconv.so.6.0
  NEEDED      libc.so.62.0

Brad Smith <brad0>

 

Attached Files

Attached Files
file #25050:  grep.diff added by brad0 (1.5KiB - application/octet-stream)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by eggert (Posted a comment)
  • -email is unavailable- added by brad0 (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-29 eggert StatusNone Need Info
    2012-02-12 brad0 Attached File- Added grep.diff, #25050

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code