Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2012 13:09:16 +0100
From:      =?UTF-8?Q?=C5=81ukasz?= <pickman@wp.pl>
To:        freebsd-ports@freebsd.org
Subject:   Problems with samba-* ports on arm
Message-ID:  <CAAj9VU4esoXr2QDa6e=pxZAdKMM0yK1mg14u38AcuvG6J=cn0w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello everyone,
 I'm not sure whether this is the correct list, but I would like to
report my efforts to build and run samba on ARM machine (sheevaplug) -
# uname -mopr
FreeBSD 8.3-STABLE arm arm

samba36-3.6.9
nmbd - works fine
smbd - core dump with bus error


 # smbd -V
Version 3.6.9

 # gdb smbd smbd.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you ar=
e
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "arm-marcel-freebsd"...
Core was generated by `smbd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/lib/libpam.so.5...done.
Loaded symbols for /usr/lib/libpam.so.5
Reading symbols from /usr/local/lib/libexecinfo.so.1...done.
Loaded symbols for /usr/local/lib/libexecinfo.so.1
Reading symbols from /lib/libmd.so.5...done.
Loaded symbols for /lib/libmd.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libdmalloc.so.1...done.
Loaded symbols for /usr/local/lib/libdmalloc.so.1
Reading symbols from /usr/local/lib/libpopt.so.0...done.
Loaded symbols for /usr/local/lib/libpopt.so.0
Reading symbols from /usr/local/lib/libtalloc.so.2...done.
Loaded symbols for /usr/local/lib/libtalloc.so.2
Reading symbols from /usr/local/lib/libtdb.so.1...done.
Loaded symbols for /usr/local/lib/libtdb.so.1
Reading symbols from /lib/libz.so.5...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libintl.so.9...done.
Loaded symbols for /usr/local/lib/libintl.so.9
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x208d20b0 in getframeaddr () from /usr/local/lib/libexecinfo.so.1
(gdb) bt
#0  0x208d20b0 in getframeaddr () from /usr/local/lib/libexecinfo.so.1
#1  0x208d1c84 in backtrace () from /usr/local/lib/libexecinfo.so.1
#2  0x003df308 in log_stack_trace () at lib/util.c:1217
#3  0x003df4bc in smb_panic (why=3D0x7cce40 "internal error") at lib/util.c=
:1118
#4  0x003cde8c in sig_fault (sig=3D8179264) at lib/fault.c:57
#5  0x003cde8c in sig_fault (sig=3D8179264) at lib/fault.c:57
(gdb)

Below are the options:
# Options for samba36-3.6.9
_OPTIONS_READ=3Dsamba36-3.6.9
_FILE_COMPLETE_OPTIONS_LIST=3D LDAP ADS CUPS WINBIND SWAT ACL_SUPPORT
AIO_SUPPORT FAM_SUPPORT SYSLOG QUOTAS UTMP PAM_SMBPASS DNSUPDATE AVAHI
PTHREADPOOL EXP_MODULES POPT IPV6 MAX_DEBUG SMBTORTURE
OPTIONS_FILE_UNSET+=3DLDAP
OPTIONS_FILE_UNSET+=3DADS
OPTIONS_FILE_UNSET+=3DCUPS
OPTIONS_FILE_UNSET+=3DWINBIND
OPTIONS_FILE_UNSET+=3DSWAT
OPTIONS_FILE_SET+=3DACL_SUPPORT
OPTIONS_FILE_UNSET+=3DAIO_SUPPORT
OPTIONS_FILE_UNSET+=3DFAM_SUPPORT
OPTIONS_FILE_SET+=3DSYSLOG
OPTIONS_FILE_UNSET+=3DQUOTAS
OPTIONS_FILE_UNSET+=3DUTMP
OPTIONS_FILE_UNSET+=3DPAM_SMBPASS
OPTIONS_FILE_UNSET+=3DDNSUPDATE
OPTIONS_FILE_UNSET+=3DAVAHI
OPTIONS_FILE_UNSET+=3DPTHREADPOOL
OPTIONS_FILE_UNSET+=3DEXP_MODULES
OPTIONS_FILE_SET+=3DPOPT
OPTIONS_FILE_SET+=3DIPV6
OPTIONS_FILE_SET+=3DMAX_DEBUG
OPTIONS_FILE_UNSET+=3DSMBTORTURE

For samba35-3.5.18 there is completely the same problem.

samba34-3.4.17

=3D=3D=3D>  Building for samba34-3.4.17
cd /usr/ports/net/samba34/work/samba-3.4.17/source3 && make pch
rm -f /usr/ports/net/samba34/work/samba-3.4.17/source3/include/includes.h.g=
ch
make /usr/ports/net/samba34/work/samba-3.4.17/source3/include/includes.h.gc=
h
cc -O -pipe -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
-Wdeclaration-after-statement -Werror-implicit-function-declaration
-Wstrict-prototypes -I.
-I/usr/ports/net/samba34/work/samba-3.4.17/source3
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/iniparser/src
-Iinclude -I./include  -I. -I. -I./../lib/replace -I/usr/local/include
  -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc
-I./..  -DHAVE_CONFIG_H  -I/usr/local/include -g -Iinclude -I./include
-I. -I. -I./../lib/replace -I/usr/local/include -I./../lib/tevent
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt
-I/usr/local/include
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/lib  -I..
-I../source4  -D_SAMBA_BUILD_=3D3 -D_SAMBA_BUILD_=3D3 -fPIC -DPIC -c
/usr/ports/net/samba34/work/samba-3.4.17/source3/include/includes.h -o
/usr/ports/net/samba34/work/samba-3.4.17/source3/include/includes.h.gch
Makefile:1354: warning: overriding recipe for target `.h.h.gch'
Makefile:1351: warning: ignoring old recipe for target `.h.h.gch'
Using CFLAGS     =3D -O -pipe -g -g -Wall -Wshadow -Wpointer-arith
-Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
-Wdeclaration-after-statement -Werror-implicit-function-declaration
-Wstrict-prototypes -I.
-I/usr/ports/net/samba34/work/samba-3.4.17/source3
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/iniparser/src
-Iinclude -I./include  -I. -I. -I./../lib/replace -I/usr/local/include
  -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc
-I./.. -DHAVE_CONFIG_H  -I/usr/local/include -g -Iinclude -I./include
-I. -I. -I./../lib/replace -I/usr/local/include -I./../lib/tevent
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt
-I/usr/local/include
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/lib -I..
-I../source4 -D_SAMBA_BUILD_=3D3 -D_SAMBA_BUILD_=3D3
      PICFLAG    =3D -fPIC -DPIC
      LIBS       =3D -lexecinfo -liconv -ldmalloc -ldmalloc
      LDFLAGS    =3D -Wl,-z,relro -L/usr/local/lib -g -L./bin -L/usr/local/=
lib
      DYNEXP     =3D -Wl,--export-dynamic
      LDSHFLAGS  =3D -shared -Wl,-z,relro -L/usr/local/lib -g -L./bin
-L/usr/local/lib
      SHLIBEXT   =3D so
      SONAMEFLAG =3D -Wl,-soname,
mkdir bin
Compiling ../lib/tdb/common/tdb.c
../lib/tdb/common/tdb.c: In function 'tdb_find':
../lib/tdb/common/tdb.c:102: error: implicit declaration of function
'TDB_ERRCODE'
The following command failed:
cc -O -pipe -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
-Wdeclaration-after-statement -Werror-implicit-function-declaration
-Wstrict-prototypes -I.
-I/usr/ports/net/samba34/work/samba-3.4.17/source3
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/iniparser/src
-Iinclude -I./include  -I. -I. -I./../lib/replace -I/usr/local/include
  -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc
-I./.. -DHAVE_CONFIG_H  -I/usr/local/include -g -Iinclude -I./include
-I. -I. -I./../lib/replace -I/usr/local/include -I./../lib/tevent
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt
-I/usr/local/include
-I/usr/ports/net/samba34/work/samba-3.4.17/source3/lib -I..
-I../source4 -D_SAMBA_BUILD_=3D3 -D_SAMBA_BUILD_=3D3 -fPIC -DPIC -c
../lib/tdb/common/tdb.c -o ../lib/tdb/common/tdb.o
gmake: *** [../lib/tdb/common/tdb.o] Error 1
*** Error code 1

Stop in /usr/ports/net/samba34.
*** Error code 1

Stop in /usr/ports/net/samba34.

Any hints or ideas?
Should I fill a PR?
Thank you in advance!

Best regards / Pozdrawiam
=C5=81ukasz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAj9VU4esoXr2QDa6e=pxZAdKMM0yK1mg14u38AcuvG6J=cn0w>