BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001854 [uClibc] Other minor always 01-04-08 01:10 01-04-08 21:34
Reporter michael_d View Status public  
Assigned To uClibc
Priority normal Resolution duplicate  
Status closed   Product Version
Summary 0001854: make menuconfig fails when libncurses is an as-needed stub
Description On my systems, I have replaced most "*.so" files with linker scripts which reference the real libraries with in an AS_NEEDED( ) block. This makes my binaries neater in cases where dumb build scripts reference libraries that aren't really needed.

However, when I try to configure a virgin uClibc tree, I get many errors linking "mconf", which cite undefined symbols that are obviously from ncurses.

It appears the linker works left-to-right and decides when a library is needed or not at the moment it appears. Your Makefile puts "-lncurses" before any object files, so the linker never sees an ncurses symbol reference until it is too late.

This problem apparently would also occur with a static libncurses -- hence most other projects are careful to put all "-l" options at the end of the linker invocation.

I've attached a patch that moves the library options to the end of the line, allowing "make menuconfig" to work on my system.
Additional Information
Attached Files  uClibc-0.9.29-conffix.diff [^] (934 bytes) 01-04-08 01:10

- Relationships

- Notes
(0003364)
vapier
01-04-08 21:34

thanks for the patch, but this was fixed sometime ago already

dupe of 0001554
 

- Issue History
Date Modified Username Field Change
01-04-08 01:10 michael_d New Issue
01-04-08 01:10 michael_d Status new => assigned
01-04-08 01:10 michael_d Assigned To  => uClibc
01-04-08 01:10 michael_d File Added: uClibc-0.9.29-conffix.diff
01-04-08 21:34 vapier Note Added: 0003364
01-04-08 21:34 vapier Status assigned => closed
01-04-08 21:34 vapier Resolution open => duplicate


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker