Re: [Samba] SOLVED: readline/termcap problems compiling Samba 3.5.0rc1 on CentOS 5.4 64-bit

2010-04-11 Thread William P.N. Smith

Joe Ammann wrote:
/*
I fixed my problem by using
LDFLAGS=-Wl,--no-as-needed ./configure
*/

Still broken, still not anyone's problem in 3.5.2, many thanks to Joe 
for the solution!


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SOLVED: readline/termcap problems compiling Samba 3.5.0rc1 on CentOS 5.4 64-bit

2010-01-29 Thread Joe Ammann
On Thursday 28 January 2010 16:27:07 John Drescher wrote:
 On Thu, Jan 28, 2010 at 10:06 AM, Joe Ammann j...@pyx.ch wrote:
  - CentOS readline library does not declate dependency on curses/termcap
  - Samba compile uses the -Wl,--ad-needed link flag
 
 BTW, rc2 is now out.

Yeah, just saw and tested it, same problem, same solution :-)

-- 
  CU, Joe
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] SOLVED: readline/termcap problems compiling Samba 3.5.0rc1 on CentOS 5.4 64-bit

2010-01-28 Thread Joe Ammann
Hi

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
 /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
 undefined reference to `tgetnum'

I was finally able to solve my problem. The reason was the combination of 2 
facts:

- 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 
compile.

-- 
CU, Joe
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SOLVED: readline/termcap problems compiling Samba 3.5.0rc1 on CentOS 5.4 64-bit

2010-01-28 Thread John Drescher
On Thu, Jan 28, 2010 at 10:06 AM, Joe Ammann j...@pyx.ch wrote:
 Hi

 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
 /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
 undefined reference to `tgetnum'

 I was finally able to solve my problem. The reason was the combination of 2
 facts:

 - CentOS readline library does not declate dependency on curses/termcap
 - Samba compile uses the -Wl,--ad-needed link flag


BTW, rc2 is now out.

John
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba