LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2007, 10:43 AM   #1
z4ziggy
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
samba on uclibc


hi.

(i hope this is the right place to ask this question)

I've been trying to build a uclibc based system with samba for the last week, with no luck. the samba compiles fine, but chroot'ing to the system and trying to execute _any_ samba program results in a segmentation fault:
Code:
# strace smbd
execve("/usr/sbin/smbd", ["smbd"], [/* 50 vars */]) = 0
mmap2(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2c000
mprotect(0x80000000, 3350172, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=5218, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
mmap2(NULL, 5218, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f2a000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 14241 detached
the only way i could compile and run samba successfully from within a uclibc system is using the rootfs_fs_i386.ext2 from uclibc.org but its very old and i there are many things installed on it which i dont need on my desired system.

i have tried compiling uclibc with different gcc versions (3.4.6, 4.2, 4.1.2), different binutils versions (2.17.50.0.14, 2.17), and even creating a development system (which should be the same as the root_fs_i386.ext2 image downloaded from uclibc with only updated packages) - but no luck. i always get the same error from samba.

Does any one has any experience with compiling samba under uclibc? I will greatly appreciate any assistance.

Thank you in advance.

(ps. I've reported the problem to the uclibc ML, no answer. I've tried the irc channel - no answer. google shows me some other users had the same problem, none of the got any reply neither).
 
  


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
2.6.14 kernel + uClibc can't manage memory? Yerp Linux - Software 0 11-13-2005 05:51 PM
Where can i get uClibc-0.2.tgz? cn_chopsticks Linux - Software 0 09-25-2005 05:47 AM
Busybox and uClibc spencerbray Linux - Newbie 4 01-27-2005 02:01 AM
bulding a gcc toolchain with uclibc behmjose Programming 1 02-29-2004 09:54 PM
uclibc install_target lukebeales Programming 0 11-25-2003 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 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