Prev: Samba4 - List of options for smb.conf
Next: [Samba] [oOT] ploenk.net@eplus.blackberry.com please fix your mail forwarding
From: Craig Green on 19 Apr 2010 03:20 HI, I have altered my build script so that the variables are exported. I now get past the issue of configure falling over but the make now fails. The data and issues I have listed here refer to samba 3.5.0. I will be running a configure and make for 3.4.7 overnight to see if I get the same issues. The configure runs to completion and here is the tail end of the output. #define HAVE_ZLIB_H 1 #define HAVE_ZLIBVERSION 1 #define HAVE_LIBZ 1 configure: exit 0 Here is the tail end of the output from the make. (ld): lib /usr/lib/libxdsm.a (ld): i bin/libtalloc.a (ld): i bin/libtdb.a (ld): lib /opt/pware/lib/libwbclient.so (ld): lib /opt/pware/lib/libz.so (ld): i /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a (ld): i /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc_eh.a (ld): lib /usr/lib/libc.a (ld): lib /usr/lib/librtl.a LIBRARY: Shared object libldap.so: 463 symbols imported. LIBRARY: Shared object liblber.so: 134 symbols imported. LIBRARY: Shared object libgssapi_krb5.so: 73 symbols imported. LIBRARY: Shared object libkrb5.so: 746 symbols imported. LIBRARY: Shared object libk5crypto.so: 158 symbols imported. LIBRARY: Shared object libcom_err.so: 9 symbols imported. LIBRARY: Shared object libpthreads.a[shr_comm.o]: 177 symbols imported. LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 162 symbols imported. LIBRARY: Shared object libpam.a[shr.o]: 23 symbols imported. LIBRARY: Shared object libiconv.a[libiconv.so.2]: 13 symbols imported. LIBRARY: Shared object librt.a[posix_aio.o]: 7 symbols imported. LIBRARY: Shared object libpopt.a[libpopt.so.0]: 30 symbols imported. LIBRARY: Shared object libxdsm.a[shr.o]: 75 symbols imported. LIBRARY: Shared object libwbclient.so: 108 symbols imported. LIBRARY: Shared object libz.so: 72 symbols imported. LIBRARY: Shared object libc.a[shr.o]: 2875 symbols imported. LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported. LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols imported. LIBRARY: Shared object libc.a[aio.o]: 18 symbols imported. LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported. LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported. LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported. LIBRARY: Shared object librtl.a[shr.o]: 1 symbols imported. LIBRARY: Shared object librtl.a[lazy42.o]: 3 symbols imported. FILELIST: Number of previously inserted files processed: 561 (ld): initfini _GLOBAL__FI_smbd _GLOBAL__FD_smbd (ld): resolve ld: 0711-228 WARNING: Duplicate symbols were found while resolving symbols. The following duplicates were found: Symbol Source-File(Object) OR Import-File{Shared-object} ------------------------- ------------------------------------------------- __start crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} .__start crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} __C_runtime_pstartup crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} p_xargc crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} p_xargv crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} .__threads_init ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} __threads_init ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _malloc_user_defined_name ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} __pth_init_routine ../../../../../../../../src/bos/usr/ccs/lib/libpthreads/init.c(/usr/lib/libpthreads.a[init.o]) ** Duplicate ** ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _bsd_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _xti_tli_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _nsl_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} __dce_compat_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} p_xrcfg crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} p_xrc crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _GLOBAL__F___divdi3_7DED82B0 {/opt/pware/lib/libwbclient.so} ** Duplicate ** ../../gcc-4.2.4/gcc/libgcc2.c(/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a[_divdi3.o]) _GLOBAL__F___moddi3_7DED82B0 {/opt/pware/lib/libwbclient.so} ** Duplicate ** ../../gcc-4.2.4/gcc/libgcc2.c(/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a[_moddi3.o]) _GLOBAL__F___udivdi3_7DED82B0 {/opt/pware/lib/libwbclient.so} ** Duplicate ** ../../gcc-4.2.4/gcc/libgcc2.c(/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a[_udivdi3.o]) _GLOBAL__F___umoddi3_7DED82B0 {/opt/pware/lib/libwbclient.so} ** Duplicate ** ../../gcc-4.2.4/gcc/libgcc2.c(/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a[_umoddi3.o]) _GLOBAL__F___register_frame_info_bases_CBACD997 {/opt/pware/lib/libwbclient.so} ** Duplicate ** ../../gcc-4.2.4/gcc/unwind-dw2-fde.c(/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc_eh.a[unwind-dw2-fde.o]) _text crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _etext crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _data crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _edata crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} end crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _end crt0main.s(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _libs_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} _odm_init_routine ../../../../../../../src/bos/usr/ccs/lib/libc/__threads_init.c(/lib/crt0.o) ** Duplicate ** {/opt/pware/lib/libwbclient.so} RESOLVE: 32797 of 54918 symbols were kept. RESOLVE: The return code is 4. (ld): addgl /usr/lib/glink.o ADDGL: Glink code added for 456 symbols. (ld): er full ld: 0711-318 ERROR: Undefined symbols were found. The following symbols are in error: Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object} RLD: Address Section Rld-type Referencing Symbol ---------------------------------------------------------------------------------------------- .wbcGetSidAliases [6] ER PR lib/winbind_util.c(lib/winbind_util.o) 000000c8 .text R_RBR [58] .winbind_get_sid_aliases .wbcGetpwsid [48] ER PR lib/winbind_util.c(lib/winbind_util.o) 00000c9c .text R_RBR [84] .winbind_getpwsid .wbcChangeTrustCredentials [142] ER PR rpc_server/srv_netlog_nt.c(rpc_server/srv_netlog_nt.o) 00003a94 .text R_RBR [256] ._netr_LogonControl2Ex ER: The return code is 8. The duplicates I can live with but the undefined symbols are an issue. As yet I have no idea how to resolve the undefined symbols. Regards, Craig Green Support Consultant - Unix Ultradata - Vision to Reality +61 3 9291 1742 www.ultradata.com.au > -----Original Message----- > From: samba-bounces(a)lists.samba.org > [mailto:samba-bounces(a)lists.samba.org] On Behalf Of Craig Green > Sent: Monday, 19 April 2010 9:56 AM > To: 'William Jojo'; Michael Wood; christoph.beyer(a)desy.de > Cc: Samba > Subject: Re: [Samba] krb5 library issues when Compiling 3.5.2 > and 3.4.7 on AIX 5.3 > > Hi, > > Thank you for your response. > > I am already specifying the -brtl option. I only listed the > configure line of my build script. > I really should have included all of the script. Here it is. > I actually used the "do-it" script from the pware site as the > basis for my script. > > #!/usr/bin/ksh93 > > PATH=/usr/bin:/etc:/usr/sbin:/usr/bin/X11:/sbin:/opt/pware/bin > :/opt/pware/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/vac/ > bin:/usr/local/bin:/root > export PATH > > SrcDir="/intsupport/samba/samba-3.4.7/source3" > > env CC="gcc -maix32 -O2 > -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl" \ > CPPFLAGS="-I/opt/pware/include" \ > CFLAGS="-O2 -I/opt/pware/include" \ > LDFLAGS="-lcrypto -L/opt/pware/lib " \ > > (cd ${SrcDir} && \ > ./configure --with-acl-support --with-utmp --with-ads \ > --with-ldap --with-krb5=/opt/pware --with-pam \ > --with-libiconv=/opt/pware --with-sendfile-support \ > --prefix=/opt/pware/samba/3.4.7 --with-syslog --with-quotas \ > --with-winbind=yes --with-aio-support=yes --with-automount \ > --with-static-modules="vfs_aixacl2,vfs_aixacl" \ > --with-shared-modules="idmap_rid,idmap_ad,idmap_tdb2" \ > --with-dnsupdate | tee ${SrcDir}/config-3.4.7.log ) > > > The only kerberos components installed on the server is the > krb5 package from the pware site. > IE: There no AIX krb components installed . > > The output from "lslpp -l | grep -i krb" returns " > pware53.krb5.rte 1.7.1.1 COMMITTED MIT Kerberos 1.7.1". > > I have tried using the samba packages from the pware site and > have had issues with integrating AIX with ADS. > Refer to thread "AIX 5.3 Active Directory Synchronisation > using Winbind". > I thought I had overcome my issues by using 3.5.2 from the > pware site but when I tried un-installing and re-installing > 3.5.2 I had issues. > I could not get "wbinfo -i user" to work. I kept getting > "Could not get info for user xxxxx" or it would return data > for the user but it would not use the uid and gid that was > specified via SFU3.5 in the AD. > > If I used 3.4.7 from the pware site then "wbinfo -i" would > always verify the user and return the correct uid and gid as > specified in the AD. > However when you tried to telnet into the server an error > would occur that implied that the group id was not in the group file. > But it is listed and there is definitely nothing wrong with > the passwd, group or /etc/security file(s). > > So I thought I would go back to compiling samba from scratch > to see if could overcome the issues of AD integration. > > I will export the vars CC, CPPFLAGS, CFLAGS and LDFLAGS and > then run configure. > The more I think about it this is most likely the issue. > It takes approx 2 hrs to run the configure script before it > fails so I will update you once I have been able to test this. > > Regards, > > Craig Green > Support Consultant - Unix > > Ultradata - Vision to Reality > +61 3 9291 1742 > www.ultradata.com.au > > > > -----Original Message----- > > From: samba-bounces(a)lists.samba.org > > [mailto:samba-bounces(a)lists.samba.org] On Behalf Of William Jojo > > Sent: Sunday, 18 April 2010 1:49 AM > > To: Michael Wood; christoph.beyer(a)desy.de > > Cc: Samba > > Subject: Re: [Samba] krb5 library issues when Compiling 3.5.2 and > > 3.4.7 on AIX 5.3 > > > > > > > > ---- Original message ---- > > >Date: Fri, 16 Apr 2010 10:38:09 +0200 > > >From: Michael Wood <esiotrot(a)gmail.com> > > >Subject: Re: [Samba] krb5 library issues when Compiling > > 3.5.2 and 3.4.7 > > >on AIX 5.3 > > >To: christoph.beyer(a)desy.de > > >Cc: Samba <samba(a)lists.samba.org> > > > > > >Hi > > > > > >On 16 April 2010 09:59, <christoph.beyer(a)desy.de> wrote: > > >> Hi, > > >> > > >> try --with-krb5=/path/to/your/kerberos/installation/root > > > > > >I suggested this at the bottom of his message and then > > realised that he > > >had done this. > > > > > > > > > The real problem is the ld command will not search for libs > that end > > with .so unless you provide the -brtl option. > > > > BTW, 3.5.2 is available on the site, unless there are features you > > don't need. :-) > > > > The method of configuring Samba that I use for pWare is: > > > > env CC="gcc -O2 > > -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl" \ > > CPPFLAGS="-I/opt/pware/include" \ > > CFLAGS="-O2 -I/opt/pware/include" \ > > LDFLAGS="-L/opt/pware/lib " \ > > ./configure --with-acl-support --with-utmp \ --with-ldap > > --with-krb5=/opt/pware \ --with-libiconv=/opt/pware > > --with-sendfile-support \ --prefix=/opt/pware --with-syslog > > --with-quotas \ --with-winbind=yes --with-aio-support=yes > > --with-automount \ --with-pam --with-acl-support \ > > --with-static-modules="vfs_aixacl2,vfs_aixacl" \ > > --with-shared-modules="idmap_rid,idmap_ad,vfs_gpfs,idmap_tdb2" > > > > > > Cheers, > > Bill > > > > > > >> or > > >> > > >> export CPPFLAGS="-I/your/krb/dir/include" > > >> export LDFLAGS="$LDFLAGS -L/your/krb/dir/lib" > > > > > >This might be worth a try. > > > > > >-- > > >Michael Wood <esiotrot(a)gmail.com> > > >-- > > >To unsubscribe from this list go to the following URL and read the > > >instructions: https://lists.samba.org/mailman/options/samba > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > Disclaimer Notice > > This message contains privileged and confidential information > intended only for the use of the addressee named above. If > you are not the intended recipient of this message you are > hereby notified that you must not disseminate, copy or take > any action or place any reliance on it. If you have received > this message in error please notify Ultradata immediately on > +61 3 9291 1600. Any views expressed in this message are > those of the individual sender, except where the sender > specifically states them to be the views of Ultradata > Australia Pty. Ltd. > > To unsubscribe from receiving commercial electronic messages > from Ultradata Australia please email > unsubscribe(a)ultradata.com.au with the subject heading "Unsubscribe". > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > Disclaimer Notice This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action or place any reliance on it. If you have received this message in error please notify Ultradata immediately on +61 3 9291 1600. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Ultradata Australia Pty. Ltd. To unsubscribe from receiving commercial electronic messages from Ultradata Australia please email unsubscribe(a)ultradata.com.au with the subject heading "Unsubscribe". -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba |