Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2014 13:47:36 -0500
From:      Stacey Son <sson@FreeBSD.org>
To:        Tom Pusateri <pusateri@bangj.com>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: Error building curl for Edge Router Lite
Message-ID:  <75C32A8C-64E0-4AF7-A390-57E76A05358A@FreeBSD.org>
In-Reply-To: <D6A6E4B4-31EE-4461-8F7F-9AC4A182052D@bangj.com>
References:  <D6A6E4B4-31EE-4461-8F7F-9AC4A182052D@bangj.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <pusateri@bangj.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75C32A8C-64E0-4AF7-A390-57E76A05358A>