[Samba] SOLVED: readline/termcap problems compiling Samba 3.5.0rc1 on CentOS 5.4 64-bit
joe at pyx.ch
Thu Jan 28 08:06:43 MST 2010
On Friday 22 January 2010 01:21:46 Joe Ammann wrote:
> When I try to compile 3.5.0rc1 on CentOS 5.4, I get the seemingly well
> know problem below
> Linking bin/smbclient
> undefined reference to `tgetnum'
I was finally able to solve my problem. The reason was the combination of 2
- CentOS readline library does not declate dependency on curses/termcap
- Samba compile uses the -Wl,--ad-needed link flag
Then, although libtermcap is mentioned as library to link (-ltermcap), gcc
does not include it - because no directly used library declares any
dependency on it.
I fixed my problem by using LDFLAGS="-Wl,--no-as-needed" ./configure...... to
More information about the samba