ITPFS oota
2010-Feb-04 08:02 UTC
[Samba] Samba 3.5.0RC2 can't compile on CentOS 5.3/RHEL 5.3
I tested Samba 3.5.0RC2 with no option like #./configure #make but, when linking smbclient, following error happen. ------------------------------------------------------------------ # make Using CFLAGS = -O -I. -I/root/samba-3.5.0rc2/source3 -I/root/samba-3.5.0rc2/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED -I/root/samba-3.5.0rc2/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 PICFLAG = -fPIC LIBS = -lcap -lresolv -lresolv -lnsl -ldl -lpthread LDFLAGS = -pie -Wl,-z,relro -Wl,--as-needed -L./bin DYNEXP = -Wl,--export-dynamic LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-z,relro -Wl,--as-needed -L./bin -lc -Wl,-z,defs SHLIBEXT = so SONAMEFLAG = -Wl,-sonameLinking bin/smbclient /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetnum' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetent' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetstr' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgoto' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `UP' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `BC' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tputs' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `PC' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetflag' collect2: ld returned 1 exit status make: *** [bin/smbclient] Error 1 ------------------------------------------------------------------------------------ in web I found suggestion, http://groups.google.co.jp/group/mailing.unix.samba/browse_thread/thread/702994dd300018ff/7ca3a0ac4d2c15e2?lnk=gst&q=tgetnum#7ca3a0ac4d2c15e2 it says Set export LDFLAGS="-Wl,--no-as-needed" . and before ./configure, set LDFLAGS ,then compile OK. What happen? -- --- Oota Toshiya --- t-oota at dh.jp.nec.com NEC Systems Software Operations Unit Shiba,Minato,Tokyo IT Platform Solutions Division Japan,Earth,Solar system (samba-jp/ldap-jp Staff,mutt-j/samba-jp postmaster)
Björn Jacke
2010-Feb-04 12:16 UTC
[Samba] Samba 3.5.0RC2 can't compile on CentOS 5.3/RHEL 5.3
On 2010-02-04 at 17:02 +0900 ITPFS oota sent off:> it says Set export LDFLAGS="-Wl,--no-as-needed" . > > and before ./configure, set LDFLAGS ,then compile OK. > > What happen?ask here for a proper fix of your distribution packages: https://bugzilla.redhat.com/show_bug.cgi?id=499837 Bj?rn