Opened 16 years ago
Last modified 14 years ago
#16023 closed defect
samba3 3.2.0 dynamic libs not well referenced — at Version 6
Reported by: | pierre.augeard@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: | samba3 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi,
Config: xserve, 10.4
After a fresh install of macports and samba (the only port installed on the server), the dyn lib are not well referenced.
otool -L nmbd: ... bin/libtalloc.dylib (compatibility version 0.0.0, current version 0.0.0) bin/libtdb.dylib (compatibility version 0.0.0, current version 0.0.0) ...
all the executable have this problem, I am unable to launch the daemons...
I've seen the BAND-AID, but it doesn't seem to work?
Thanks, Pierre
Change History (7)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Summary: | Samba 3.2.0 dynamic libs not welle referenced → samba3 3.2.0 dynamic libs not well referenced |
comment:2 Changed 16 years ago by pierre.augeard@…
I've attached the makefile which seems to be clean. The link variable for LIBTDB_SHARED_TARGET and LIBTALLOC_SHARED_TARGET is SHLD_DSO defined here:
SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
is not modified with the -install_name param should I fix it like that?
SHLD_DSO = $(SHLD) $(LDSHFLAGS) -install_name @libdir@/`basename $@` $(DSO_EXPORTS) -o @
comment:3 Changed 16 years ago by pierre.augeard@…
My apologies, the Makefile doesn't seem to be clean.
Do we have to do the same for the SHLD_MODULE variable?
I rather sceptic because these specific *.dylib will be located in sub directories of {prefix}/lib/samba3.
comment:4 Changed 16 years ago by pierre.augeard@…
Well I'm sorry for the spam...:
Now the dylib references to libtalloc and libtdb are ok.
But when I launch the smbd daemon, it crashes with the following log:
passdb/pdb_interface.c:make_pdb_method_name(133) Attempting to find an passdb backend to match guest (guest) passdb/pdb_interface.c:make_pdb_method_name(139) No builtin backend found, trying to load plugin lib/module.c:smb_probe_module(111) Probing module 'guest' lib/module.c:smb_probe_module(130) Probing module 'guest': Trying to load from /opt/local/lib/samba3/pdb/guest.dylib lib/module.c:do_smb_load_module(48) Error loading module '/opt/local/lib/samba3/pdb/guest.dylib': dlopen(/opt/local/lib/samba3/pdb/guest.dylib, 1) : image not found passdb/pdb_interface.c:make_pdb_method_name(149) No builtin nor plugin backend for guest found lib/util.c:smb_panic(1666) PANIC (pid 27530): pdb_get_methods_reload: failed to get pdb methods for backend guest
In the makefile I can see:
PDB_MODULES = AUTH_MODULES = bin/script.dylib
So no guest.dylib is created. Is it the normal behavior? What do I have to put in smb.conf to launch correctly the dameon? (sorry this is a very open question)
comment:5 Changed 16 years ago by pierre.augeard@…
Well ok, guest seems to be deprecated... Unfortunately I've also got a critical error with tdbsam, and the log is not too helpful.
[2008/07/22 16:54:25, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 10119 (3.2.0)
Actually I really don't see how I can configure samba from macports, it seems that pdb/opendirectorysam vfs/darwin_acls and auth/opendirectory are missing, so I can't copy a osx-compliant smb.conf (3.0.10 shipped with my xserve osx 10.4).
PS: uname -a : 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | samba3 added |
Assigning to maintainer.