LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Problem with samba installation (https://www.linuxquestions.org/questions/gentoo-87/problem-with-samba-installation-881430/)

netpumber 05-18-2011 10:48 AM

Problem with samba installation
 
I have a problem with samba daemon installation.
I have tried to install it with to ways.

1st FROM PORTAGE

here is what printed out at the end of emerging

http://pastebin.com/UNDgjGAy

after that i run /etc/init.d/samba start but i got this back

Code:

* Caching service dependencies ... [ ok ]
* samba -> start: smbd ...
/lib/rcscripts/sh/rc-daemon.sh: line 231: 16601 Segmentation fault /
sbin/start-stop-daemon '--start' '--exec' '/usr/sbin/smbd' '--' '-
D' [ !! ]
* samba -> start: nmbd ...
/lib/rcscripts/sh/rc-daemon.sh: line 231: 16605 Segmentation fault /
sbin/start-stop-daemon '--start' '--exec' '/usr/sbin/nmbd' '--' '-
D' [ !! ]
* Error: starting services (see system logs)
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ...

here is what system log (/var/log/messages) contains about samba
daemon.

Code:

May 5 12:32:10 tux kernel: [ 252.527524] smbd[4520]: segfault at 4 ip
b6fdbc51 sp bfc76518 error 4 in libdmalloc.so.5.5.2[b6fd1000+d000]
May 5 12:32:10 tux kernel: [ 252.535930] nmbd[4524]: segfault at 4 ip
b74edc51 sp bfbcea08 error 4 in libdmalloc.so.5.5.2[b74e3000+d000]
May 5 12:32:10 tux rc-scripts: Error: starting services (see system
logs)

2nd FROM SOURCE

after configuring , make and make install i tried to run smbd but it
returned me this :

Code:

# smbd
smbd: error while loading shared libraries: libwbclient.so.0: cannot
open shared object file: No such file or directory

Does anyone have an idea on how to try fix this problem ?

Thanks in advance.

Peacedog 05-18-2011 08:45 PM

Hi netpumber, This is fairly old, but seems like your problem.

http://bugs.gentoo.org/275466

Have you tried the -r1 version? What version are you trying to install/compile.

Good luck. ;-)

netpumber 05-19-2011 01:31 AM

emerge tried to install samba-3.4.12 but i tried to compile from source Samba 3.5.8 (latest stable) where can i find -r1 version ? Seems not be somewhere here http://samba.org/samba/history/ a -r1 version

Peacedog 05-19-2011 07:33 PM

Sorry, I should have been more clear. The -r1 was a revised version of the ebuild, the script used to build the package. I was suggesting there may be a similar revised ebuild for the current situation.

http://sources.gentoo.org/cgi-bin/vi...=date&view=log

Try updating your tree and then retry the build.

Good luck. ;-)

netpumber 05-21-2011 08:21 AM

Have a look here..

In directory /usr/portage/net-fs/samba i found these files after emerge -sync :

Quote:

ChangeLog
Manifest
files
metadata.xml
samba-3.4.12.ebuild
samba-3.4.13.ebuild
samba-3.5.8-r1.ebuild
samba-3.5.8.ebuild
samba-4.0.0_alpha11.ebuild
first i tried to install samba-3.5.8-r1.ebuild and then samba-3.5.8.ebuild both of them return the same error.

Quote:

smbd/ipc.c: In function 'api_no_reply':
smbd/ipc.c:394: warning: dereferencing type-punned pointer will break strict-aliasing rules
Compiling smbd/lanman.c
Compiling smbd/negprot.c
smbd/lanman.c: In function 'PackDriverData':
smbd/lanman.c:464: warning: dereferencing type-punned pointer will break strict-aliasing rules
smbd/negprot.c: In function 'get_challenge':
smbd/negprot.c:37: error: 'struct auth_context' has no member named 'dmalloc_free'
The following command failed:
i686-pc-linux-gnu-gcc -march=k8 -O2 -pipe -fomit-frame-pointer -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement -Werror-implicit-function-declaration -I. -I/var/tmp/portage/net-fs/samba-3.5.8/work/samba-3.5.8/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/var/tmp/portage/net-fs/samba-3.5.8/work/samba-3.5.8/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c smbd/negprot.c -o smbd/negprot.o
make: *** [smbd/negprot.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed
* ERROR: net-fs/samba-3.5.8 failed (compile phase):
* emake sbinprogs failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3319: Called die
* The specific snippet of code:
* emake ${SBINPROGS} || die "emake sbinprogs failed";
*
* If you need support, post the output of 'emerge --info =net-fs/samba-3.5.8',
* the complete build log and the output of 'emerge -pqv =net-fs/samba-3.5.8'.
* The complete build log is located at '/var/tmp/portage/net-fs/samba-3.5.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-3.5.8/temp/environment'.
* S: '/var/tmp/portage/net-fs/samba-3.5.8/work/samba-3.5.8/source3'

>>> Failed to emerge net-fs/samba-3.5.8, Log file:

>>> '/var/tmp/portage/net-fs/samba-3.5.8/temp/build.log'

* Messages for package net-fs/samba-3.5.8:

* ERROR: net-fs/samba-3.5.8 failed (compile phase):
* emake sbinprogs failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3319: Called die
* The specific snippet of code:
* emake ${SBINPROGS} || die "emake sbinprogs failed";
*
* If you need support, post the output of 'emerge --info =net-fs/samba-3.5.8',
* the complete build log and the output of 'emerge -pqv =net-fs/samba-3.5.8'.
* The complete build log is located at '/var/tmp/portage/net-fs/samba-3.5.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-3.5.8/temp/environment'.
* S: '/var/tmp/portage/net-fs/samba-3.5.8/work/samba-3.5.8/source3'

Also here is the build.log

http://pastebin.com/XVhVy3Lv

Peacedog 05-21-2011 09:34 PM

How does a build of 3.4.12 or 3.4.13 go?

Good luck. ;-)

netpumber 05-22-2011 10:15 AM

Hmm same old song...

with both of these versions

when i try to run smbd a segmentation fault returns to me..

Peacedog 05-22-2011 07:42 PM

Looks like a bug to me. I would have thought it would have been taken care of here samba-3.5.8-r1.ebuild, but apparently it hasn't. I would file a bug here: http://bugs.gentoo.org/ be sure to post the log and the results of these.

Code:

emerge --info =net-fs/samba-3.5.8
emerge -pqv =net-fs/samba-3.5.8

Good luck. ;-)


All times are GMT -5. The time now is 10:16 PM.