New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16023 (new defect)

Opened 20 months ago

Last modified 8 months ago

samba3 3.2.0 dynamic libs not well referenced

Reported by: pierre.augeard@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jeremyhu@…
Port: samba3

Description (last modified by ryandesign@…) (diff)

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

Attachments

Makefile.in Download (92.3 KB) - added by pierre.augeard@… 20 months ago.
wrong Makefile

Change History

Changed 20 months ago by jmr@…

  • owner changed from macports-tickets@… to mww@…
  • summary changed from Samba 3.2.0 dynamic libs not welle referenced to samba3 3.2.0 dynamic libs not well referenced
  • milestone set to Port Bugs

Assigning to maintainer.

Changed 20 months ago by pierre.augeard@…

wrong Makefile

Changed 20 months 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 @

Changed 20 months 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.

Changed 20 months 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)

Changed 20 months 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

Changed 15 months ago by ryandesign@…

  • description modified (diff)
  • port set to samba3

Changed 15 months ago by blb@…

  • cc jeremyhu@… added

Cc reporter of dup #17881.

Changed 15 months ago by jeremyhu@…

  • priority changed from Normal to High

Changed 15 months ago by jeremyhu@…

r44960 should work around this, but the root cause is not fixed

Changed 11 months ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Changed 8 months ago by toby@…

  • priority changed from High to Normal
Note: See TracTickets for help on using tickets.