From owner-freebsd-ports@FreeBSD.ORG Sat Dec 15 13:12:33 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 EAAD1D7A for ; Sat, 15 Dec 2012 13:12:33 +0000 (UTC) (envelope-from timur@bat.ru) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4784A8FC12 for ; Sat, 15 Dec 2012 13:12:32 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so3525059lah.13 for ; Sat, 15 Dec 2012 05:12:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=L685cDSw4jfI+kCsV1JE9vWaZmfN8ylIp+DQw0RirHw=; b=ZBPm/uf68KKfUdiEKbxHRmwXnx5VGzCAWLlnwCUrsk96O99vhb4ZwmpBlzWV9+tENJ Zv8Si826WWm5VYMti1Kjygyu0zxzMZTtKfUrtgqJm7/+f7a4cKB/VSLKca7+Qfvkp+ce LaVYcvDX6xAlrzWsVk7HjfKuQf6QFtPi2Rr/2CAL9V0pUFBsGX1Pkb28hhpqpwKDZcRf JBAU1whl6rfvgaTx5QcJSPq405hTFCjUyuEFZgLVFmeV7x/12L9KOZw+QXa7Edfw9arI 3msrIovy+LTgtSx/vRm7Yo8Yf5jtNFLbcBlfi2oYBljz0PLTpr9pBz+NmxtebYhY84T0 UOtQ== Received: by 10.112.25.193 with SMTP id e1mr3592934lbg.94.1355577151296; Sat, 15 Dec 2012 05:12:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.24.35 with HTTP; Sat, 15 Dec 2012 05:12:11 -0800 (PST) In-Reply-To: References: From: "Timur I. Bakeyev" Date: Sat, 15 Dec 2012 14:12:11 +0100 Message-ID: Subject: Re: Problems with samba-* ports on arm To: =?UTF-8?Q?=C5=81ukasz?= X-Gm-Message-State: ALoCoQnVeTrdKXfYuYRSg0K1FpyIVPLYuOY1WDa8KzmLv2ttCpxDJQs7DubwDwVP4zHsivISx1/T Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD 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: Sat, 15 Dec 2012 13:12:34 -0000 File a PR. The problem is that I don't have ARM box around, so it's hard to debug. There is an attempt to address a problem with the ARM in the port: .if ${ARCH} =3D=3D "arm" CONFIGURE_ARGS+=3D --disable-pie .endif But it never was tested live. On Mon, Nov 5, 2012 at 1:09 PM, =C5=81ukasz wrote: > 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 > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > 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.gch > make > /usr/ports/net/samba34/work/samba-3.4.17/source3/include/includes.h.gch > 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"