[uClibc 0001854]: make menuconfig fails when libncurses is an as-needed stub
bugs at busybox.net
bugs at busybox.net
Fri Jan 4 09:10:50 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=1854
======================================================================
Reported By: michael_d
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 1854
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 01-04-2008 01:10 PST
Last Modified: 01-04-2008 01:10 PST
======================================================================
Summary: 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.
======================================================================
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
======================================================================
More information about the uClibc-cvs
mailing list