I was wondering if anyone could help me out. I read the Samba-PDC LDAP howto for both the HEAD and TNG samba versions. Since it appears the TNG LDAP stuff isn't functional, I wanted to try to setup samba using the older HEAD schema. I have tried several times to to compile the 10/15/99 samba on a linux box using the 2.2.14 kernel, but I consistantly get the same compile error. I have compiled and installed the current 1.2 ldap version. I put the contents of ./ldap/include/ in /usr/local/etc/openldap/lib/ and the contents of ./ldap/libraries/ in /usr/local/etc/openldap/lib/. When I compile I get this error: Compiling client/clitar.c Linking bin/smbclient /usr/lib/libreadline.a(shell.o): In function `get_home_dir': shell.o(.text+0x11c): multiple definition of `get_home_dir' lib/username.o(.text+0x974): first defined here /usr/bin/ld: Warning: size of symbol `get_home_dir' changed from 138 to 37 in shell.o collect2: ld returned 1 exit status make: *** [bin/smbclient] Error 1 I don't think this has anything to do with the LDAP libraries, because I get the error wheter I configure --with-ldap or not. Anyone have any ideas what may be causing this and how I can fix it? I would really like to get this working to test out the viability of using Samba w/ ldap as an alternative to upgrading our current file server. -- Daniell Freed Computer Services Dewitt, Ross, & Stevens He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you. Beyond Good and Evil Friedrich Wilhelm Nietzche
[dxf@dewittross.com <dxf@dewittross.com>]> Compiling client/clitar.c > Linking bin/smbclient > /usr/lib/libreadline.a(shell.o): In function `get_home_dir': > shell.o(.text+0x11c): multiple definition of `get_home_dir' > lib/username.o(.text+0x974): first defined hereThis is readline's fault. (I'm reporting it as a bug.) It is being a very bad library, exporting one hundred functions and variables outside the namespace {rl_*,_rl_*}. To see them, do: nm -D /lib/libreadline.so.4 | grep ' [BDT] ' The temporary workaround would be to recompile Samba with some flag like -Dget_home_dir=X_get_home_dir . Or, if you don't care about the usability of tools like smbclient and rpcclient, you can compile without readline support. Note that readline v2, while just as bad as readline v4 with regards to its namespace, does not happen to have anything called get_home_dir. Peter
This may be a stupid question, What IS Samba HEAD? Is it a module for Samba-2.2.x or is it another version of Samba or what? I know I should probably RTFM but I don't have a copy of Samba handy on my home system (I don't have a LAN for a start..). Thanks Kris "May darkness be your only ally, for in the shadows you can hide" - Kris 1998-2002 -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQEVAwUBPHjfdSBHjRAjzresAQHZpgf/ZKpt2Nl+8EmIJwT/rLFtx8yhFFKdqVk6 pQGsgeOGN1ZI5kSOU6FBeWkyVS3YKLV6UHhvHVm1MQuBwPyfnjhQGj+OuI9jQPoc qTFb0TRQivOQoOeJq1PfIFcl53RrvRUOFAl8+jdKqZo/IFARdllknkCMTZirvp5l M+7/4a/ua2rx8d46zab1RF5YYNHRjyJRXD913FHty5VXCX31DJ55nAho30lOKOPC TNT+zzO1UC/J+keWSjxSSV3wPeOiOgtUtI5FiuXJmv1IXzsxjogGCTd0HUJ/04mR H623bEhl8M8yF/x6seCNKpHDkDQjoL+ddlQGVezdgbg3z7Jd7Y6VKA==/whC -----END PGP SIGNATURE----- --- Outgoing mail is certified Virus Free by AVG 6. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/2002