Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Custom build failed during building ports
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Custom build failed during building ports (Read 7909 times)
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
[SOLVED] Custom build failed during building ports
«
on:
April 19, 2016, 07:26:04 am »
I am trying to build custom Opnsense from the main.
--My configuration as follows--
===================
1. VM BSD10.3 with 4G RAM and 2 core processor.
2. Free Space of mounted drive is more than 50%.
3. Fresh git checkout as per
https://github.com/opnsense/tools/blob/master/README.md
I tired to do "make everything" and it ran into issues as follows
=======================================================
/usr/src/lib/libc/iconv/citrus_stdenc.c:44:3: error: use of undeclared identifier '_citrus_NONE_stdenc_ops'; did you mean '_citrus_stdenc_open'?
&_citrus_NONE_stdenc_ops, /* ce_ops */
^~~~~~~~~~~~~~~~~~~~~~~
_citrus_stdenc_open
/usr/src/lib/libc/iconv/citrus_stdenc.h:56:6: note: '_citrus_stdenc_open' declared here
int _citrus_stdenc_open(struct _citrus_stdenc * __restrict * __restrict,
^
/usr/src/lib/libc/iconv/citrus_stdenc.c:47:3: error: use of undeclared identifier '_citrus_NONE_stdenc_traits'
&_citrus_NONE_stdenc_traits, /* ce_traits */
^
1625 warnings and 2 errors generated.
--- citrus_stdenc.So ---
*** [citrus_stdenc.So] Error code 1
make[4]: stopped in /usr/src/lib/libc
1 error
make[4]: stopped in /usr/src/lib/libc
--- lib/libc__L ---
*** [lib/libc__L] Error code 2
make[3]: stopped in /usr/src
1 error
make[3]: stopped in /usr/src
--- libraries ---
*** [libraries] Error code 2
make[2]: stopped in /usr/src
1 error
make[2]: stopped in /usr/src
--- _libraries ---
*** [_libraries] Error code 2
make[1]: stopped in /usr/src
1 error
make[1]: stopped in /usr/src
--- buildworld ---
*** [buildworld] Error code 2
make: stopped in /usr/src
1 error
make: stopped in /usr/src
*** Error code 2
Stop.
make: stopped in /usr/tools
root@fbsd10dot3:/usr/tools #
===========================================
Any help ?
Thanks
«
Last Edit: April 23, 2016, 04:43:22 am by azdps
»
Logged
-RackG
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Custom build failed during building ports
«
Reply #1 on:
April 19, 2016, 07:59:06 am »
It stops during base build where it shouldn't. I haven't tried building on 10.3. Let me get back on this.
PS: If you are only interested in ports, you can skip this stage by using the precompiled base set:
# make prefetch-base VERSION=16.1.9
«
Last Edit: April 19, 2016, 08:01:25 am by franco
»
Logged
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
Re: Custom build failed during building ports
«
Reply #2 on:
April 19, 2016, 09:12:45 am »
Thanks Franco for your quick response. Can you suggest me which BSD release version i should use for "make everything".
Logged
-RackG
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Custom build failed during building ports
«
Reply #3 on:
April 19, 2016, 10:00:36 am »
We use 10.2 t the moment for our builds, but I also know Shawn runs 11-CURRENT builds. Not sure if this is related. Another thought: did you modify src.conf?
Logged
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
Re: Custom build failed during building ports
«
Reply #4 on:
April 19, 2016, 10:07:35 am »
No I haven't tried modifying src.conf or make.conf. I am trying to build it in 10.1 FBD. Will give a shot in 10.2 afterwards.
Logged
-RackG
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
Re: Custom build failed during building ports
«
Reply #5 on:
April 19, 2016, 03:23:24 pm »
I tried 10.1 but ended with no luck, this time with ports compile error. Do i need to have specific version of ports installed before i start "make everything" ?
I started only with "pkg install git" not sure if i am missing something.
Time to give a try on 10.2 version. Suggestions plz
Error Log
======
PPTP -DPHYSTYPE_PPPOE -DPHYSTYPE_L2TP -DENCRYPTION_DES -std=gnu99 -Qunused-arguments -fstack-protector -c ngfunc.c -o ngfunc.o
ngfunc.c:325:25: error: use of undeclared identifier 'NGM_IFACE_SET_IFNAME'; did you mean 'NGM_IFACE_GET_IFNAME'?
NGM_IFACE_COOKIE, NGM_IFACE_SET_IFNAME, nm.name, sizeof(nm.name)) < 0) {
^~~~~~~~~~~~~~~~~~~~
NGM_IFACE_GET_IFNAME
/usr/include/netgraph/ng_iface.h:69:2: note: 'NGM_IFACE_GET_IFNAME' declared here
NGM_IFACE_GET_IFNAME = 1,
^
1 error generated.
*** Error code 1
Stop.
make[4]: stopped in /usr/obj/usr/ports/opnsense/mpd4/work/mpd4-cf7a9277/src
*** Error code 1
Stop.
make[3]: stopped in /usr/obj/usr/ports/opnsense/mpd4/work/mpd4-cf7a9277
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/opnsense/mpd4
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/opnsense/mpd4
>>> Creating binary packages...
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 4 packages:
Installed packages to be REMOVED:
libpdel-0.5.3_6
expat-2.1.0_3
openssl-1.0.2_11
perl5-5.20.3_11
The operation will free 66 MiB.
[1/4] Deinstalling libpdel-0.5.3_6...
[1/4] Deleting files for libpdel-0.5.3_6: 100%
[2/4] Deinstalling expat-2.1.0_3...
[2/4] Deleting files for expat-2.1.0_3: 100%
[3/4] Deinstalling openssl-1.0.2_11...
[3/4] Deleting files for openssl-1.0.2_11: 100%
[4/4] Deinstalling perl5-5.20.3_11...
[4/4] Deleting files for perl5-5.20.3_11: 100%
Loading the package list...
beep-1.0_1 already packaged, skipping...
bsdinstaller-2.3_5 already packaged, skipping...
cpdup-1.18 already packaged, skipping...
cpustats-0.1 already packaged, skipping...
dhcpleases-0.2 already packaged, skipping...
filterdns-0.2 already packaged, skipping...
filterlog-0.2 already packaged, skipping...
ifinfo-10.1 already packaged, skipping...
minicron-0.0.2 already packaged, skipping...
pkg-1.7.2 already packaged, skipping...
.MAKE.LEVEL.ENV=MAKELEVEL
ARCH=amd64
BLOCKSIZE=K
CONFIGDIR=/usr/tools/config/16.1
CONFIG_PKG=/usr/local/etc/pkg/repos/origin.conf
CONFIG_XML=/usr/local/etc/config.xml
COREDIR=/usr/core
CPUS=2
EDITOR=vi
ENV=/home/daprakas/.shrc
GROUP=wheel
HOME=/root
HOST=bsd10d1
HOSTTYPE=FreeBSD
IMAGESDIR=/tmp/images
LABEL=OPNsense
LOGNAME=daprakas
MACHTYPE=x86_64
MAIL=/var/mail/daprakas
MAKEFLAGS= .MAKE.LEVEL.ENV=MAKELEVEL
MAKELEVEL=1
OLDPWD=/usr/obj/usr/tools
OSTYPE=FreeBSD
PACKAGESDIR=/.pkg
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PLUGINSDIR=/usr/plugins
PORTSDIR=/usr/ports
PORTSREFDIR=/usr/freebsd-ports
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_MIRROR=http://mirrors.nycbug.org/pub/opnsense
PRODUCT_NAME=OPNsense
PRODUCT_PRIVKEY=/root/repo.key
PRODUCT_PUBKEY=/root/repo.pub
PRODUCT_RELEASE=OPNsense-201604192359-OpenSSL
PRODUCT_SETTINGS=16.1
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /root/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /root/repo.pub /root/repo.key
PRODUCT_TYPE=opnsense
PRODUCT_VERSION=201604192359
PWD=/usr/tools/build
REMOTEHOST=192.168.163.1
SERIAL_CONFIG=<enableserial>1</enableserial><serialspeed>115200</serialspeed><primaryconsole>serial</primaryconsole>
SERIAL_SPEED=115200
SETSDIR=/tmp/sets
SHELL=/bin/csh
SHLVL=1
SRCDIR=/usr/src
SSH_CLIENT=192.168.163.1 63793 22
SSH_CONNECTION=192.168.163.1 63793 192.168.163.152 22
SSH_TTY=/dev/pts/2
STAGEDIR=/usr/obj/usr/tools/config/16.1/OpenSSL
STAGEDIRPREFIX=/usr/obj
TARGETARCH=amd64
TARGET_ARCH=amd64
TERM=xterm
TOOLSDIR=/usr/tools
USER=daprakas
VENDOR=amd
>>> Removing packages set
Creating repository in /usr/obj/usr/tools/config/16.1/OpenSSL/.pkg-new/: 100%
Packing files for repository: 100%
>>> Creating package mirror set for 16.1.10_29-OpenSSL-amd64... done
>>> The ports build did not finish properly
*** Error code 1
Stop.
make: stopped in /usr/tools
root@bsd10d1:/usr/tools #
«
Last Edit: April 20, 2016, 02:29:17 pm by rackg
»
Logged
-RackG
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Custom build failed during building ports
«
Reply #6 on:
April 20, 2016, 06:44:08 am »
This looks good, you are now in the ports build.
I know, I know, it's terrible.
You're building the development version, and this is one of the things I'm cleaning up at the moment.
Go to /usr/tools/config/16.1/ports.conf and delete "opnsense/mpd4" from the list and continue the build with "make everything".
PS: if you want to build the stable version of OPNsense, you will need to:
# cd /usr/src
# git checkout stable/16
# git pull
# cd /usr/core
# git checkout stable/16
# git pull
# cd /usr/tools
# rm /tmp/sets/base-*
# rm /tmp/sets/packages-*
And try again.
Cheers,
Franco
Logged
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
Re: Custom build failed during building ports
«
Reply #7 on:
April 20, 2016, 02:29:49 pm »
Thanks franco i will give a try
Logged
-RackG
rackg
Jr. Member
Posts: 68
Karma: 3
Ethical hacker
Re: Custom build failed during building ports
«
Reply #8 on:
April 23, 2016, 03:35:41 am »
Its working now. Thanks Franco
Logged
-RackG
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Custom build failed during building ports