samba and ARM architecture cross compile problem
govind raj
agovinda04 at hotmail.com
Thu Jul 27 14:20:16 GMT 2006
Hi all,
We are trying to compile the SAMBA for ARM architecture using the cross
compilation. Host is i386 architecture and target is ARM
Kernel version = 2.6.16
SAMBA version = 3.0.20b
ARM tool chain = arm-linux-gcc-3.4.1.tar.bz2
from http://www.handhelds.org/moin/moin.cgi/Linux26ToolsAndSources
Configuration option
-----------------------------
./configure --without-krb5 --without-ldap --without-ads
--prefix=/usr/local/arm/samba --host=arm-linux --build=i386-linux
--disable-cups --without-swat --enable-debug
Strace output:-
____________
execve("./smbd", ["./smbd"], [/* 7 vars */]) = 0
uname({sys="Linux", node="sanat", ...}) = 0
brk(0) = 0x2a443000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=110006, ...}) = 0
old_mmap(NULL, 110006, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40022000
close(3) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\264\n\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=30155, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
=
0x40019000
old_mmap(NULL, 211856, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4003d000
mprotect(0x40042000, 191376, PROT_NONE) = 0
old_mmap(0x40045000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0) =
0x40045000
old_mmap(0x4004a000, 158608, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4004a000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0x)\0\0004"..., 1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=81495, ...}) = 0
old_mmap(NULL, 106172, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40071000
mprotect(0x40080000, 44732, PROT_NONE) = 0
old_mmap(0x40081000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x8000)
= 0x40081000
old_mmap(0x40089000, 7868, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40089000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\24;\0\000"..., 1024)
= 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=92056, ...}) = 0
old_mmap(NULL, 109800, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4008b000
mprotect(0x4009c000, 40168, PROT_NONE) = 0
old_mmap(0x400a3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x10000)
= 0x400a3000
old_mmap(0x400a4000, 7400, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400a4000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\304\31\0"..., 1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=15736, ...}) = 0
old_mmap(NULL, 40372, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400a6000
mprotect(0x400a8000, 32180, PROT_NONE) = 0
old_mmap(0x400ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0) =
0x400ae000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or
directory)
stat64("/lib/v5l/fast-mult/half", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/v5l/fast-mult", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/v5l/half", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/v5l", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/fast-mult/half", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/fast-mult", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/half", 0xbe85c2dc) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\270p\1\000"..., 1024)
= 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1560352, ...}) = 0
old_mmap(NULL, 1285720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400b0000
mprotect(0x401dc000, 56920, PROT_NONE) = 0
old_mmap(0x401e0000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x128000) = 0x401e0000
old_mmap(0x401e8000, 7768, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401e8000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
=
0x4001a000
munmap(0x40022000, 110006) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
We are facing the segmentation fault problem.
Can anyone face this problem?. Can anyone compiled samba for ARM
architecture?
Thanks in advance,
A.govind
More information about the samba-technical
mailing list