LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 05-18-2011, 10:48 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
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.
 
Old 05-18-2011, 08:45 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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. ;-)
 
Old 05-19-2011, 01:31 AM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
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

Last edited by netpumber; 05-19-2011 at 01:33 AM.
 
Old 05-19-2011, 07:33 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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. ;-)
 
Old 05-21-2011, 08:21 AM   #5
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
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
 
Old 05-21-2011, 09:34 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
How does a build of 3.4.12 or 3.4.13 go?

Good luck. ;-)
 
Old 05-22-2011, 10:15 AM   #7
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Hmm same old song...

with both of these versions

when i try to run smbd a segmentation fault returns to me..
 
Old 05-22-2011, 07:42 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba installation problem juleshernandez Linux - Networking 4 03-26-2007 03:41 PM
Samba installation problem duffmckagan Mandriva 10 06-04-2005 01:10 AM
samba installation problem ddaas Linux - Software 2 10-22-2004 07:47 AM
samba installation problem ddaas Linux - Software 2 10-16-2004 10:27 PM
samba installation problem ddaas Slackware 2 10-11-2004 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration