The ncurses library is not found in older OI versions
In building many oi-userland components on older OI versions, like oi_151a8 and oi_151a9, the configure script is unable to find the ncurses libraries, even though the ncurses package is installed. The configure script does find the header files, but not the libraries. The following error message appears:
ld: fatal: library -lncurses: not found
Sometimes instead, the error is:
undefined symbols: wattr_on wattr_off
This happens because the ncurses libraries are installed in /usr/gnu/lib, but the configure script only looks for them in /usr/lib . The solution is to extend LDFLAGS to contain those libraries for OI versions that have them in /usr/gnu/lib .
Updated by Gary Mills about 3 years ago
The -R$(GNULIB.$(BITS)) option is necessary if the library is intalled in /usr/gnu/lib . That's the recommended method for an executable to locate its library. Of course, the alternative is to install all libraries in /usr/lib, the default search location.
I don't understand the conflict you mention. As far as I can tell, there is no GNU iconv installed on my system. In fact, the SUNWgnu-libiconv package is marked obsolete, with no replacement that I can find.
Updated by Alexander Pyhalov about 3 years ago
- Status changed from Feedback to Rejected
oi-userland is supposed to be built on latest OI Hipster. While we can consider adding some patches for building on older illumos-gate to speed up work on SPARC build, I don't think that accepting such hacks for building on older userland software is a good idea. Software just have to be updated incrementally.