From owner-freebsd-mips@FreeBSD.ORG Wed Apr 23 18:47:44 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51B5B21F for ; Wed, 23 Apr 2014 18:47:44 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1510418EA for ; Wed, 23 Apr 2014 18:47:43 +0000 (UTC) Received: from [76.187.139.93] ([76.187.139.93:59105] helo=[192.168.0.10]) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id C2/BC-30401-8CA08535; Wed, 23 Apr 2014 18:47:37 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Error building curl for Edge Router Lite From: Stacey Son In-Reply-To: Date: Wed, 23 Apr 2014 13:47:36 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <75C32A8C-64E0-4AF7-A390-57E76A05358A@FreeBSD.org> References: To: Tom Pusateri X-Mailer: Apple Mail (2.1510) X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 18:47:44 -0000 Hi Tom: I don't remember the tweak I used to get curl to build but I have a = bunch of "freebsd:10:mips:64:eb:n64" packages (including curl 7.31.0) at = http://www.cl.cam.ac.uk/research/security/ctsrd/mips64-packages that I = built using qemu bsd-user mode. Use 'pkg' and something like: FreeBSD: { url: = "pkg+http://www.cl.cam.ac.uk/research/security/ctsrd/mips64-packages", mirror_type: "srv", enabled: yes } in /etc/pkg/FreeBSD.conf to 'pkg install'. Also, there are a bunch of "freebsd:10:mips:64:eb:n64" and = "freebsd:11:mips:64:eb:n64" packages at: http://pkg.absolight.net/freebsd%3a10%3amips%3a64%3aeb%3an64/ and=20 http://pkg.absolight.net/freebsd%3a11%3amips%3a64%3aeb%3an64/ respectively. Also, if you are doing a bunch of package building using your ERL then = you may want to add the following patches to the kernel (especially if = you are using NFS): http://people.freebsd.org/~sson/mips/kstack/kstack_large_page_1.diff http://people.freebsd.org/~sson/mips/kstack/kstack_large_page_2.diff http://people.freebsd.org/~sson/mips/kstack/kstack_large_page_3.diff and add "option KSTACK_LARGE_PAGE" to the kernel config file. This = will increase the kernel thread stack size by using 16K sized pages. = The current kernel thread size is too small. I hope this helps. Regards, -stacey. On Apr 8, 2014, at 10:07 PM, Tom Pusateri wrote: > I'm trying to build curl from ports on a FreeBSD 10 system running on = a Ubiquiti Edge Router Lite. > I used the image available here: http://rtfm.net/FreeBSD/ERL/ to get = FreeBSD up and running and have been able to build other ports to build = ok including: >=20 > autoconf-2.69 Automatically configure source code on = many Un*x platforms > autoconf-wrapper-20131203 Wrapper script for GNU autoconf > dialog4ports-0.1.5_2 Console Interface to configure ports > gmake-3.82_1 GNU version of 'make' utility > help2man-1.43.3_1 Automatically generating simple manual = pages from program output > isc-dhcp43-server-4.3.0_1 The ISC Dynamic Host Configuration = Protocol server > libtool-2.4.2_2 Generic shared library support script > m4-1.4.17_1,1 GNU m4 > p5-Error-0.17022 Error/exception handling in = object-oriented programming style > perl5-5.16.3_9 Practical Extraction and Report = Language > pkg-1.2.7_2 Package manager > screen-4.0.3_14 Multi-screen window manager > sqlite3-3.8.4.2 SQL database engine in a C library >=20 > Full make log file here: http://cj.bangj.com/~pusateri/curl-make.log >=20 > =3D=3D=3D> Staging for curl-7.36.0 > =3D=3D=3D> Generating temporary packing list > Making install in lib > /bin/mkdir -p '/usr/ports/ftp/curl/work/stage/usr/local/lib' > /bin/sh ../libtool --mode=3Dinstall /usr/bin/install -c -o root -g = wheel -s libcurl.la '/usr/ports/ftp/curl/work/stage/usr/local/lib' > libtool: install: /usr/bin/install -c -o root -g wheel = .libs/libcurl.so.7 = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.so.7 > libtool: install: strip --strip-unneeded = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.so.7 > libtool: install: (cd /usr/ports/ftp/curl/work/stage/usr/local/lib && = { ln -s -f libcurl.so.7 libcurl.so || { rm -f libcurl.so && ln -s = libcurl.so.7 libcurl.so; }; }) > libtool: install: (cd /usr/ports/ftp/curl/work/stage/usr/local/lib && = { ln -s -f libcurl.so.7 libcurl.so || { rm -f libcurl.so && ln -s = libcurl.so.7 libcurl.so; }; }) > libtool: install: /usr/bin/install -c -o root -g wheel = .libs/libcurl.lai = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.la > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libcurl.a = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.a > libtool: install: strip --strip-debug = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.a > libtool: install: chmod 644 = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.a > libtool: install: ranlib = /usr/ports/ftp/curl/work/stage/usr/local/lib/libcurl.a > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: warning: can't find .strtab section > ranlib: fatal: Invalid filename > *** Error code 70 >=20 > Stop. > make[4]: stopped in /usr/ports/ftp/curl/work/curl-7.36.0/lib > *** Error code 1 >=20 > Stop. > make[3]: stopped in /usr/ports/ftp/curl/work/curl-7.36.0/lib > *** Error code 1 >=20 > Stop. > make[2]: stopped in /usr/ports/ftp/curl/work/curl-7.36.0 > *** Error code 1 >=20 > Stop. > make[1]: stopped in /usr/ports/ftp/curl > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/ftp/curl > pusateri [cj:1018]=20 >=20