[MacPorts] #16023: Samba 3.2.0 dynamic libs not welle referenced
#16023: Samba 3.2.0 dynamic libs not welle referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@heroldfamily.biz | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | ---------------------------------------------+------------------------------ 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: ...[[BR]] 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) ...[[BR]] all the executable have this problem, I am unable to launch the daemons...[[BR]] I've seen the BAND-AID, but it doesn't seem to work? Thanks, Pierre -- Ticket URL: <http://trac.macports.org/ticket/16023> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@heroldfamily.biz | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------------------+----------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => mww@macports.org * summary: Samba 3.2.0 dynamic libs not welle referenced => samba3 3.2.0 dynamic libs not well referenced * milestone: => Port Bugs Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@heroldfamily.biz | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------------------+----------------------------- Comment (by pierre.augeard@heroldfamily.biz): 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 @ }}} -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@heroldfamily.biz | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------------------+----------------------------- Comment (by pierre.augeard@heroldfamily.biz): My apologies, the Makefile '''doesn't''' seem to be clean. Do we have to do the same for the SHLD_MODULE variable?[[BR]] I rather sceptic because these specific *.dylib will be located in sub directories of {prefix}/lib/samba3. -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@heroldfamily.biz | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------------------+----------------------------- Comment (by pierre.augeard@heroldfamily.biz): 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) -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@heroldfamily.biz | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------------------+----------------------------- Comment (by pierre.augeard@heroldfamily.biz): 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 -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Changes (by ryandesign@…): * port: => samba3 Old description:
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: ...[[BR]] 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) ...[[BR]]
all the executable have this problem, I am unable to launch the daemons...[[BR]] I've seen the BAND-AID, but it doesn't seem to work?
Thanks, Pierre
New description: 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...[[BR]] I've seen the BAND-AID, but it doesn't seem to work? Thanks, Pierre -- -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Changes (by blb@…): * cc: jeremyhu@… (added) Comment: Cc reporter of dup #17881. -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Changes (by jeremyhu@…): * priority: Normal => High -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Comment(by jeremyhu@…): r44960 should work around this, but the root cause is not fixed -- Ticket URL: <http://trac.macports.org/ticket/16023#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Changes (by ryandesign@…): * cc: rick@… (added) Comment: Has duplicate #28013, suggesting the workaround is not working. -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Comment(by bugs@…): latest Mac OS X, latest ports (as of Feb. 28th 2011), problem still unresolved workaround: cd /opt/local/sbin/ mkdir bin cd bin ln -s /opt/local/lib/samba3/libtdb.dylib* . ln -s /opt/local/lib/samba3/libtalloc.dylib* . to start smbd/nmbd first cd into /opt/local/sbin cd /opt/local/sbin/ ./smbd -D ./nmbd -D -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Comment(by bugs@…): with better formatting: {{{ cd /opt/local/sbin/ mkdir bin cd bin ln -s /opt/local/lib/samba3/libtdb.dylib* . ln -s /opt/local/lib/samba3/libtalloc.dylib* . }}} to start smbd/nmbd first cd into /opt/local/sbin {{{ cd /opt/local/sbin/ ./smbd -D ./nmbd -D }}} -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ---------------------------------------------+------------------------------ Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: samba3 ---------------------------------------------+------------------------------ Comment(by jeremyhu@…): It looks like the install_name_tool changes left out the sbin binaries. -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: samba3 | ----------------------------------------------+----------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r76575 -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16023: samba3 3.2.0 dynamic libs not well referenced ----------------------------------------------+----------------------------- Reporter: pierre.augeard@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: samba3 | ----------------------------------------------+----------------------------- Comment(by jeremyhu@…): Closing ... the root cause still isn't fixed, and it's probably not worth fixing with samba4 on the horizon. -- Ticket URL: <https://trac.macports.org/ticket/16023#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts