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).