From owner-freebsd-ports@FreeBSD.ORG Mon Nov 5 12:09:23 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0011B732 for ; Mon, 5 Nov 2012 12:09:22 +0000 (UTC) (envelope-from pickman@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.7]) by mx1.freebsd.org (Postfix) with ESMTP id 758E98FC0A for ; Mon, 5 Nov 2012 12:09:21 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 20386 invoked from network); 5 Nov 2012 13:09:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1352117358; bh=O8OSa3sx+FdAiSxGeAmXuaDhg5cqfVl5cetIeV+Rn+E=; h=Subject:From:To; b=fDueuYYYgfVznTHagyPUQ2VDxdb+ifRxnpx81GoyetE33XX3Ud8vs1RdRJwR7Vih2 TuaxmCRTIM2rA/3NB6J5EnzwfuK1YE/9OFfDCY0ce2WNaJ/HvbQtkZuYV63Jgr4+Hl poO/9ZXkiOKwmdCEDZlWhdPvqZ1oU+R/bdHSPll0= Received: from mail-vb0-f54.google.com (pickman@[209.85.212.54]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with RC4-SHA encrypted SMTP for ; 5 Nov 2012 13:09:17 +0100 Received: by mail-vb0-f54.google.com with SMTP id l1so7537863vba.13 for ; Mon, 05 Nov 2012 04:09:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.92.229 with SMTP id cp5mr7979010vdb.14.1352117356355; Mon, 05 Nov 2012 04:09:16 -0800 (PST) Received: by 10.220.2.195 with HTTP; Mon, 5 Nov 2012 04:09:16 -0800 (PST) Date: Mon, 5 Nov 2012 13:09:16 +0100 Message-ID: Subject: Problems with samba-* ports on arm From: =?UTF-8?Q?=C5=81ukasz?= To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0W00000 [gePE] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 12:09:23 -0000 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